a)$$x'= \left( \begin{matrix}
-2 & 1 \\
-1 & 0 \\
\end{matrix} \right )x+\left( \begin{matrix}
0 \\
\frac{e^{-t}}{t^2+1} \\
\end{matrix} \right )$$
$$det(A-\lambda I)=0$$
$$(-2-\lambda)(-\lambda)+1=0$$
$$\lambda^2+2\lambda+1=0$$
$$\lambda_1=\lambda_2=-1$$
$$when \lambda =-1$$
$$(A-\lambda I)x=0$$
$$\left( \begin{matrix}
-1 & 1 \\
-1 & 1 \\
\end{matrix} \right )\left( \begin{matrix}
x_1 \\
x_2 \\
\end{matrix} \right )=\left( \begin{matrix}
0 \\
0 \\
\end{matrix} \right )$$
$$x_1=x_2 \Rightarrow x=t\left( \begin{matrix}
1 \\
1 \\
\end{matrix} \right )$$
$$\left( \begin{matrix}
-1 & 1 \\
-1 & 1 \\
\end{matrix} \right )\left( \begin{matrix}
x_1 \\
x_2 \\
\end{matrix} \right )=\left( \begin{matrix}
1 \\
1 \\
\end{matrix} \right )$$
$$x_1+x_2=1 \Rightarrow x=t\left( \begin{matrix}
0 \\
1 \\
\end{matrix} \right )$$
$$\therefore y=c_1e^{-t}\left( \begin{matrix}
1 \\
1 \\
\end{matrix} \right )+c_2e^{-t}(\left( \begin{matrix}
1 \\
1 \\
\end{matrix} \right )t+\left( \begin{matrix}
0 \\
1 \\
\end{matrix} \right ))$$
B)$$\phi u'=g(t)$$
$$\left( \begin{matrix}
e^{-t} & e^{-t}t \\
e^{-t} & e^{-t}t+e^{-t}\\
\end{matrix} \right ) \left( \begin{matrix}
u_1' \\
u_2' \\
\end{matrix} \right )=\left( \begin{matrix}
0 \\
\frac{e^{-t}}{t^2+1} \\
\end{matrix} \right )$$
$$
\left \{
\begin{array}{lr}
u_1'=-\frac{t}{t^2+1} &\\
u_2'=\frac{1}{t^2+1}
\end{array}
\right. $$
$$\Rightarrow \left \{
\begin{array}{lr}
u_1=-\frac{1}{2} \ln(t^2+1)&\\
u_2=\arctan t
\end{array}
\right. $$
$$x=\phi u$$
$$\therefore x=\left( \begin{matrix}
e^{-t} & e^{-t}t \\
e^{-t} & e^{-t}t+e^{-t}\\
\end{matrix} \right )\left( \begin{matrix}
-\frac{1}{2}\ln(t^2+1)\\
\arctan t\\
\end{matrix} \right )$$
$$x=(-\frac{1}{2}\ln(t^2+1)+c_1)\left( \begin{matrix}
e^{-t} \\
e^{-t} \\
\end{matrix} \right )+(c_2+\arctan t)\left( \begin{matrix}
e^{-t}t \\
e^{-t}t+e^{-t} \\
\end{matrix} \right) $$
OK, but LaTeX sucks:
1) \det should be escaped as well
2) Text should not be included in math formulae, or included through \tex{blah blah } to make it upright and properly spaced
3) Directions are opposite