5 Higher-Order Linear Differential Equations

5.1 Introduction: Second-Order Linear Equations

In Chapters 1 and 2 we investigated first-order differential equations. We now turn to equations of higher order n2, beginning in this chapter with equations that are linear. The general theory of linear differential equations parallels the second-order case (n=2), which we outline in this initial section.

Recall that a second-order differential equation in the (unknown) function y(x) is one of the form

G(x,y,y,y)=0. (1)

This differential equation is said to be linear provided that G is linear in the dependent variable y and its derivatives y and y. Thus a linear second-order equation takes (or can be written in) the form

A(x)y+B(x)y+C(x)y=F(x). (2)

Unless otherwise noted, we will always assume that the (known) coefficient functions A(x), B(x), C(x), and F(x) are continuous on some open interval I (perhaps unbounded) on which we wish to solve this differential equation, but we do not require that they be linear functions of x. Thus the differential equation

exy+(cosx)y+(1+x)y=tan1x

is linear because the dependent variable y and its derivatives y and y appear linearly. By contrast, the equations

y=yyandy+3(y)2+4y3=0

are not linear because products and powers of y or its derivatives appear.

If the function F(x) on the right-hand side of Eq. (2) vanishes identically on I, then we call Eq. (2) a homogeneous linear equation; otherwise, it is nonhomogeneous. For example, the second-order equation

x2y+2xy+3y=cosx

is nonhomogeneous; its associated homogeneous equation is

x2y+2xy+3y=0.

In general, the homogeneous linear equation associated with Eq. (2) is

A(x)y+B(x)y+C(x)y=0. (3)

In case the differential equation in (2) models a physical system, the nonhomogeneous term F(x) frequently corresponds to some external influence on the system.

Remark

Note that the meaning of the term “homogeneous” for a second-order linear differential equation is quite different from its meaning for a first-order differential equation (as in Section 1.6). Of course, it is not unusual—either in mathematics or in the English language more generally—for the same word to have different meanings in different contexts.

A Typical Application

Linear differential equations frequently appear as mathematical models of mechanical systems and electrical circuits. For example, suppose that a mass m is attached both to a spring that exerts on it a force FS and to a dashpot (shock absorber) that exerts a force FR on the mass (Fig. 5.1.1). Assume that the restoring force FS of the spring is proportional to the displacement x of the mass from its equilibrium position and acts opposite to the direction of displacement. Then

FS=kx(with k>0)

FIGURE 5.1.1.

A mass–spring–dashpot system.

so FS<0 if x>0 (spring stretched) while FS>0 if x<0 (spring compressed). We assume that the dashpot force FR is proportional to the velocity v=dx/dt of the mass and acts opposite to the direction of motion. Then

FR=cv=cdxdt(with c>0),

so FR<0 if v>0 (motion to the right) while FR>0 if v<0 (motion to the left).

If FR and FS are the only forces acting on the mass m (Fig. 5.1.2) and its resulting acceleration is a=dv/dt, then Newton’s law F=ma gives

mx=FS+FR; (4)

FIGURE 5.1.2.

Directions of the forces acting on m.

that is,

md2xdt2+cdxdt+kx=0. (5)

Thus we have a differential equation satisfied by the position function x(t) of the mass m. This homogeneous second-order linear equation governs the free vibrations of the mass; we will return to this problem in detail in Section 5.4.

If, in addition to FS and FR, the mass m is acted on by an external force F(t)—which must then be added to the right-hand side in Eq. (4)—the resulting equation is

md2xdt2+cdxdt+kx=F(t). (6)

This nonhomogeneous linear differential equation governs the forced vibrations of the mass under the influence of the external force F(t).

Homogeneous Second-Order Linear Equations

Consider the general second-order linear equation

A(x)y+B(x)y+C(x)y=F(x), (7)

where the coefficient functions A, B, C, and F are continuous on the open interval I. Here we assume in addition that A(x)0 at each point of I, so we can divide each term in Eq. (7)by A(x) and write it in the form

y+p(x)y+q(x)y=f(x). (8)

We will discuss first the associated homogeneous equation

y+p(x)y+q(x)y=0. (9)

A particularly useful property of this homogeneous linear equation is the fact that the sum of any two solutions of Eq. (9) is again a solution, as is any constant multiple of a solution. This is the central idea of the following theorem.

