← Back to Math 055

4.1 Preliminary Theory–Linear Equations: Class Notes

4.1a

Definition

The equations

an(x)dnydxn+an−1(x)dn−1ydxn−1+⋯+a1(x)dydx+a0(x)y=0(1)

and

an(x)dnydxn+an−1(x)dn−1ydxn−1+⋯+a1(x)dydx+a0(x)y=g(x)(2)

are nth-order, linear differential equations. (1) is homogeneous, and if g(x)≢0, then (2) is nonhomogeneous.

Abbreviations: hom, homog for homogeneous.

Definition

The points y(x0)=y0, y′(x0)=y1, …, y(n−1)(x0)=yn−1 are initial conditions. An initial-value problem (IVP) is (1) or (2), together with initial conditions. In the event that we have information such as y(a)=y0, y(b)=y1, then we have a boundary-value problem (BVP).

In an initial-value problem, every condition is given at the same point x0. In a boundary-value problem, the conditions are given at two different points a and b. The conditions can also involve derivatives, for example

y(a)=y0,y′(b)=y1.

Theorem: Existence of a Unique Solution

Let an(x), an−1(x), …, a1(x) and g(x) be continuous on an interval I and let an(x)≠0 for every x in this interval. If x=x0 is any point in this interval, then a solution y(x) of the initial-value problem (2) exists on the interval and is unique.

These two important criteria will be assumed henceforth in the statement of theorems about linear DEs.

A BVP can have zero, one, or infinitely many solutions.

Example

The given two-parameter family is a solution of the indicated differential equation on the interval (−∞,∞). Determine whether a member of the family can be found that satisfies the boundary conditions.

y=c1x2+c2x4+3;x2y″−5xy′+8y=24

(a) y(−1)=0,  y(1)=4  (b) y(0)=1,  y(1)=2

(c) y(0)=3,  y(1)=0  (d) y(1)=3,  y(2)=15

Solution

Substitute each boundary condition into y=c1x2+c2x4+3 and see whether the resulting equations in c1 and c2 can be solved.

(a)

y(−1)=0⇒ c1+c2+3=0 ⇒ c1+c2=−3y(1)=4⇒ c1+c2+3=4 ⇒ c1+c2=1

The two equations contradict each other (c1+c2 cannot equal both −3 and 1).

Answer: No solution

(b)

y(0)=1 ⇒ c1(0)+c2(0)+3=1 ⇒ 3=1

This is false for every choice of c1 and c2.

Answer: No solution

(c)

y(0)=3⇒ 3=3(always true)y(1)=0⇒ c1+c2+3=0 ⇒ c2=−3−c1

Only one condition restricts the constants, so c1 can be any real number:

Answer: y=c1x2+(−3−c1)x4+3,  c1∈ℝ  (infinitely many solutions)

(d)

y(1)=3⇒ c1+c2+3=3y(2)=15⇒ 4c1+16c2+3=15

The first equation gives c1=−c2; then the second becomes 12c2=12, so

c1=−1,c2=1.

Answer: y=−x2+x4+3  (unique solution)

Tip: The four parts show all three possibilities for a BVP: (a) and (b) have no solution, (c) has infinitely many, and (d) has exactly one.

4.1b

Definition

A set of functions f1(x), f2(x), …, fn(x) is said to be linearly dependent on an interval I if there exist constants c1, c2, …, cn, not all zero, such that c1f1(x)+c2f2(x)+⋯+cnfn(x)=0 for every x in the interval. If the set of functions is not linearly dependent on the interval, it is said to be linearly independent.

Independent: f1(x)=ex,  f2(x)=x2+3,  f3(x)=sin⁡x. The only way to have

c1ex+c2(x2+3)+c3sin⁡x=0

for every x is c1=c2=c3=0.

Dependent: y1=3e2x,  y2=2e2x. These constants are not all zero:

−2(3e2x)+3(2e2x)=0.

Definition

Suppose each of the functions f1(x), f2(x), …, fn(x) possesses at least n−1 derivatives. The determinant

W(f1,f2,…,fn)=|f1f2⋯fnf1′f2′⋯fn′⋮⋮⋮f1(n−1)f2(n−1)⋯fn(n−1)|,

where the primes denote derivatives, is called the Wronskian of the functions.

Theorem: Criterion for Linearly Independent Solutions

Let y1, y2, …, yn be n solutions of the homogeneous nth-order differential equation (1) on an interval I. Then the set of solutions is linearly independent on I if and only if W(y1,y2,…,yn)≠0 for every x in the interval.

Note: The Wronskian of these solutions is either always zero or never zero on an interval.

Example

Determine whether the given set of functions is linearly independent on the interval (−∞,∞).

f1(x)=cos⁡2x,f2(x)=1,f3(x)=cos2⁡x

Solution

Recall: determinants

2 by 2: multiply down the main diagonal and subtract the product up the other diagonal:

|abcd|=ad−bc

3 by 3 (expansion by minors along the first row):

|abcdefghi|=+a|efhi|−b|dfgi|+c|degh|

You can expand along any row or column. The signs follow the checkerboard pattern + − + / − + − / + − + (row by row).

Each row of the Wronskian is the derivative of the row above it. For f3=cos2⁡x, the chain rule gives f3′=−2cos⁡xsin⁡x, which we rewrite with the double-angle identity as −sin⁡2x; then f3″=−2cos⁡2x.

W(f1,f2,f3)=|cos⁡2x1cos2⁡x−2sin⁡2x0−sin⁡2x−4cos⁡2x0−2cos⁡2x|

The second column has two zeros, so expand down the second column. Its only nonzero entry, 1, sits in a − position:

