Homogeneous linear differential equations with constant coefficients

Consider the homogeneous linear differential equation

(Eq:code)y(n)+an1y(n1)++a1y+a0y=0

where a0,a1,,an1R are constants. 



Using the differential operator D=ddx and its polynomial

(Eq:epoly)E=Dn+an1Dn1++a1D+a0,

(Eq:code) can be expressed as

Ey=0.

Now, consider the polynomial of variable t

F(t)=tn+an1tn1++a1t+a0.

Then, we have

E=F(D)

and (Eq:code) is expressed as

F(D)y=0.

We can use the properties of polynomials to solve this type of differential equation. We need some results from algebra.

Definition (Relatively prime, coprime)

Polynomials F1(t) and F2(t) are said to be relatively prime or coprime if the equations F1(t)=0 and F2(t)=0 do not have common solutions within C.

Lemma

The polynomials F1(t) and F2(t) in t are relatively prime if and only if there exist polynomials G1(t) and G2(t) such that

G1(t)F1(t)+G2(t)F2(t)=1.

Proof. Omitted. ■

Remark. The proof of this lemma is based on the Euclidean Algorithm for finding the greatest common divisor (GCD) of polynomials. The right-hand side of the above equation being equal to 1 indicates that the GCD of F1(t) and F2(t) is 1 (or any constant, but not a polynomial of t), that is, they are relatively prime (just like integers). □

See also: Polynomial greatest common divisor (Wikipedia)

Example. Let F1(t)=t1 and F2(t)=t2. These are clearly relatively prime, and

G1(t)(t1)+G2(t)(t2)=1

where G1(t)=1 and G2(t)=1. □


Example. Let F1(t)=t33t2+2t+3 and F2(t)=t2+1. By dividing F1(t) by F2(t), we have

(eg. 1)F1(t)=(t3)F2(t)+t+6.

By dividing F2(t)=t2+1 by t+6, we have

(eg. 2)F2(t)=(t6)(t+6)+37.

From this, we can see that the greatest common divisor of F1(t) and F2(t) is 1 (we use the convention that the coefficient of the leading term of a GCD is 1), which means they are relatively prime.

From (eg. 2), 

37=F2(t)(t6)(t+6).

Using (eg. 1),

37=F2(t)(t6)(F1(t)(t3)F2(t))=(t6)F1(t)+(t29t+19)F2(t).

Setting G1(t)=t637 and G2(t)=t29t+1937, we have

G1(t)F1(t)+G2(t)F2(t)=1.

Example. Let F1(t)=t38=(t2)(t2+2t+4) and F2(t)=t24t+4=(t2)2. The greatest common divisor is t2, and hence they are not relatively prime. Suppose there are polynomials G1(t) and G2(t) such that G1(t)F1(t)+G2(t)F2(t)=1 holds. The left-hand side is divisible by t2, whereas the right-hand side is not. This is a contradiction. Therefore, there are no such polynomials as G1(t) and G2(t). □


Theorem (Solution of F1(D)F2(D)y=0 when F1(t) and F2(t) are relatively prime)

Let F1(t) and F2(t) be polynomials in t that are relatively prime, and F(t)=F1(t)F2(t). Then, any solution of F(D)y=0 is of the form y=y1+y2 where y1 and y2 are solutions of F1(D)y=0 and F2(D)y=0, respectively. Conversely, any function of the form y=y1+y2, where y1 and y2 are solutions of F1(D)y=0 and F2(D)y=0, respectively, is a solution of F(D)y=0.

Proof. Suppose y is a solution of F(D)y=F1(D)F2(D)y=0. By the above Lemma, there exist polynomials G1(t) and G2(t) such that G1(t)F1(t)+G2(t)F2(t)=1. Using these polynomials, let us define

y1=G2(D)F2(D)y,y2=G1(D)F1(D)y.

Then, we have y=y1+y2. Now,

F1(D)y1=F1(D)G2(D)F2(D)y=G2(D)F1(D)F2(D)y  (commutative law)=G2(D)F(D)y=0.

Thus, y1 is a solution of F1(D)y=0. Similarly, y2 is a solution of F2(D)y=0.

Conversely, suppose y1 and y2 are solutions of F1(D)y=0 and F2(D)y=0, respectively, and let y=y1+y2. Then,

F(D)y=F(D)(y1+y2)=F2(D)F1(D)y1+F1(D)F2(D)y2=0.

Thus, y is a solution of F(D)y=0. ■


