Differential Equations

System of Differential Equation<!-- --> | Differential Equations

System of Differential Equation

Sharan Sajiv Menon - November 16th, 2021


This article shows how to solve a first-order linear homogenous system of differential equation with constant coefficents.

Example 1: Solve the following Differential Equation with the Initial conditions

y=16(7222)y,y(0)=(03)y'=\frac{1}{6} \begin{pmatrix} 7 & 2 \\ -2 & 2\end{pmatrix}y, \quad y(0)=\begin{pmatrix} 0\\-3\end{pmatrix}

Solution:

The general solution is of the following form.

y=c1eλ1tE1+c2eλ2tE2+...cneλntEny=c_1e^{\lambda_1{t}}E_1 + c_2e^{\lambda_2{t}}E_2 + ... c_ne^{\lambda_nt}E_n

Where λ\lambda is the eigenvalues and EE is the eigenvector

Start by simplifying the equation

y=(7/61/31/31/3)y,y(0)=(03)y'=\begin{pmatrix} 7/6 & 1/3 \\ -1/3 & 1/3\end{pmatrix}y, \quad y(0)=\begin{pmatrix} 0\\-3\end{pmatrix}

To solve this equation, we need to find the eigenvalues and eigenvectors of the matrix. Start by finding eigenvalues first.

Programming languages like MATLAB and Python can find the eigenvectors/eigenvalues automatically. A calculator like a TI-84 can do many operations to simplify the calculations. Use a Linear Algebra system to get the eigenvectors.

(7/61/31/31/3)λ(1001)=((76λ)/61/31/3(13λ)/3)\begin{pmatrix} 7/6 & 1/3 \\ -1/3 & 1/3\end{pmatrix} - \lambda\begin{pmatrix} 1 & 0 \\ 0 & 1\end{pmatrix} = \begin{pmatrix} (7-6\lambda)/6 & 1/3 \\ -1/3 & (1-3\lambda)/3\end{pmatrix}

Now. take the determinant of that matrix.

76λ61/31/313λ3=727λ18λ218+19=18λ227λ+9=0\begin{vmatrix} \frac{7-6\lambda}{6} & 1/3 \\ -1/3 & \frac{1-3\lambda}{3} \end{vmatrix} = \frac{7-27\lambda-18\lambda^2}{18} + \frac{1}{9}=18\lambda^2-27\lambda+9=0

Solve the equation for λ\lambda to get λ=1,12\lambda=1, \frac{1}{2}. Now, finding the eigenvectors involve solving the following equation

(Aλi)x=0(A-\lambda_i)x=0

Where AA is our initial matrix and λi\lambda_i is our eigenvalue. There are 2 eigenvalues, therefore we have 2 eigenvectors.

Start by finding (Aλi)(A-\lambda_i)

(7/61/31/31/3)1(1001)=(1/61/31/32/3)\begin{pmatrix} 7/6 & 1/3 \\ -1/3 & 1/3\end{pmatrix} - 1\begin{pmatrix} 1 & 0 \\ 0 & 1\end{pmatrix}=\begin{pmatrix} 1/6 & 1/3 \\ -1/3 & -2/3\end{pmatrix}

Now, solve the following equation.

(1/61/31/32/3)(xy)=(00)\begin{pmatrix} 1/6 & 1/3 \\ -1/3 & -2/3\end{pmatrix}\begin{pmatrix}x\\y\end{pmatrix}=\begin{pmatrix}0\\0\end{pmatrix}

Above is a system of equations. It can be solved by taking the reduced row echelon form of ABAB, where BB is the zeros-matrix. Solving this first system gets us the following eigenvector

(21),λ=1\begin{pmatrix}-2\\1\end{pmatrix}, \quad \lambda=1

Following the same process for λ=0.5\lambda=0.5, (make sure to replace the 1 with 0.5), we get the following eigenvector

(12),λ=12\begin{pmatrix}-1\\2\end{pmatrix}, \quad \lambda=\frac{1}{2}

Noting the general form of the solution mentioned at the beginning, our general solution is the following

y=c1et(21)+c2e0.5t(12)y= c_1e^t\begin{pmatrix}-2\\1\end{pmatrix} + c_2e^{0.5t}\begin{pmatrix}-1\\2\end{pmatrix}

To solve the IVP, just plug in the initial conditions into the problem.

(03)=c1e0(21)+c2e0.50(12)(03)=(2c1c2c1+c2)\begin{pmatrix}0\\-3\end{pmatrix}= c_1e^0\begin{pmatrix}-2\\1\end{pmatrix} + c_2e^{0.5*0}\begin{pmatrix}-1\\2\end{pmatrix} \to \begin{pmatrix}0\\-3\end{pmatrix}= \begin{pmatrix} -2c_1-c_2 \\ c_1+c_2 \end{pmatrix}

We have another linear system of equations, which can again be solved by taking the inverse-matrix or the reduced-row echelon form. Solving this system and we get c1=1c_1=1 and c2=1c_2=-1.

Therefore, our final solution is the following.

y=et(21)2e0.5t(12)y= e^t\begin{pmatrix}-2\\1\end{pmatrix} -2e^{0.5t}\begin{pmatrix}-1\\2\end{pmatrix}

Created by Sharan Sajiv Menon, © 2022