Question #33602

Could you please explain how to solve differential equations using matrices. I understand that it somehow involves eigenvalues and eigenvectors. I am not familiar with either eigenvalues or eigenvectors....

Expert's answer

Maybe you want to understand how to solve systems of differential equations using matrices.

Let we have the system of differential equations Y=AYY' = AY. These steps help you to solve this system:

1. Find the matrix PP that diagonalises AA, i.e. the matrix PP such that D=P1APD = P^{-1}AP, where DD is a diagonal matrix.

2. Make the change of variable Y=PU,Y=PUY = PU, Y' = PU'. We then have


Y=AYPU=APUU=P1APUU=DUY' = AY \Leftrightarrow PU' = APU \Leftrightarrow U' = P^{-1}APU \Leftrightarrow U' = DU


3. Solve the system U=DUU' = DU for UU.

4. The solution to the system of differential equation is Y=PUY = PU, where UU is the solution to U=DUU' = DU.

Let's see how it works. First we have to find the matrix PP, i.e. we have to find the eigenvalues and eigenvectors of the matrix AA. Let us have the matrix


A=(1142)A = \left( \begin{array}{cc} 1 & 1 \\ 4 & -2 \end{array} \right)


Then


AλI=1λ142λ=λ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


so that AA has two eigenvalues: λ=2\lambda = 2 and λ=3\lambda = -3.

Let X=(Xy)X = \binom{X}{y}

AX=2X{x+y=04x4y=0x=yX=α(11)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}AX=3X{4x+y=04x4y=0y=4xX=β(14)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}


The matrix PP is therefore P=(1114)P = \left( \begin{array}{cc} 1 & 1 \\ 1 & -4 \end{array} \right) and the diagonal matrix DD is D=(2003)D = \left( \begin{array}{cc} 2 & 0 \\ 0 & -3 \end{array} \right).

Let U=(u1(x)u2(x))U = \binom{u_1(x)}{u_2(x)}. The matrix equality U=DUU' = DU is equivalent to


{u1(x)=2u1(x)u2(x)=3u2(x)\left\{ \begin{array}{l} u_1'(x) = 2u_1(x) \\ u_2'(x) = -3u_2(x)' \end{array} \right.


which is easily solved:


{u1(x)=2u1(x)u2(x)=3u2(x)u1(x)=Ae2x,u2(x)=Be3xU=(Ae2xBe3x)\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}}

Y=PUY = PU is the solution to Y=AYY' = AY and we have


Y=PU=(1114)(Ae2xBe3x)=(Ae2x+Be3xAe2x4Be3x)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}}


If you are also given initial conditions, i.e. conditions of the form


Y(0)=(u(0)v(0))=(11)Y(0) = \left( \begin{array}{c} u(0) \\ v(0) \end{array} \right) = \left( \begin{array}{c} 1 \\ -1 \end{array} \right)


you can find the value of AA and the value of BB :


Y(0)=(11){A+B=1A4B=1{A=35B=25Y(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.


and finally the solution to the initial value problem is Y=15(3e2x+2e3x3e2x8e3x)Y = \frac{1}{5} \left( \frac{3e^{2x} + 2e^{-3x}}{3e^{2x} - 8e^{-3x}} \right)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS