← Back to Math 010

5.4 Differential Equations: Class Notes

Definitions

A differential equation is an equation that contains the derivatives of one or more unknown functions.

The order of a differential equation is the order of the highest derivative it contains.

A differential equation of the form y′=ay has a general solution of the form y=ceax.

Check: if y=ceax, then y′=aceax=ay.

More formally, separate the variables and integrate:

dydx=ay∫dyy=∫adxln⁡|y|=ax+C1|y|=eax+C1=eaxeC1y=ceax

where c=±eC1.

A condition which specifies the value of the general solution at a point is called an initial condition, and the problem of solving a differential equation subject to an initial condition is called an initial-value problem.

If we know, for instance, that y(0)=P0, then y=P0eax.

A constant coefficient first-order homogeneous linear system has the form

y1′=a11y1+a12y2+…+a1nyny2′=a21y1+a22y2+…+a2nyn⋮⋮yn′=an1y1+an2y2+…+annyn

where yi=fi(x) are functions to be determined, and the aij’s are constants.

This can be written in matrix notation as

[y1′y2′⋮yn′]=[a11a12⋯a1na21a22⋯a2n⋮⋮⋮an1an2⋯ann][y1y2⋮yn]

or 𝐲′=A𝐲.

The trivial solution to the above differential equation is y1=y2=…=yn=0.

If we can find a matrix P that diagonalizes A, then we can use the diagonal matrix in solving the system. If P diagonalizes A, then form y→=Pu→, where u→ is an unknown vector. Then

y→′=Ay→ ⇒ Pu→′=APu→ ⇒ u→′=P−1APu→

This has the form u→′=Du→, where D is diagonal. This has the form of a system whose solutions contain exponentials.

Recap: Imagine an unknown vector u→ exists. Then find u→ and use what we find.

Example

a. Solve the system of differential equations.

y1′=2y1+3y2y2′=2y1+y2

Solution

The process: A→λi →D →u→′=Du→ →p→i →P →y→=Pu→.

a. Find the eigenvalues and eigenvectors of A.

A=[2321] ⇒ |λ−2−3−2λ−1|=0

λ2−3λ+2−6=0 ⇒ λ2−3λ−4=0 ⇒ (λ−4)(λ+1)=0 ⇒ λ=4, −1

The eigenvalues are distinct, so A is diagonalizable, with D=[400−1].

λ=4: [2−3−23] → [2−300] ⇒ p→1=[32]t

λ=−1: [−3−3−2−2] → [1100] ⇒ p→2=[1−1]t

P=[312−1],P−1=−15[−1−1−23]=[151525−35]

Then P−1AP=D, and

u→′=Du→ ⇒ [u1′u2′]=[400−1][u1u2]=[4u1−u2]

Each equation has the form y′=ay:

u1′=4u1 ⇒ u1=c1e4x,u2′=−u2 ⇒ u2=c2e−x

y→=Pu→=[312−1][c1e4xc2e−x]=[3c1e4x+c2e−x2c1e4x−c2e−x]

Answer: y1=3c1e4x+c2e−xy2=2c1e4x−c2e−x

b. Find the solution that satisfies the initial conditions y1(0)=25, y2(0)=5.

b. When x=0, y1=25 and y2=5:

25=3c1+c25=2c1−c2

Adding the equations gives 30=5c1, so c1=6, and then c2=7. Or use Cramer’s rule:

D=|312−1|=−5,Dc1=|2515−1|=−30,Dc2=|32525|=−35

c1=Dc1D=6,c2=Dc2D=7

Answer: y1=18e4x+7e−xy2=12e4x−7e−x

#7

Sometimes it is possible to solve a single higher-order linear differential equation with constant coefficients by expressing it as a system and applying the methods of this section. For the differential equation y″−y′−6y=0, show that the substitutions y1=y and y2=y′ lead to the system

y1′=y2y2′=6y1+y2

Solve this system, and use the result to solve the original differential equation.

Solution

y1=y ⇒ y1′=y′. Since y2=y′, we have y1′=y2.

If y2=y′, then y2′=y″. So

y″−y′−6y=0 ⇒ y2′−y2−6y1=0 ⇒ y2′=6y1+y2

Thus

y1′=y2y2′=6y1+y2ory→′=[0161]y→

Now solve the system.

A=[0161] ⇒ |λ−1−6λ−1|=0 ⇒ λ2−λ−6=0 ⇒ (λ−3)(λ+2)=0

So λ=−2, 3.

λ=−2: [−2−1−6−3] ⇒ p→1=[1−2]t,λ=3: [3−1−62] ⇒ p→2=[13]t

P=[11−23],D=[−2003] ⇒ u→′=[−2003]u→

u1′=−2u1 ⇒ u1=c1e−2x,u2′=3u2 ⇒ u2=c2e3x

y→=Pu→=[11−23][c1e−2xc2e3x]=[c1e−2x+c2e3x−2c1e−2x+3c2e3x]

We only need y1=y:

Answer: y=c1e−2x+c2e3x

Tip: Note that y2=−2c1e−2x+3c2e3x is y1′, as it should be.