Here is a system of ODEs:
$$ y'_{1} = y_{2} +2e^{t} $$
$$ y'_{2} = y_{1} -2e^{t} $$
The initial conditions are $y_{1}(0) = 0 $ and $y_{2}(0) = 1 $. Solving the system of ODEs, we get two solutions. one for homogeneous ODE and the other for non homogeneous part. The equations are of the form $$y' = Ay + g ------ (equation 1) $$ where $$ y = \begin{pmatrix} y_1 \\ y_2 \end{pmatrix}$$ and $$ y' = \begin{pmatrix} y_1' \\ y_2' \end{pmatrix}$$ After solving the characteristic equation, the following solution was obtained for the homogeneous ODE with the eigen vectors $\begin{pmatrix} 1 \\ 1 \end{pmatrix}$ and $\begin{pmatrix} -1 \\ 1 \end{pmatrix}$
Solution of homogeneous equation is $$y_{h} = C_{1} \begin{pmatrix} 1 \\ 1 \end{pmatrix}e^{t} + c_{2}\begin{pmatrix} -1 \\ 1 \end{pmatrix}e^{-t} $$
For the particular solution, the following substitution was used:
$y_{p1} = u_{1}te^t +v_{1}e^t$
$y_{p2} = u_{2}te^t +v_{2}e^t$
By substituting $y_{p1}$ and $y_{p2}$ in (1) and comparing coefficients, I got u1 + v1 = v2 + 2 and u2 + v2 = v1 - 2 and u1 = u2. The matrix A =$\begin{pmatrix}0 & 1 \\ 1 & 0\end{pmatrix}$. I had used the equation $y_p'=Ay_p+g$ where g =$\begin{pmatrix} 2e^t \\ -2e^t\end{pmatrix}$
After this, $u_1 = u_2 = 0 $ and $v_1 -v_2 = 2$. There was no way to calculate $v_1$ and $v_2$. I assumed $v_2 = -1$ , with that $v_1 = 1$. The final solution was:
$y_{1} = 3\sinh t$
$y_{2} = \cosh t -2\sinh t $
The answer given was:
$y_{1} = -\cosh t +2\sinh t + e^{t} $
$y_{2} = 2\cosh t -\sinh t - e^{t} $
Can you tell where the solution was wrong? is it in the particular solution part or the solution for homogeneous ODE part? If somebody can walk through the problem and show the correct approach, much is appreciated.
Edit: The solution was matching because I assumed $v_2 =-1 $. Is there a way to derive $v_1$ and $v_2$ explicitly to arrive at the solution?
Reference:
Advanced engineering mathematics ,Erwin and Herbert kreyszig and Normington, 10e, Wiley, page 163.
$$\begin{pmatrix} item11 & item 12 & item 13 \\ item21 & item22 & item 23 \end{pmatrix}$$
" gives $$\begin{pmatrix} item11 & item 12 & item 13 \\ item21 & item22 & item 23 \end{pmatrix}$$ For variations, see math.meta.stackexchange.com/questions/5020/… $\endgroup$