Remark

According to Theorem 1 in Section 4.2, Theorem 1 here implies that the set S of all solutions of the homogeneous linear second-order equation (9) is a subspace of the vector space of all functions on the real line R—and hence is itself a vector space. We therefore call S the solution space of the differential equation.

Example 1

We can see by inspection that

y1(x)=cosxandy2(x)=sinx

are two solutions of the equation

y+y=0.

Theorem 1 tells us that any linear combination of these solutions, such as

y(x)=3y1(x)2y2(x)=3cosx2sinx,

is also a solution. We will see later that, conversely, every solution of y+y=0 is a linear combination of these two particular solutions y1 and y2. Thus a general solution of y+y=0 is given by

y(x)=c1cosx+c2sinx.

It is important to understand that this single formula for the general solution encompasses a “twofold infinity” of particular solutions, because the two coefficients c1 and c2 can be selected independently. Figures 5.1.3 through 5.1.5 illustrate some of the possibilities, with either c1 or c2 set equal to zero, or with both nonzero.

FIGURE 5.1.3.

Solutions y(x)=c1cosx of y+y=0.

FIGURE 5.1.4.

Solutions y(x)=c2cosx of y+y=0.

FIGURE 5.1.5.

Solutions of y+y=0 with c1 and c2 both nonzero.

Earlier in this section we gave the linear equation mx+cx+kx=F(t) as a mathematical model of the motion of the mass shown in Fig. 5.1.1. Physical considerations suggest that the motion of the mass should be determined by its initial position and initial velocity. Hence, given any preassigned values of x(0) and x(0), Eq. (6) ought to have a unique solution satisfying these initial conditions. More generally, in order to be a “good” mathematical model of a deterministic physical situation, a differential equation must have unique solutions satisfying any appropriate initial conditions. The following existence and uniqueness theorem (proved in the Appendix) gives us this assurance for the general second-order equation.

Remark 1

Equation (8) and the conditions in (11) constitute a second-order linear initial value problem. Theorem 2 tells us that any such initial value problem has a unique solution on the whole interval I where the coefficient functions in (8) are continuous. Recall from Section 1.3 that a nonlinear differential equation generally has a unique solution on only a smaller interval.

Remark 2

Whereas a first-order differential equation dy/dx=F(x,y) generally admits only a single solution curve y=y(x) passing through a given initial point (a, b), Theorem 2 implies that the second-order equation in (8) has infinitely many solution curves passing through the point (a,b0)—namely, one for each (real number) value of the initial slope y(a)=b1. That is, instead of there being only one line through (a,b0) tangent to a solution curve, every nonvertical straight line through (a,b0) is tangent to some solution curve of Eq. (8). Figure 5.1.6 shows a number of solution curves of the equation y+3y+2y=0 all having the same initial value y(0)=1, while Fig. 5.1.7 shows a number of solution curves all having the same initial slope y(0)=1. The application at the end of this section suggests how to construct such families of solution curves for a given homogeneous second-order linear differential equation.

FIGURE 5.1.6.

Solutions of y+3y+2y=0 with the same initial value y(0)=1 but different initial slopes.

FIGURE 5.1.7.

Solutions of y+3y+2y=0 with the same initial slope y(0)=1 but different initial values.

Example 1

Continued We saw in the first part of Example 1 that y(x)=3cos x2sin x is a solution (on the entire real line) of y+y=0. It has the initial values y(0)=3, y(0)=2. Theorem 2 tells us that this is the only solution with these initial values. More generally, the solution

y(x)=b0cosx+b1sinx

satisfies the arbitrary initial conditions y(0)=b0, y(0)=b1; this illustrates the existence of such a solution, also as guaranteed by Theorem 2.

Example 1 suggests how, given a homogeneous second-order linear equation, we might actually find the solution y(x) whose existence is assured by Theorem 2. First, we find two “essentially different” solutions y1 and y2; second, we attempt to impose on the general solution

y=c1y1+c2y2 (12)

the initial conditions y(a)=b0, y(a)=b1. That is, we attempt to solve the simultaneous equations

c1y1(a)+c2y2(a)=bo,c1y1(a)+c2y2(a)=b1 (13)

for the coefficients c1 and c2.

Example 2

Verify that the functions

