$$x' = \begin{bmatrix} 1 & 0 & 0 \\ 2 & 1 & -2 \\ 3&2 & 1\end{bmatrix} x, ~~ x{(0)} = \begin{bmatrix} 2 \\ -1 \\ 1\end{bmatrix}$$
I am having very hard time solving this question using Laplace transform. I don't know how to do it for $3\times 3$ matrix. Would anyone be able to show me step by step how to do it for one of the cases? I have no clue how to do the inverse.
We are given:
$$X'(t) = \begin{bmatrix} 1 & 0 & 0 \\ 2 & 1 & -2\\ 3 & 2 & 1\end{bmatrix} \begin{bmatrix} x(t) \\ y(t)\\ z(t)\end{bmatrix}, ~~ X(0) = \begin{bmatrix} 2 \\ -1\\ 1\end{bmatrix}$$
We can write this as:
$$\tag 1 \begin{align} x' &= x \\ y' &= 2x+y-2z \\ z' &= 3x +2y + z \end{align}$$
Taking the Laplace transform of $(1)$ yields:
$$\begin{align} s x(s) - x(0) &= x(s) \\ s y(s) - y(0) &= 2x(s) + y(s) - 2z(s) \\ s z(s) - z(0) &= 3 x(s) + 2y(s) + z(s)\end{align}$$
This reduces to the system:
$$\begin{bmatrix} s-1 & 0 & 0 \\ -2 & s-1 & 2\\ -3 & -2 & s-1\end{bmatrix} \begin{bmatrix} x(s) \\ y(s)\\ z(s)\end{bmatrix} = \begin{bmatrix} 2 \\ -1\\ 1 \end{bmatrix}$$
All that is needed is to solve for $x(s),y(s),z(s)$ and then find the inverse Laplace Transform.
You could have also used many methods to solve this system, including eigenvalues/eigenvectors, matrix exponential, etc.
Update
$$\begin{bmatrix} \frac{1}{s-1} & 0 & 0 \\ \frac{2 (s-4)}{s^3-3 s^2+7 s-5} & \frac{s-1}{s^2-2 s+5} & -\frac{2}{s^2-2 s+5} \\ \frac{3 s+1}{s^3-3 s^2+7 s-5} & \frac{2}{s^2-2 s+5} & \frac{s-1}{s^2-2 s+5} \end{bmatrix}$$
The inverse matrix times the column vector yields:
$$\begin{bmatrix} x(s) \\y(s)\\z(s) \end{bmatrix} = \begin{bmatrix} \frac{2}{s-1} \\ \frac{2 s}{s^2-2s+5}-\frac{3}{s-1} \\ \frac{s (s+2)+5}{(s-1) (s^2-2s+5)}\end{bmatrix}$$
Next, just find the inverse Laplace Transform of $x(s), y(s), z(s)$ and you are done.
I will assume you can take it from here.