Skip to article frontmatterSkip to article content

6.8 Linear Ordinary Differential Equations

Dept. of Electrical and Systems Engineering
University of Pennsylvania

Binder

Lecture notes (part 1)

Lecture notes (part 2)

1Reading

Material related to this page, as well as additional exercises, can be found in ALA 8.1.

2Learning Objectives

By the end of this page, you should know:

  • how to recognize linear dynamical systems,
  • how to find the solution to a linear ordinary differential equation.

3Linear Dynamical Systems

A dynamical system refers to the differential equations governing the change of a system over time. This system can be mechanical, electrical, fluid, biological, financial, or even social. In this page, we will learn how to solve special differential equations describing linear dynamical systems. We will draw heavily on the concepts of eigenvalues and eigenvectors covered in the previous pages.

3.1Scalar Ordinary Differential Equations

Let’s remind ourselves of the solution to first order scalar ordinary differential equations (ODEs), which take the form

dudt=au,\begin{align*} \frac{du}{dt} = au, \end{align*}

where aRa\in \mathbb R is a known constant, and u(t)u(t) is an unknown scalar function.

The general solution to (1) is an exponential function

u(t)=ceat,\begin{align*} u(t) = ce^{at}, \tag{SOL} \end{align*}

where the constant cRc\in\mathbb R is uniquely determined by the initial condition u(t0)=bu(t_0) = b (note we’ll often take t0=0t_0 = 0 to keep things simple). Substituting t=t0t= t_0 into (SOL), we see that

u(t0)=ceat0=b\begin{align*} u(t_0) = ce^{at_0} = b \end{align*}

so that c=beat0c = be^{-at_0}, allowing us to conclude that

u(t)=bea(tt0)\begin{align*} u(t) = be^{a(t - t_0)} \end{align*}

solves (1).

Before proceeding to the general case, we make some simple but useful observations:

  • The zero function u(t)=0u(t) = 0 for all tt is a solution with c=0c=0. This is known as an equilibrium of fixed point solution.

  • If a>0a > 0, then solutions grow exponentially: this implies u=0u = 0 is an unstable equilibrium, beacuse any small nonzero initial condition u(t0)=ϵu(t_0) = \epsilon will “blow up” far away from u=0u=0.

  • If a<0a < 0, the solutions decay exponentially; this implies u=0u = 0 is a stable equilibrium (in fact globally asymptotically so), which means that u(t)0u(t) \to 0 as tt\to \infty for any initial condition u(t0)u(t_0).

  • The borderline case is a=0a = 0, in which case all solutions are constant, i.e., u(t)=u(t0)u(t) = u(t_0) for all tt. Such systems are called marginally stable (or just stable) because while they don’t blow up on you, they also don’t converge to u=0u = 0.

alt text

3.2First Order Dynamical Systems

We will concerntrate most of our attention on homogenous linear time-invariant first order dynamical systems.

The question now becomes: what are the solutions to (LTI)? Well, let’s take inspiration from the scalar solution (SOL) and investigate if and when

u(t)=eλtv\begin{align*} \vv u(t) = e^{\lambda t} \vv v \tag{GUESS} \end{align*}

is a solution to (LTI). Here, λR\lambda \in \mathbb R is a constant, as is vRn\vv v\in \mathbb{R}^n. In other words, the components ui(t)=eλtviu_i(t) = e^{\lambda t} v_i of (GUESS) are constant multiples of the same exponential function.

Let’s start by computing the time derivatives of both sides of (GUESS):

u(t)=eλtvfor all t    ddtu(t)=ddteλtvfor all t    Au=λeλtvfor all t(by (LTI))    Aeλtv=λeλtvfor all t(by (GUESS))    Av=λvfor all t(since eλt is a positive scalar)\begin{align*} \vv u(t) = e^{\lambda t} \vv v \quad\text{for all $t$} &\iff \frac{d}{dt} \vv u(t) = \frac{d}{dt} e^{\lambda t} \vv v \quad\text{for all $t$} \\ &\iff A\vv u = \lambda e^{\lambda t} \vv v \quad\text{for all $t$} \qquad\text{(by (LTI))}\\ &\iff Ae^{\lambda t} \vv v = \lambda e^{\lambda t} \vv v \quad\text{for all $t$} \qquad\text{(by (GUESS))}\\ &\iff A \vv v = \lambda \vv v \quad\text{for all $t$} \qquad\text{(since $e^{\lambda t}$ is a positive scalar)} \end{align*}

Therefore (GUESS) solves (LTI) if and only if λv=Av\lambda \vv v = A \vv v. Note that this is precisely the definition of an eigenvalue/eigenvector pair, which we’ve studied extensively in the previous few pages! For the rest of this page, we’ll look at how the facts we’ve learend about eigenvalues and eigenvectors play a role in the solution to linear ODEs.

4Eigenvalues and Eigenvectors in Linear ODEs

A key obesrvation is that we can reduce solving (LTI) to solving nn independent scalar ODEs when the matrix AA is diagonalizable. Let V=[v1v2vn]V = \bm \vv{v_1} & \vv{v_2} & \dots & \vv{v_n}\em be the n×nn\times n matrix of the eigenvectors of AA, and D=diag(λ1,,λn)D = \text{diag}(\lambda_1, \dots, \lambda_n), the diagonal matrix of corresponding eigenvalues. Then A=VDV1A = VDV^{-1} so that

ddtu=VDV1u\begin{align*} \frac{d}{dt} \vv u = VDV^{-1} \vv u \tag{S1} \end{align*}

Rewriting this linear transformation in the eigenbasis given by VV, we set Vy=uV \vv y = \vv u so that y=V1u\vv y = V^{-1}\vv u and dudt=Vdydt\frac{d \vv u}{dt} = V\frac{d\vv y}{dt} to rewrite (S1) as

Vdydt=VDy\begin{align*} V \frac{d\vv y}{d t} = VD\vv y\tag{S2} \end{align*}

Since VV is nonsingular, (S2) is true if and only if

dydt=Dy\begin{align*} \frac{d\vv y}{dt} = D\vv y \tag{S3} \end{align*}

Thus by working in the coordinate system defined by the eigenbasis VV, we’ve reduced solving (LTI) to solving the nn decoupled scalar ODEs in (S3):

dyidt=λiyi\begin{align*} \frac{d y_i}{dt} = \lambda_i y_i \tag{Si} \end{align*}

The general solution to (Si) is yi(t)=cieλi(tt0)y_i(t) = c_ie^{\lambda_i(t - t_0)}, with ci=yi(c0)c_i = y_i(c_0). Here, yi(t0)y_i(t_0) can be computed via y(t0)=V1u(t0)\vv y (t_0) = V^{-1} \vv u (t_0).

Now, given the solution y(t)=(y1(t),,yn(t))\vv y(t) = (y_1(t), \dots, y_n(t)) in the eigenbasis VV, we need to map it back to our original coordinates via

u(t)=Vy(t)=c1eλ1(tt0)v1+c2eλ2(tt0)v2++cneλn(tt0)vn\begin{align*} \vv u(t) &= V \vv y(t) \\ &= c_1 e^{\lambda_1 (t - t_0)} \vv{v_1} + c_2 e^{\lambda_2 (t - t_0)} \vv{v_2} + \dots + c_ne^{\lambda_n (t - t_0)} \vv{v_n} \tag{SOL} \end{align*}

where we remember that c=V1u(t0)\vv c = V^{-1} u(t_0).

4.1Solving Linear ODEs when AA is Diagonalizable

In the previous section, we just showed something incredibly powerful, which we summarize in the following theorem.

Binder