y1(x)=exandy2(x)=xex

are solutions of the differential equation

y2y+y=0,

and then find a solution satisfying the initial conditions y(0)=3, y(0)=1.

Solution

The verification is routine; we omit it. We impose the given initial conditions on the general solution

y(x)=c1ex+c2xex,

for which

y(x)=(c1+c2)ex+c2xex,

to obtain the simultaneous equations

y(0)=c1=3,y(0)=c1+c2=1.

The resulting solution is c1=3, c2=2. Hence the solution of the original initial value problem is

y(x)=3ex2xex.

Figure 5.1.8 shows several additional solutions of y2y+y=0, all having the same initial value y(0)=3.

FIGURE 5.1.8.

Different solutions y(x)=3ex+c2xex of y2y+y=0 with the same initial value y(0)=3.

Linearly Independent Solutions

In order for the procedure of Example 2 to succeed, the two solutions y1 and y2 must have the property that the equations in (13) can always be solved for c1 and c2, no matter what the initial values y(a)=b0 and y(a)=b1 might be. This is so, provided that the two functions y1 and y2 are linearly independent. According to the following definition, linear independence of functions defined on an interval I is analogous to linear independence of ordinary vectors.

Two functions are said to be linearly dependent on an open interval provided that they are not linearly independent there; that is, one of them is a constant multiple of the other. We can always determine whether two given functions f and g are linearly dependent on an interval I by noting at a glance whether either of the two quotients f/g or g/f is a constant-valued function on I.

Example 3

Thus it is clear that the following pairs of functions are linearly independent on the entire real line:

sinxandcosx;exande2x;exandxex;x+1andx2;xand|x|.

That is, neither sin x/cos x=tanx nor cos x/sin x=cotx is a constant-valued function; neither ex/e2x=e3x nor e2x/ex is a constant-valued function; and so forth. But the identically zero function f(x)0 and any other function g are linearly dependent on every interval, because 0·g(x)=0=f(x). Also, the functions

f(x)=sin2xandg(x)=sinx cosx

are linearly dependent on any interval because f(x)=2g(x) is the familiar trigonometric identity sin 2x=2sin xcos x.

General Solutions

But does the homogeneous equation y+py+qy=0 always have two linearly independent solutions? Theorem 2 says yes! We need only choose y1 and y2 so that

y1(a)=1,y1(a)=0andy2(a)=0,y2(a)=1.

It is then impossible that either y1=ky2 or y2=ky1 because k·01 for any constant k. Theorem 2 tells us that two such linearly independent solutions exist; actually finding them is a crucial matter that we will discuss briefly at the end of this section, and in greater detail beginning in Section 5.3.

We want to show, finally, that given any two linearly independent solutions y1 and y2 of the homogeneous equation

y(x)+p(x)y(x)+q(x)y(x)=0, (9)

every solution y of Eq. (9) can be expressed as a linear combination

y=c1y1+c2y2 (12)

of y1 and y2. This means that the function in (12) is a general solution of Eq. (9)—it provides all possible solutions of the differential equation.

As suggested by the equations in (13), the determination of the constants c1 and c2 in (12) depends on a certain 2×2 determinant of values of y1, y2, and their derivatives. Given two functions f and g, the Wronskian of f and g is the determinant

W=|fgfg|=fgfg.

We write either W(f, g) or W(x), depending on whether we wish to emphasize the two functions or the point x at which the Wronskian is to be evaluated. For example,

W(cosx,sinx)=|cosxsinxsinxcosx|=cos2x+sin2x=1

and

W(ex,xex)=|exxexexex+xex|=e2x.

These are examples of linearly independent pairs of solutions of differential equations (see Examples 1 and 2). Note that in both cases the Wronskian is everywhere nonzero.

On the other hand, if the functions f and g are linearly dependent, with f=kg (for example), then

W(f,g)=|kggkgg|=kggkgg0.

Thus the Wronskian of two linearly dependent functions is identically zero. In Section 5.2 we will prove that, if the two functions y1 and y2 are solutions of a homogeneous second-order linear equation, then the strong converse stated in part (b) of Theorem 3 holds.

