1. (20%) Find the solution of the following questions.

(a) Solve the linear system $A\mathbf{x} = \mathbf{b}$ where

$$A = \begin{pmatrix} -2 & 1 & 0 \\ 1 & -2 & 1 \\ 0 & 1 & -2 \end{pmatrix} \quad \text{and} \quad \mathbf{b} = \begin{pmatrix} -1 \\ 0 \\ -1 \end{pmatrix}$$