Type a command or search the notes. Tab cycles completions. Up and down recall history when blank. Escape dismisses, then leaves the prompt.
MATH
[1251]

Examples from Linear ODE systems

All examples from Linear ODE systems.

Back to Linear ODE systems

A system with a limiting state

Consider

x′=(−333−3)x,x(0)=(40).\mathbf{x}'= \begin{pmatrix} -3&3\\ 3&-3 \end{pmatrix}\mathbf{x}, \qquad \mathbf{x}(0)= \begin{pmatrix}4\\0\end{pmatrix}.

The eigenvalues are 00 and −6-6, with eigenvectors

v1=(11),v2=(1−1).v_1=\begin{pmatrix}1\\1\end{pmatrix}, \qquad v_2=\begin{pmatrix}1\\-1\end{pmatrix}.

Since

(40)=2(11)+2(1−1),\begin{pmatrix}4\\0\end{pmatrix} =2\begin{pmatrix}1\\1\end{pmatrix} +2\begin{pmatrix}1\\-1\end{pmatrix},

the solution is

x(t)=2(11)+2e−6t(1−1)=(2+2e−6t2−2e−6t).\mathbf{x}(t) =2\begin{pmatrix}1\\1\end{pmatrix} +2e^{-6t}\begin{pmatrix}1\\-1\end{pmatrix} = \begin{pmatrix} 2+2e^{-6t}\\ 2-2e^{-6t} \end{pmatrix}.

The e−6te^{-6t} mode decays to zero, so x(t)\mathbf{x}(t) tends to the equilibrium (2,2)T(2,2)^{\mathsf T}. The solution does not tend to zero, because the λ=0\lambda=0 mode stays constant.

Complex eigenvalues and a real solution

For

x′=(1−221)x,x(0)=(10),\mathbf{x}'= \begin{pmatrix} 1&-2\\ 2&1 \end{pmatrix}\mathbf{x}, \qquad \mathbf{x}(0)= \begin{pmatrix}1\\0\end{pmatrix},

the eigenvalues are 1+2i1+2i and 1−2i1-2i. Corresponding eigenvectors may be chosen as

v+=(i1),v−=(−i1).v_+=\begin{pmatrix}i\\1\end{pmatrix}, \qquad v_-=\begin{pmatrix}-i\\1\end{pmatrix}.

At t=0t=0, the coefficients must satisfy

c+(i1)+c−(−i1)=(10).c_+\begin{pmatrix}i\\1\end{pmatrix} +c_-\begin{pmatrix}-i\\1\end{pmatrix} =\begin{pmatrix}1\\0\end{pmatrix}.

Solving these two scalar equations gives c+=−i/2c_+=-i/2 and c−=i/2c_-=i/2. Therefore

x(t)=−i2e(1+2i)t(i1)+i2e(1−2i)t(−i1).\mathbf{x}(t) = -\frac{i}{2}e^{(1+2i)t}\begin{pmatrix}i\\1\end{pmatrix} +\frac{i}{2}e^{(1-2i)t}\begin{pmatrix}-i\\1\end{pmatrix}.

Using Euler's formula eiθ=cos⁡θ+isin⁡θe^{i\theta}=\cos\theta+i\sin\theta with θ=2t\theta=2t and simplifying yields the real solution

x(t)=et(cos⁡(2t)sin⁡(2t)).\mathbf{x}(t) =e^t \begin{pmatrix} \cos(2t)\\ \sin(2t) \end{pmatrix}.

Direct differentiation checks that x′=Ax\mathbf{x}'=A\mathbf{x} and x(0)=(1,0)T\mathbf{x}(0)=(1,0)^{\mathsf T}.

The factor ete^t makes the amplitude grow, while the sine and cosine rotate the state with angular frequency 22. The trajectory therefore spirals outward from the origin: the imaginary parts of the eigenvalues produce the oscillation and their positive real part produces the instability.

Converting a higher-order equation

The third-order equation

y′′′+ay′′+by′+cy=0y'''+ay''+by'+cy=0

becomes a first-order system after setting

x1=y,x2=y′,x3=y′′.x_1=y,\qquad x_2=y',\qquad x_3=y''.

Then

ddt(x1x2x3)=(010001−c−b−a)(x1x2x3).\frac{d}{dt} \begin{pmatrix} x_1\\x_2\\x_3 \end{pmatrix} = \begin{pmatrix} 0&1&0\\ 0&0&1\\ -c&-b&-a \end{pmatrix} \begin{pmatrix} x_1\\x_2\\x_3 \end{pmatrix}.

The first two rows record x1′=x2x_1'=x_2 and x2′=x3x_2'=x_3, while the third row is the original equation solved for y′′′y'''.

A two-variable economic model

Let y1y_1 be the inflation level and y2y_2 the interest-rate level. Consider the model

dy1dt=12y1−15y2,dy2dt=35y1−25y2,\frac{dy_1}{dt}=\frac12y_1-\frac15y_2, \qquad \frac{dy_2}{dt}=\frac35y_1-\frac25y_2,

with

y(0)=(4/1006/100),A=(1/2−1/53/5−2/5).\mathbf{y}(0)= \begin{pmatrix}4/100\\6/100\end{pmatrix}, \qquad A= \begin{pmatrix} 1/2&-1/5\\ 3/5&-2/5 \end{pmatrix}.

The characteristic polynomial is

det⁡(A−λI)=λ2−110λ−225,\det(A-\lambda I) =\lambda^2-\frac1{10}\lambda-\frac2{25},

so

λ1=1+3320,λ2=1−3320.\lambda_1=\frac{1+\sqrt{33}}{20}, \qquad \lambda_2=\frac{1-\sqrt{33}}{20}.

Eigenvectors with second component 11 are

v1=((9+33)/121),v2=((9−33)/121).v_1= \begin{pmatrix} (9+\sqrt{33})/12\\1 \end{pmatrix}, \qquad v_2= \begin{pmatrix} (9-\sqrt{33})/12\\1 \end{pmatrix}.

Writing the initial vector as y(0)=c1v1+c2v2\mathbf{y}(0)=c_1v_1+c_2v_2 gives

c1=33−331100,c2=33+331100.c_1=\frac{33-\sqrt{33}}{1100}, \qquad c_2=\frac{33+\sqrt{33}}{1100}.

Hence

y(t)=33−331100e(1+33)t/20v1+33+331100e(1−33)t/20v2.\mathbf{y}(t) =\frac{33-\sqrt{33}}{1100} e^{(1+\sqrt{33})t/20}v_1 +\frac{33+\sqrt{33}}{1100} e^{(1-\sqrt{33})t/20}v_2.

The first exponent is positive and the second is negative, so one eigenmode grows and the other decays.

The growing mode is the model's unstable direction: any non-zero component of the initial state along v1v_1 eventually dominates. The decaying mode along v2v_2 is a short-run adjustment.

On this page