Thus, given two solutions of Eq. (9), there are just two possibilities: The Wronskian W is identically zero if the solutions are linearly dependent; the Wronskian is never zero if the solutions are linearly independent. The latter fact is what we need to show that y=c1y1+c2y2 is the general solution of Eq. (9) if y1 and y2 are linearly independent solutions.

Remark

In essence, Theorem 4 tells us that, when we have found two linearly independent solutions y1 and y2 of the homogeneous equation in (9), we have then found all of its solutions. Specifically, {y1,y2} is then a basis for the solution space of the differential equation. We therefore call the linear combination Y=c1y1+c2y2 a general solution of the differential equation.

Example 4

If y1(x)=e2x and y2(x)=e2x, then

y1=(2)(2)e2x=4e2x=4y1andy2=(2)(2)e2x=4e2x=4y2.

Therefore, y1 and y2 are linearly independent solutions of

y4y=0. (15)

But y3(x)=cosh 2x and y4(x)=sinh 2x are also solutions of Eq. (15), because

d2dx2(cosh2x)=ddx(2sinh2x)=4cosh2x

and, similarly, (sinh2x)=4sinh2x. It therefore follows from Theorem 4 that the functions cosh 2 x and sinh 2 x can be expressed as linear combinations of y1(x)=e2x and y2(x)=e2x. Of course, this is no surprise, because

cosh 2x=12e2x+12e2xandsinh 2x=12e2x12e2x

by the definitions of the hyperbolic cosine and hyperbolic sine. Thus the solution space of the differential equation y4y=0 has the two different bases {e2x,e2x} and {cosh 2x, sinh 2x}.

Remark

Because e2x, e2x and cosh x, sinh x are two different pairs of linearly independent solutions of the equation y4y=0 in (15), Theorem 4 implies that every particular solution Y(x) of this equation can be written both in the form

Y(x)=c1e2x+c2e2x

and in the form

Y(x)=acosh 2x+bsinh 2x.

Thus these two different linear combinations (with arbitrary constant coefficients) provide two different descriptions of the set of all solutions of the same differential equation y4y=0. Hence each of these two linear combinations is a general solution of the equation. Indeed, this is why it is accurate to refer to a specific such linear combination as “a general solution” rather than as “the general solution.”

Linear Second-Order Equations with Constant Coefficients

As an illustration of the general theory introduced in this section, we discuss the homogeneous second-order linear differential equation

ay+by+cy=0 (16)

with constant coefficients a, b, and c. We first look for a single solution of Eq. (16) and begin with the observation that

(erx)=rerxand(erx)=r2erx, (17)

so any derivative of erx is a constant multiple of erx. Hence, if we substituted y=erx in Eq. (16), then each term would be a constant multiple of erx, with the constant coefficients dependent on r and the coefficients a, b, and c. This suggests that we try to find a value of r so that these multiples of erx will have sum zero. If we succeed, then y=erx will be a solution of Eq. (16).

For example, if we substitute y=erx in the equation

y5y+6y=0,

we obtain

r2erx5rerx+6erx=0.

Thus

(r25r+6)erx=0;(r2)(r3)erx=0.

Hence y=erx will be a solution if either r=2 or r=3. So, in searching for a single solution, we actually have found two solutions: y1(x)=e2x and y2(x)=e3x.

To carry out this procedure in the general case, we substitute y=erx in Eq. (16). With the aid of the equations in (17), we find the result to be

ar2erx+brerx+cerx=0.

Because erx is never zero, we conclude that y(x)=erx will satisfy the differential equation in (16) precisely when r is a root of the algebraic equation

ar2+br+c=0. (18)

This quadratic equation is called the characteristic equation of the homogeneous linear differential equation

ay+by+cy=0. (16)

If Eq. (18) has two distinct (unequal) roots r1 and r2, then the corresponding solutions y1(x)=er1x and y2(x)=er2x of (16) are linearly independent. (Why?) This gives the following result.

Example 5

Find the general solution of

2y7y+3y=0.

Solution

We can solve the characteristic equation

2r27r+3=0

by factoring:

(2r1)(r3)=0.

The roots r1=12 and r2=3 are real and distinct, so Theorem 5 yields the general solution

y(x)=c1ex/2+c2e3x.

Example 6

The differential equation y+2y=0 has characteristic equation

r2+2r=r(r+2)=0

with distinct real roots r1=0 and r2=2. Because e0x1, we get the general solution

