Maybe you want to understand how to solve systems of differential equations using matrices.
Let we have the system of differential equations Y ′ = A Y Y' = AY Y ′ = A Y . These steps help you to solve this system:
1. Find the matrix P P P that diagonalises A A A , i.e. the matrix P P P such that D = P − 1 A P D = P^{-1}AP D = P − 1 A P , where D D D is a diagonal matrix.
2. Make the change of variable Y = P U , Y ′ = P U ′ Y = PU, Y' = PU' Y = P U , Y ′ = P U ′ . We then have
Y ′ = A Y ⇔ P U ′ = A P U ⇔ U ′ = P − 1 A P U ⇔ U ′ = D U Y' = AY \Leftrightarrow PU' = APU \Leftrightarrow U' = P^{-1}APU \Leftrightarrow U' = DU Y ′ = A Y ⇔ P U ′ = A P U ⇔ U ′ = P − 1 A P U ⇔ U ′ = D U
3. Solve the system U ′ = D U U' = DU U ′ = D U for U U U .
4. The solution to the system of differential equation is Y = P U Y = PU Y = P U , where U U U is the solution to U ′ = D U U' = DU U ′ = D U .
Let's see how it works. First we have to find the matrix P P P , i.e. we have to find the eigenvalues and eigenvectors of the matrix A A A . Let us have the matrix
A = ( 1 1 4 − 2 ) A = \left( \begin{array}{cc} 1 & 1 \\ 4 & -2 \end{array} \right) A = ( 1 4 1 − 2 )
Then
∣ A − λ I ∣ = ∣ 1 − λ 1 4 − 2 − λ ∣ = λ 2 + λ − 6 = ( λ − 2 ) ( λ + 3 ) = 0 |A - \lambda I| = \left| \begin{array}{cc} 1 - \lambda & 1 \\ 4 & -2 - \lambda \end{array} \right| = \lambda^2 + \lambda - 6 = (\lambda - 2)(\lambda + 3) = 0 ∣ A − λ I ∣ = ∣ ∣ 1 − λ 4 1 − 2 − λ ∣ ∣ = λ 2 + λ − 6 = ( λ − 2 ) ( λ + 3 ) = 0
so that A A A has two eigenvalues: λ = 2 \lambda = 2 λ = 2 and λ = − 3 \lambda = -3 λ = − 3 .
Let X = ( X y ) X = \binom{X}{y} X = ( y X )
A X = 2 X ⇔ { − x + y = 0 4 x − 4 y = 0 ⇔ x = y ⇔ X = α ( 1 1 ) AX = 2X \Leftrightarrow \left\{ \begin{array}{l} -x + y = 0 \\ 4x - 4y = 0 \end{array} \right. \Leftrightarrow x = y \Leftrightarrow X = \alpha \binom{1}{1} A X = 2 X ⇔ { − x + y = 0 4 x − 4 y = 0 ⇔ x = y ⇔ X = α ( 1 1 ) A X = − 3 X ⇔ { 4 x + y = 0 4 x − 4 y = 0 ⇔ y = − 4 x ⇔ X = β ( 1 − 4 ) AX = -3X \Leftrightarrow \left\{ \begin{array}{l} 4x + y = 0 \\ 4x - 4y = 0 \end{array} \right. \Leftrightarrow y = -4x \Leftrightarrow X = \beta \binom{1}{-4} A X = − 3 X ⇔ { 4 x + y = 0 4 x − 4 y = 0 ⇔ y = − 4 x ⇔ X = β ( − 4 1 )
The matrix P P P is therefore P = ( 1 1 1 − 4 ) P = \left( \begin{array}{cc} 1 & 1 \\ 1 & -4 \end{array} \right) P = ( 1 1 1 − 4 ) and the diagonal matrix D D D is D = ( 2 0 0 − 3 ) D = \left( \begin{array}{cc} 2 & 0 \\ 0 & -3 \end{array} \right) D = ( 2 0 0 − 3 ) .
Let U = ( u 1 ( x ) u 2 ( x ) ) U = \binom{u_1(x)}{u_2(x)} U = ( u 2 ( x ) u 1 ( x ) ) . The matrix equality U ′ = D U U' = DU U ′ = D U is equivalent to
{ u 1 ′ ( x ) = 2 u 1 ( x ) u 2 ′ ( x ) = − 3 u 2 ( x ) ′ \left\{ \begin{array}{l} u_1'(x) = 2u_1(x) \\ u_2'(x) = -3u_2(x)' \end{array} \right. { u 1 ′ ( x ) = 2 u 1 ( x ) u 2 ′ ( x ) = − 3 u 2 ( x ) ′
which is easily solved:
{ u 1 ′ ( x ) = 2 u 1 ( x ) u 2 ′ ( x ) = − 3 u 2 ( x ) ⇔ u 1 ( x ) = A e 2 x , u 2 ( x ) = B e − 3 x ⇔ U = ( A e 2 x B e − 3 x ) \left\{ \begin{array}{l} u_1'(x) = 2u_1(x) \\ u_2'(x) = -3u_2(x) \end{array} \right. \Leftrightarrow u_1(x) = Ae^{2x}, u_2(x) = Be^{-3x} \Leftrightarrow U = \binom{Ae^{2x}}{Be^{-3x}} { u 1 ′ ( x ) = 2 u 1 ( x ) u 2 ′ ( x ) = − 3 u 2 ( x ) ⇔ u 1 ( x ) = A e 2 x , u 2 ( x ) = B e − 3 x ⇔ U = ( B e − 3 x A e 2 x ) Y = P U Y = PU Y = P U is the solution to Y ′ = A Y Y' = AY Y ′ = A Y and we have
Y = P U = ( 1 1 1 − 4 ) ( A e 2 x B e − 3 x ) = ( A e 2 x + B e − 3 x A e 2 x − 4 B e − 3 x ) Y = PU = \left( \begin{array}{cc} 1 & 1 \\ 1 & -4 \end{array} \right) \binom{Ae^{2x}}{Be^{-3x}} = \binom{Ae^{2x} + Be^{-3x}}{Ae^{2x} - 4Be^{-3x}} Y = P U = ( 1 1 1 − 4 ) ( B e − 3 x A e 2 x ) = ( A e 2 x − 4 B e − 3 x A e 2 x + B e − 3 x )
If you are also given initial conditions, i.e. conditions of the form
Y ( 0 ) = ( u ( 0 ) v ( 0 ) ) = ( 1 − 1 ) Y(0) = \left( \begin{array}{c} u(0) \\ v(0) \end{array} \right) = \left( \begin{array}{c} 1 \\ -1 \end{array} \right) Y ( 0 ) = ( u ( 0 ) v ( 0 ) ) = ( 1 − 1 )
you can find the value of A A A and the value of B B B :
Y ( 0 ) = ( 1 − 1 ) ⇔ { A + B = 1 A − 4 B = − 1 ⇔ { A = 3 5 B = 2 5 Y(0) = \left( \begin{array}{c} 1 \\ -1 \end{array} \right) \Leftrightarrow \left\{ \begin{array}{l} A + B = 1 \\ A - 4B = -1 \end{array} \right. \Leftrightarrow \left\{ \begin{array}{l} A = \frac{3}{5} \\ B = \frac{2}{5} \end{array} \right. Y ( 0 ) = ( 1 − 1 ) ⇔ { A + B = 1 A − 4 B = − 1 ⇔ { A = 5 3 B = 5 2
and finally the solution to the initial value problem is Y = 1 5 ( 3 e 2 x + 2 e − 3 x 3 e 2 x − 8 e − 3 x ) Y = \frac{1}{5} \left( \frac{3e^{2x} + 2e^{-3x}}{3e^{2x} - 8e^{-3x}} \right) Y = 5 1 ( 3 e 2 x − 8 e − 3 x 3 e 2 x + 2 e − 3 x )