Linear equations in higher order

The simplest second-order equations can be solved by directed integration performed twice, as we saw in Packet 02. To solve the IVP:

y(t)=f(t),y(0)=a0,y(0)=b0,

we can integrate twice:

y(t)=Φ(t)+c1t+c2,

where Φ(t)=F(t) and F(t)=f(t). At each stage in the integration, a new constant is produced, and the new constant covers all possibilities. (All possibilities because: any two antiderivatives differ by a constant. This fact comes from the Mean Value Theorem.)

From this we learn to expect that any second-order differential equation will determine a family of solution curves involving two parameters. Later we will consider a good argument for this expectation in the case of linear equations. For right now, an intuitive argument in the general case is that a second-order equation involves 3 functions: y,y,y, and the ODE determines any one of them in terms of the other two. Initial conditions are therefore fully specified by giving starting values of two of the functions, e.g. y(0) and y(0), since the equation can be used to solve for the third. These two components of the initial condition correspond to the two free parameters in the complete family of solutions.

Second order equations are called linear when the items y,y,y appear only in first-degree powers. A more precise and complete definition would require the definition of a second-order linear differential operator L, and we avoid the details for that right now. The ODE is determined from such an operator by setting L[y]=0 (homogeneous case) or L[y]=f(t) (inhomogeneous case) for some forcing function f(t).

Second-order, constant coefficients

Second-order linear equation with constant coefficients:

  • Homogeneous: ay+by+cy=0
  • Inhomogeneous: ay+by+cy=d

In this usage, the word ‘homogeneous’ means “no constant term”. This is a different meaning from ‘homogeneous’ as we have seen previously, although the two meanings are connected.

Homogeneous case It is easy to guess a system of solutions for the homogeneous case, inspired by the use of ert for first-order linear equations. Suppose y=ert is a solution. Then:

a(ert)+b(ert)+c(ert)=0ar2ert+brert+cert=0(ar2+br+c)ert=0ar2+br+c=0.
  • We conclude: any solution of the form y=ert must have r a solution to ar2+br+c=0.

  • In reverse: if r satisfies ar2+br+c=0, then y=ert is a solution to the differential equation.

  • The polynomial equation ar2+br+c=0 is sometimes called the characteristic equation of the linear ODE.

  • Notice also: if y1(t) and y2(t) are solutions, then αy1(t)+βy2(t) are also solutions, for any constants α,β. This is the practical meaning of linearity. It is sometimes also called the superposition principle.

  • More abstractly: the homogeneous linear ODE has a vector space of solutions. Concretely: solutions can be added and scaled to form new solutions.

Normally, the quadratic equation ar2+br+c=0 has two distinct solutions, namely r1=b+b24ac2a and r2=bb24ac2a. These two numbers provide a 2D vector space of solutions spanned by y1(t)=er1t and y2(t)=er2t. Namely:

y(t)=C1er1t+C2er2t

is a solution for any choice of C1,C2 combo. This gives a two-parameter family of solutions.

There are two potential complications for this method:

  • What happens if r1=r2?
  • What happens if r1 and r2 are complex numbers?

Repeated roots What happens if r1=r2?

This means b24ac=0 and r1=r2=b2a. Now watch this: plug in tert to the equation:

a(tert)+b(tert)+c(tert)=0a(2r+r2t)ert+b(1+rt)ert+ctert=0((ar2+br+c)t+(2ar+b))ert=0.

When r=r1=r2, certainly we have ar2+br+c=0. But moreover, we also have 2ar+b=0.

The extra terms coming out of the product rule applied to tert exactly cancel from the condition r=b2a of repeated roots. So tert is a new solution if-and-only-if r is a repeated root.

Example

Repeated roots

Problem: Solve the ODE: y6y+9y=0.

Solution: We first solve r26r+9=(r3)2=0. So we have r1=r2=3. Then y1(t)=e3t is one solution, and y2(t)=te3t is another solution. The complete family of solutions:

y(t)=C1e3t+C2te3t.

Check this complete family by plugging it into the ODE!

Exercise 07B-01 [During class.]

Second-order linear: distinct roots, repeated roots