y(x)=c1+c2e2x.

Figure 5.1.9 shows several different solution curves with c1=1, all appearing to approach the solution curve y(x)1 (with c2=0) as x+.

FIGURE 5.1.9.

Solutions y(x)=1+c2e2x of y+2y=0 with different values of c2.

Remark

Note that Theorem 5 changes a problem involving a differential equation into one involving only the solution of an algebraic equation.

If the characteristic equation in (18) has equal roots r1=r2, we get (at first) only the single solution y1(x)=er1x of Eq. (16). The problem in this case is to produce the “missing” second solution of the differential equation.

A double root r=r1 will occur precisely when the characteristic equation is a constant multiple of the equation

(rr1)2=r22r1r+r21=0.

Any differential equation with this characteristic equation is equivalent to

y2r1y+r21y=0. (20)

But it is easy to verify by direct substitution that y=xer1x is a second solution of Eq. (20). It is clear (but you should verify) that

y1(x)=er1xandy2(x)=xer1x

are linearly independent functions, so the general solution of the differential equation in (20) is

y(x)=c1er1x+c2xer1x.

Example 7

To solve the initial value problem

y+2y+y=0;y(0)=5,y(0)=3,

we note first that the characteristic equation

r2+2r+1=(r+1)2=0

has equal roots r1=r2=1. Hence the general solution provided by Theorem 6 is

y(x)=c1ex+c2xex.

Differentiation yields

y(x)=c1ex+c2exc2xex,

so the initial conditions yield the equations

y(0)=c1=5,y(0)=c1+c2=3,

which imply that c1=5 and c2=2. Thus the desired particular solution of the initial value problem is

y(x)=5ex+2xex.

This particular solution, together with several others of the form y(x)=c1ex+2xex, is illustrated in Fig. 5.1.10.

FIGURE 5.1.10.

Solutions y(x)=c1ex+2xex of y+2y+y=0 with different values of c1.

The characteristic equation in (18) may have either real or complex roots. The case of complex roots will be discussed in Section 5.3.

5.1 Problems

In Problems 1 through 16, a homogeneous second-order linear differential equation, two functions y1 and y2, and a pair of initial conditions are given. First verify that y1 and y2 are solutions of the differential equation. Then find a particular solution of the form y=c1y1+c2y2 that satisfies the given initial conditions. Primes denote derivatives with respect to x.

  1. yy=0; y1=ex, y2=ex; y(0)=0, y(0)=5

     

  2. y9y=0; y1=e3x, y2=e3x; y(0)=1, y(0)=15

     

  3. y+4y=0; y1=cos 2x, y2=sin 2x; y(0)=3, y(0)=8

     

  4. y+25y=0; y1=cos 5x, y2=sin 5x; y(0)=10, y(0)=10

     

  5. y3y+2y=0; y1=ex, y2=e2x; y(0)=1, y(0)=0

     

  6. y+y6y=0; y1=e2x, y2=e3x; y(0)=7, y(0)=1

     

  7. y+y=0; y1=1, y2=ex; y(0)=2, y(0)=8

     

  8. y3y=0; y1=1, y2=e3x; y(0)=4, y(0)=2

     

  9. y+2y+y=0; y1=ex, y2=xex; y(0)=2, y(0)=1

     

  10. y10y+25y=0; y1=e5x, y2=xe5x; y(0)=3, y(0)=13

     

  11. y2y+2y=0; y1=ex cos x, y2=ex sin x; y(0)=0, y(0)=5

     

  12. y+6y+13y=0; y1=e3x cos 2x, y2=e3x sin 2x; y(0)=2, y(0)=0

     

  13. x2y2xy+2y=0; y1=x, y2=x2; y(1)=3, y(1)=1

     

  14. x2y+2xy6y=0; y1=x2, y2=x3; y(2)=10, y(2)=15

     

  15. x2yxy+y=0; y1=x, y2=xln x; y(1)=7, y(1)=2

     

  16. x2y+xy+y=0; y1=cos(ln x), y2=sin(ln x); y(1)=2, y(1)=3

The following three problems illustrate the fact that the superposition principle does not generally hold for nonlinear equations.

  1. Show that y=1/x is a solution of y+y2=0, but that if c0 and c1, then y=c/x is not a solution.

  2. Show that y=x3 is a solution of yy=6x4, but that if c21, then y=cx3 is not a solution.

  3. Show that y11 and y2=x are solutions of yy+(y)2=0, but that their sum y=y1+y2 is not a solution.