W=−1|−2sin⁡2x−sin⁡2x−4cos⁡2x−2cos⁡2x|=−1(4cos⁡2xsin⁡2x−4cos⁡2xsin⁡2x)=0

The Wronskian is zero, and in fact we can write down a dependence relation. Using the identity cos⁡2x=2cos2⁡x−1,

cos⁡2x−2cos2⁡x+1=0,that is,f1+f2−2f3=0.

Answer: Not independent (linearly dependent)

Theorem: Superposition Principle–Homogeneous Equations

Let y1, y2, …, yk be solutions of the homogeneous nth-order differential equation (1) on an interval I. Then the linear combination c1y1(x)+c2y2(x)+⋯+ckyk(x), where the ci, i=1,2,…,k are arbitrary constants, is also a solution on the interval.

For example, y1=e3x and y2=e−5x are solutions to y″+2y′−15y=0. Check y=4e3x:

y=4e3x ⇒ y′=4·3e3x ⇒ y″=4·9e3xy″+2y′−15y=4(9e3x+2·3e3x−15e3x)=4·0=0

The constant 4 factors out, so y1=c1e3x is a solution for every c1∈ℝ, and likewise c2e−5x. Then

y=c1e3x+c2e−5x

is also a solution for any c1,c2∈ℝ.

Definition

Any set y1, y2, …, yn of n linearly independent solutions of the homogeneous nth-order differential equation (1) on an interval I is said to be a fundamental set of solutions on the interval.

The number of solutions matches the order of the equation.

Theorem: General Solution–Homogeneous Equations

Let y1, y2, …, yn be a fundamental set of solutions of the homogeneous linear nth-order differential equation (1) on an interval I. Then the general solution of the equation on the interval is y=c1y1(x)+c2y2(x)+⋯+cnyn(x).

4.1c

Example

Verify that the given functions form a fundamental set of solutions of the differential equation on the indicated interval. Form the general solution.

x2y″+xy′+y=0;cos⁡(ln⁡x),  sin⁡(ln⁡x),  (0,∞)

Solution

Two things to show: (1) each function satisfies the equation (plug in and show the equation is true), and (2) the functions are linearly independent, W≠0.

Step 1: solutions. Let y1=cos⁡(ln⁡x). By the chain rule,

y1=cos⁡(ln⁡x)y1′=−sin⁡(ln⁡x)xy1″=sin⁡(ln⁡x)−cos⁡(ln⁡x)x2

Substitute into the left side; the powers of x cancel:

x2y1″+xy1′+y1=sin⁡(ln⁡x)−cos⁡(ln⁡x)+(−sin⁡(ln⁡x))+cos⁡(ln⁡x)=0.

So y1 is a solution. A similar computation shows y2=sin⁡(ln⁡x) is also a solution.

Step 2: linearly independent? Compute the Wronskian (main diagonal minus other diagonal):

W=|cos⁡(ln⁡x)sin⁡(ln⁡x)−sin⁡(ln⁡x)xcos⁡(ln⁡x)x|=cos2⁡(ln⁡x)x+sin2⁡(ln⁡x)x=1x≠0on (0,∞).

Yes: the functions are linearly independent, so they form a fundamental set of solutions.

Answer: y=c1cos⁡(ln⁡x)+c2sin⁡(ln⁡x)

Theorem: Existence of a Fundamental Set

There exists a fundamental set of solutions for the homogeneous linear nth-order differential equation (1) on an interval I.

Definition

Any function yp, free of arbitrary parameters, that satisfies (2) is said to be a particular solution of the equation.

Theorem: General Solution–Nonhomogeneous Equations

Let yp be any particular solution of the nonhomogeneous linear nth-order differential equation (2) on an interval I and let y1, y2, …, yn be a fundamental set of solutions of the associated homogeneous differential equation (1) on I. Then the general solution of the equation on the interval is

y=c1y1(x)+c2y2(x)+⋯+cnyn(x)+yp(x),

where the ci, i=1,2,…,n are arbitrary constants.

The first part is the general solution of the homogeneous DE (1), and the last part is a particular solution of the nonhomogeneous DE (2).

Theorem: Superposition Principle–Nonhomogeneous Equations

Let yp1, yp2, …, ypk be k particular solutions of the nonhomogeneous linear nth-order differential equation (2) on an interval I corresponding, in turn, to k distinct functions g1, g2, …, gk. Then yp(x)=yp1(x)+yp2(x)+⋯+ypk(x) is a particular solution of

an(x)y(n)+an−1(x)y(n−1)+⋯+a1(x)y′+a0(x)y=g1(x)+g2(x)+⋯+gk(x).

In other words: find a particular solution for each piece of g(x), then add them together.

Example

(a) Verify that yp1=3e2x and yp2=x2+3x, respectively, are particular solutions of

y″−6y′+5y=−9e2xandy″−6y′+5y=5x2+3x−16.

(b) Use part (a) to find the particular solution of

y″−6y′+5y=5x2+3x−16−9e2x.

Solution

(a) For yp1=3e2x: yp1′=6e2x and yp1″=12e2x, so

12e2x−6(6e2x)+5(3e2x)=(12−36+15)e2x=−9e2x. ✓

For yp2=x2+3x: yp2′=2x+3 and yp2″=2, so

2−6(2x+3)+5(x2+3x)=2−12x−18+5x2+15x=5x2+3x−16. ✓

(b) The right side is the sum of the two right sides in part (a), so by the superposition principle the particular solution is yp=yp1+yp2:

Answer: yp=x2+3x+3e2x

Going one step further: the associated homogeneous equation y″−6y′+5y=0 has general solution

yc=c1ex+c2e5x,

called the complementary solution. So the general solution of the nonhomogeneous equation is y=yc+yp:

Answer: y=c1ex+c2e5x+x2+3x+3e2x