Find the 2-parameter family of solution curves for the ODEs:

  • (a) 2y+6y+2y=0
  • (b) 4y12y+9y=0

(It is a fact, a magical fact from this point of view, that in higher order, for an ODE like any(n)+an1y(n1)++a0y=0, the same phenomenon generalizes: we will have ert,tert,t2ert,,tk1ert spanning the solutions precisely when r is a k-times repeated root of anrn+an1rn1++a0=0.)

Imaginary roots What happens if r1 and r2 have imaginary components?

In this case, we are naturally led to consider complex-valued solutions. It turns out, however, that by doing so, we will discover a family of pure real solutions. The pure real family is produced by applying a complex change of basis to the complex solution space.

Let us write r1=h+ki and r2=hki. (Since r1,r2 solve a quadratic, we know they must come in a conjugate pair like this with ±ki.) We can write two complex solutions:

z1(t)=e(h+ki)t,z2(t)=e(hki)t.

In light of the Euler formula ex+yi=ex(cosy+isiny), we make a judicious choice of linear combination of these solutions. It is designed to cancel away the imaginary parts:

y1(t)=12z1(t)+12z2(t)=ehtcos(kt)y2(t)=12iz1(t)12iz2(t)=ehtsin(kt).

(These solution are given by applying the matrix (1/2i/21/2i/2) to the original set. Notice that the columns are perpendicular, so the matrix is a ‘complex rotation’ plus overall scaling.)

Exercise 07B-02 [During class.]

Cancelling imaginary parts

By substituting the formulas for z1(t) and z2(t), verify that y1(t)=ehtcos(kt) and y2(t)=ehtsin(kt).

Exercise 07B-03 [During class.]

Verifying trigonometric solutions

Verify that y1(t)=ehtcos(kt) and y2(t)=ehtsin(kt) solve the original ODE.

To do this, first find the correct ODE: expand ar2+br+c=(r(h+ki))(r(hki)) in order to find the appropriate a,b,c for the general case of complex roots.

Then check that ehtcos(kt) and ehtsin(kt) are solutions to the ODE ay+by+cy=0.

Summary: because the repeated roots solutions have the form r=h±ki, we can always use the above method, namely judicious linear combinations, to reveal a pair of solutions y1(t) and y2(t) that do not involve imaginary numbers.

Real vs. complex solutions

Even first-order linear ODEs have complex solutions. For example, y=ky has real solution ekt but it also has the imaginary solution iekt, and every combination of them. In the second-order case, we could have simply guessed the real solutions ehtcos(kt) and ehtsin(kt). But the natural procedure using ert leads us first to the complex solutions, and from these we can extract purely real solutions using a complex combination.

Example

Second-order linear, complex roots, pure real solutions

Problem: Solve the ODE: y2y+5y=0.

Solution: We first solve r22r+5=0 and find r1=1+2i and r2=12i. We therefore have complex solutions

z1(t)=et(cos(2t)+isin(2t)),z2(t)=et(cos(2t)isin(2t))

and real solutions

y1(t)=etcos(2t),y2(t)=etsin(2t).

The complete family of solutions is therefore:

y(t)=C1etcos(2t)+C2etsin(2t).

Problems due Tuesday 12 Mar 2024 by 11:59pm

Problem 07-01

Solving second-order linear ODEs

Find the complete family of solutions to the following ODEs:

  • (a) y+y6y=0
  • (b) y+4y+5y=0
  • (c) y+y=0
  • (d) 16y8y+y=0
Problem 07-02

Solving second-order linear IVPs

Solve the IVP:

  • y5y+6y=0, y(1)=e2, y(1)=3e2
  • y+4y+5y=0, y(0)=1, y(0)=0
Problem 07-03

Asymptotic behavior

Consider the ODE: y+by+cy=0. Let y(t) be a solution.

Show that the following statements are equivalent:

  • b>0 and c>0
  • y(t)0 as t+
Problem 07-04

Extending methods to a third-order ODE

Find a complete family of solutions to the third-order ODE y3y+4y2y=0 using the methods discussed in this Packet.

Problem 07-05

Backwards reasoning: find the ODE

Find the ODE that has the following family of solutions: C1e4tcost+C2e4tsint.