Determine whether the pairs of functions in Problems 20 through 26 are linearly independent or linearly dependent on the real line.

  1. f(x)=π, g(x)=cos2 x+sin2 x

     

  2. f(x)=x3, g(x)=x2|x|

     

  3. f(x)=1+x, g(x)=1+|x|

     

  4. f(x)=xex, g(x)=|x|ex

     

  5. f(x)=sin2 x, g(x)=1cos 2x

     

  6. f(x)=ex sin x, g(x)=ex cos x

     

  7. f(x)=2cos x+3sin x, g(x)=3cos x2sin x

     

  8. Let yp be a particular solution of the nonhomogeneous equation y+py+qy=f(x) and let yc be a solution of its associated homogeneous equation. Show that y=yc+yp is a solution of the given nonhomogeneous equation.

  9. With yp=1 and yc=c1cos x+c2sin x in the notation of Problem 27, find a solution of y+y=1 satisfying the initial conditions y(0)=1=y(0).

Problems 29 through 32 explore the propeties of the Wronskian.

  1. Show that y1=x2 and y2=x3 are two different solutions of x2y4xy+6y=0, both satisfying the initial conditions y(0)=0=y(0). Explain why these facts do not contradict Theorem 2 (with respect to the guaranteed uniqueness).

  2. (a) Show that y1=x3 and y2=|x3| are linearly independent solutions on the real line of the equation x2y3xy+3y=0. (b) Verify that W(y1,y2) is identically zero. Why do these facts not contradict Theorem 3?

  3. Show that y1=sinx2 and y2=cosx2 are linearly independent functions, but that their Wronskian vanishes at x=0. Why does this imply that there is no differential equation of the form y+p(x)y+q(x)y=0, with both p and q continuous everywhere, having both y1 and y2 as solutions?

  4. Let y1 and y2 be two solutions of A(x)y+B(x)y+C(x)y=0 on an open interval I where A, B, and C are continuous and A(x) is never zero. (a) Let W=W(y1,y2). Show that

    A(x)dwdx=(y1)(Ay2)(y2)(Ay1).

    Then substitute for Ay2 and Ay2 from the original differential equation to show that

    A(x)dwdx=B(x)W(x).

    (b) Solve this first-order equation to deduce Abel’s formula

    W(x)=K exp (B(x)A(x)dx),

    where K is a constant. (c) Why does Abel’s formula imply that the Wronskian W(y1,y2) is either zero everywhere or nonzero everywhere (as stated in Theorem 3)?

Apply Theorems 5 and 6 to find general solutions of the differential equations given in Problems 33 through 42. Primes denote derivatives with respect to x.

  1. y3y+2y=0

     

  2. y+2y15y=0

     

  3. y+5y=0

     

  4. 2y+3y=0

     

  5. 2yyy=0

     

  6. 4y+8y+3y=0

     

  7. 4y+4y+y=0

     

  8. 9y12y+4y=0

     

  9. 6y7y20y=0

     

  10. 35yy12y=0

Each of Problems 43 through 48 gives a general solution y(x) of a homogeneous second-order differential equation ay+by+cy=0 with constant coefficients. Find such an equation.

  1. y(x)=c1+c2e10x

     

  2. y(x)=c1e10x+c2e10x

     

  3. y(x)=c1e10x+c2xe10x

     

  4. y(x)=c1e10x+c2e100x

     

  5. y(x)=c1+c2x

     

  6. y(x)=ex(c1ex2+c2ex2)

Problems 49 and 50 deal with the solution curves of y+3y+2y=0 shown in Figs. 5.1.6 and 5.1.7.

  1. Find the highest point on the solution curve with y(0)=1 and y(0)=6 in Fig. 5.1.6.

  2. Figure 5.1.7 suggests that the solution curves shown all meet at a common point in the third quadrant. Assuming that this is indeed the case, find the coordinates of that point.

  3. A second-order Euler equation is one of the form

    ax2y+bxy+cy=0 (22)

    where a, b, c are constants. (a) Show that if x>0, then the substitution v=ln x transforms Eq. (22) into the constant-coefficient linear equation

    ad2ydv2+(ba)dydv+cy=0 (23)

    with independent variable v. (b) If the roots r1 and r2 of the characteristic equation of Eq. (23) are real and distinct, conclude that a general solution of the Euler equation in (22) is y(x)=c1xr1+c2xr2.