Example. Let us find the general solution of

y3y+2y=0.

Using the differential operator, this can be written as

(D23D+2)y=0.

The operator can be factorized as

D23D+2=(D1)(D2)

and D1 and D2 are relatively prime. The solution of (D1)y=0 is y=C1ex, and that of (D2)y=0 is y=C2e2x. Thus, the general solution of (D1)(D2)y=0 is

y=C1ex+C2e2x

where C1 and C2 are constants. □

Complex-valued functions

To treat more general linear equations, it is convenient to use complex-valued functions. Before proceeding, please read the Calculus of complex-valued functions.

We use the following theorem without proof.

Theorem (Fundamental Theorem of Algebra)

A polynomial equation of degree n with coefficients in R,

anxn+an1xn1++a1x+a0=0,  a0,a1,,anR,an0,

has exactly n (possibly redundant) solutions in C

This theorem implies that it is always possible to factorize the above polynomial of degree n as

anxn+an1xn1++a1x+a0=an(xα1)m1(xα2)m2(xαl)ml

where l is some natural number, α1,α2,,αlC are the distinct solutions, and m1,m2,,mlN are the multiplicities of the solutions with m1+m2++ml=n.

Remark. It is easy to show that if αC is a solution of a polynomial equation with real coefficients, then its complex conjugate α¯ is also a solution (exercise!) □


Theorem (Solution of (Dα)my=0)

Let F(t)=(tα)m where αC and mN. The general solution of the differential equation F(D)y=0 is given by

(eq:sol1)y=c0eαx+c1xeαx++cm1xm1eαx

where c0,c1,,cm1C are constants.

Proof. Let h(x) be an arbitrary function of x. We have

(Dα)h(x)eαx=h(x)eαx+h(x)αeαxαh(x)eαx=h(x)eαx.

By repeating this, we have, in general

(Dα)kh(x)eαx=h(k)(x)eαx.

If h(x) is a polynomial of degree less than m, then (Dα)mh(x)eαx=0. Therefore, the function of the form of (eq:sol1) is a solution of F(D)y=0.

Conversely, suppose that y=y(x) is a solution of F(D)y=0 and let h(x)=y(x)eαx. We have y(x)=h(x)eαx. From what we have shown above,  F(D)y=h(m)(x)eαx. But F(D)y=0 so h(m)(x)eαx=0, and hence h(m)(x)=0. This indicates that h(x) is a polynomial of degree at most (m1). Thus, y(x)=h(x)eαx has the form of (eq:sol1). ■


Example (Harmonic oscillator). The equation of motion of a harmonic oscillator with spring constant k and mass m is given by

md2xdt2=kx.

Let ω=km. This become

(D2+ω2)x=0.

But D2+ω2=(Diω)(D+iω), so we need to solve 

(Diω)x=0

and

(D+iω)x=0.

From the former, we have x1(t)=C1eiωt. From the latter, we have x2(t)=C2eiωt. Therefore, the general solution is 

x(t)=C1eiωt+C2eiωt.

But, we note that x(t) should be a real function because it describes a physical quantity (the coordinate of the mass point). Let's rewrite the above solution using Euler's formula,

x(t)=(C1+C2)cos(ωt)+i(C1C2)sin(ωt).

For this to be a real function, C1+C2 must be real and C1C2 must be purely imaginary. This can be achieved if we set C2=C1¯ (i.e., C1 and C2 are complex conjugate of each other). By setting A=C1+C2 and B=i(C1C2), we can rewrite the solution as

x(t)=Acos(kmt)+Bsin(kmt).

This is indeed a real-valued function if A and B are real constants. □


Example. Let us solve

y+y+y3y=0.

Let F(t)=t3+t2+t3. The above ODE is F(D)y=0. Since 

F(t)=(t1)(t2+2t+3)=(t1)(tα)(tα¯) where α=1+i2, the general solution is the sum of the solutions of (D1)y=0, (Dα)y=0, and (Dα¯)y=0. From these, we have y=Cex, y=C1eαx, and y=C2eα¯x, respectively. Thus, the general solution is

y=Cex+C1e(1+i2)x+C2e(1i2)x.

To make this a real function, we set A=C1+C2 and B=i(C1C2) and use Euler's formula to have

y=Cex+Aexcos(2x)+Bexsin(2x).

Note that this is a real-valued function if all the constants A,B, and C are real. □


Comments

Popular posts from this blog

Birth process

Branching processes: Mean and variance

Informal introduction to formal logic