Make the substitution v=ln x of Problem 51 to find general solutions (for x>0) of the Euler equations in Problems 52–56.

  1. x2y+xyy=0

     

  2. x2y+2xy12y=0

     

  3. 4x2y+8xy3y=0

     

  4. x2y+xy=0

     

  5. x2y3xy+4y=0

5.1 Application Plotting Second-Order Solution Families

This application deals with the plotting by computer of families of solutions such as those illustrated in Figs. 5.1.6 and 5.1.7. Show first that the general solution of the differential equation

y+3y+2y=0 (1)

is

y(x)=c1ex+c2e2x. (2)

This is equivalent to the graphing calculator result shown in Figure 5.1.11, and to the Wolfram|Alpha output generated by the simple query

y″ + 3y′ + 2y = 0

FIGURE 5.1.11.

TI-Nspire CX CAS screen showing the general solution of y+3y+2y=0.

Next show that the particular solution of Eq. (1) satisfying y(0)=a, y(0)=b corresponds to c1=2a+b and c2=ab, that is

y(x)=(2a+b)ex(a+b)e2x. (3)

For Fig. 5.1.6, we fix a=1, leading to the particular solution

y(x)=(b+2)ex(b+1)e2x. (4)

The Matlab loop

x = - 1 :  0.02 :  5 % x-vector from x = - 1 to x = 5
for b = -6 :  2 :  6 % for b = -6 to 6 with db = 2 do
   y = (b + 2)*exp(-x) - (b + 1)*exp(-2*x);
   plot(x,y)
end

was used to generate Fig. 5.1.6.

For Fig. 5.1.7, we instead fix b=1, leading to the particular solution

y(x)=(2a+1)ex(a+1)e2x. (5)

The Matlab loop

x = -2 :  0.02 :  4   % x-vector from x = -2 to x = 4
for a = -3 :  1 :  3  % for a = -3 to 3 with da = 1 do
   y = (2*a + 1)*exp(-x) - (a + 1)*exp(-2*x);
   plot(x,y)
end

was used to generate Fig. 5.1.7.

Computer systems, such as Maple and Mathematica, as well as graphing calculators, have commands to carry out for-loops such as the two shown here. Moreover, such systems often allow for interactive investigation, in which the solution curve is immediately redrawn in response to on-screen input. For example, Fig. 5.1.12 was generated using Matlab’s uicontrol command; moving the sliders allows the user to experiment with various combinations of the initial conditions y(0)=a and y(0)=b.

FIGURE 5.1.12.

Matlab graph of Eq. (3) with a=2 and b=1. Using the sliders, a and b can be changed interactively.

The Mathematica command

Manipulate[
    Plot[(2*a+b)*Exp[-x]+(-b-a)*Exp[-2*x],
    {x,-1,5}, PlotRange -> {-5,5}],
    {a,-3,3}, {b,-6,6}]

produces a similar display, as does the Maple command

Explore(plot((2*a+b)*exp(-x)+(-b-a)*exp(-2*x),
    x = -1..5, y=-5..5))

(after first bringing up a dialog box in which the ranges of values for a and b are specified). Likewise some graphing calculators feature a touchpad or other screen navigation method allowing the user to vary specified parameters in real time (see Fig. 5.1.13).

FIGURE 5.1.13.

TI-Nspire CX CAS graph of Eq. (3) with a=2 and b=1. The arrows allow a and b to be changed interactively.

Begin by either reproducing Figs. 5.1.6 and 5.1.7 or by creating an interactive display that shows the graph of (3) for any desired combination of a and b. Then, for each of the following differential equations, modify your commands to examine the family of solution curves satisfying y(0)=1, as well as the family of solution curves satisfying the initial condition y(0)=1.

  1. yy=0

  2. y3y+2y=0

  3. 2y+3y+y=0

  4. y+y=0 (see Example 1)

  5. y+2y+2y=0, which has general solution y(x)=ex(c1cos x+c2sin x)

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.96.37