<<

156 ● CHAPTER 4 HIGHER-ORDER DIFFERENTIAL EQUATIONS

In Problems 27–34 find linearly independent functions that 55. y25y 20 sin 5x 56. yy 4 cos x sin x are annihilated by the given . 57. yyy x sin x 58. y4y cos2x 27. D5 28. D2 4D 59. y8y6x2 9x 2 29. D D 30. D2 D ( 6)(2 3) 9 36 60. yyyy xex e x 7 31. D2 5 32. D2 6D 10 61. y3y3yy ex x 16 33. D3 10D2 25D 34. D2(D 5)(D 7) 62. 2y3y3y2y (ex e x)2 In Problems 35–64 solve the given by (4) x undetermined coefficients 63. y 2y y e 1 64. y(4) 4y5x2 e2x 35. y9y 54 36. 2y7y5y 29 37. yy3 38. y2yy10 In Problems 65–72 solve the given initial-value problem. 39. y 4y 4y 2x 6 65. y64y 16, y(0) 1, y(0) 0 40. y3y4x 5 66. yyx, y(0) 1, y(0) 0 41. yy8x2 42. y2yy x3 4x 67. y5yx 2, y(0) 0, y(0) 2 43. yy12y e4x 44. y2y2y 5e6x 68. y5y6y 10e2x, y(0) 1, y(0) 1 45. y2y3y 4ex 9 69. yy 8 cos 2x 4 sin x, y(p 2) 1, y(p 2) 0 46. y6y8y 3e 2x 2x > > 70. y yyxex y y 47. y25y 6 sin x 2 5, (0) 2, (0) 2, y(0) 1 48. y4y 4 cos x 3 sin x 8 71. y4y8y x3, y(0) 2, y(0) 4 49. y6y9y xe4x 72. y(4) yx ex, y(0) 0, y(0) 0, y(0) 0, 50. y3y10y x(ex 1) y(0) 0 51. yy x2ex 5 52. y2yy x2e x Discussion Problems 53. y2y5y ex sin x 73. Suppose L is a linear differential operator that factors 1 but has variable coefficients. Do the factors of L com- 54. yy y ex(sin 3x cos 3x) 4 mute? Defend your answer.

4.6 VARIATION OF PARAMETERS

REVIEW MATERIAL ● Basic integration formulas and techniques from calculus ● Review Section 2.3

INTRODUCTION We pointed out in the discussions in Sections 4.4 and 4.5 that the method of undetermined coefficients has two inherent weaknesses that limit its wider application to linear equations: The DE must have constant coefficients and the input function g(x) must be of the type listed in Table 4.4.1. In this section we examine a method for determining a particular solution yp of a nonhomogeneous linear DE that has, in theory, no such restrictions on it. This method, due to the eminent astronomer and mathematician Joseph Louis Lagrange (1736–1813), is known as varia- tion of parameters. Before examining this powerful method for higher-order equations we revisit the solution of lin- ear first-order differential equations that have been put into standard form. The discussion under the first heading in this section is optional and is intended to motivate the main discussion of this section that starts under the second heading. If pressed for time this motivational material could be assigned for reading.

Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 4.6 VARIATION OF PARAMETERS ● 157

Linear First-Order DEs Revisited In Section 2.3 we saw that the general so- lution of a linear first-order differential equation a1(x)y a0(x)y g(x) can be found by first rewriting it in the standard form dy P(x)y f(x) (1) dx and assuming that P(x) and f(x)are continuous on an common interval I. Using the in- tegrating factor method, the general solution of (1) on the interval I, was found to be ͵ ͵ ͵ P(x)dx P(x)dx͵ P(x)dx See (4) of Section 2.3. ᭤ y c1e e e f(x) dx.

The foregoing solution has the same͵ form as that given in Theorem 4.1.6, namely, P(x)dx y yc yp. In this case yc c1e is a solution of the associated homogeneous equation dy P(x)y 0 (2) dx

͵ ͵ P(x)dx͵ P(x)dx and yp e e f (x) dx (3)

is a particular solution of the nonhomogeneous equation (1). As a means of moti- vating a method for solving nonhomogeneous linear equations of higher-order we The basic procedure is ᭤ that used in Section 4.2. propose to rederive the particular solution (3) by a method known as variation of parameters.

Suppose that y1 is a known solution of the homogeneous equation (2), that is, dy 1 P(x)y 0. (4) dx 1 ͵ P(x)dx It is easily shown that y1 e is a solution of (4) and because the equation is linear, c1y1(x) is its general solution. Variation of parameters consists of finding a par- ticular solution of (1) of the form yp u1(x)y1(x). In other words, we have replaced the parameter c1 by a function u1. Substituting yp u1y1 into (1) and using the Product Rule gives d u y P(x)u y f(x) dx [ 1 1] 1 1 dy du u 1 y 1 P(x)u y f(x) 1 dx 1 dx 1 1

04 because of (4) dy du u 1 P(x)y ΅ y 1 f (x) 1 dx 1 1 dx du so y 1 f (x). 1 dx

By separating variables and integrating, we find u1:

f(x) ͵ f (x) du1 dx yields u1 dx. y1(x) y1(x) Hence the sought-after particular solution is

͵ f(x) yp u1y1 y1 dx. y1(x) ͵ P(x)dx From the fact that y1 e we see the last result is identical to (3).

Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 158 ● CHAPTER 4 HIGHER-ORDER DIFFERENTIAL EQUATIONS

Linear Second-Order DEs Next we consider the case of a linear second- order equation a2(x)y a1(x)y a0(x)y g(x), (5) although, as we shall see, variation of parameters extends to higher-order equations. The method again begins by putting (5) into the standard form yP(x)yQ(x)y f(x) (6)

by dividing by the leading coefficienta2(x). In (6) we suppose that coefficient func- tions P(x), Q(x), and f(x) are continuous on some common interval I. As we have already seen in Section 4.3, there is no difficulty in obtaining the complementary solution yc c1y1(x) c2y2(x), the general solution of the associated homogeneous equation of (6), when the coefficients are constants. Analogous to the preceding dis- cussion, we now ask: Can the parameters c1 and c2 in yc can be replaced with func- tions u1 and u2, or “variable parameters,” so that y u1(x)y1(x) u2(x)y2(x) (7) is a particular solution of (6)? To answer this question we substitute (7) into (6). Using the Product Rule to differentiate yp twice, we get yp u1y1 y1u1 u2y2 y2u2 y p u1y1 y1u1 y1u1 u1y1 u2 y 2 y2u2 y2u 2 u2 y2.

Substituting (7) and the foregoing derivatives into (6) and grouping terms yields 44zero zero yp P(x)yp Q(x)yp u1[y 1 Py1 Qy1] u2[y2 Py2 Qy2] y1u 1 u1y1 y2u2 u2 y2 P[y1u1 y2u2] y1u1 y2u2 d d [y u] [y u] P[y u y u] yu yu dx 1 1 dx 2 2 1 1 2 2 1 1 2 2 d [y u y u] P[y u y u] yu yu f (x). (8) dx 1 1 2 2 1 1 2 2 1 1 2 2

Because we seek to determine two unknown functions u1 and u2, reason dictates that we need two equations. We can obtain these equations by making the further assump- tion that the functions u1 and u2 satisfy y1u1 y2u2 0. This assumption does not come out of the blue but is prompted by the first two terms in (8), since if we demand that y1u1 y2u2 0, then (8) reduces to y1u1 y2u2 f (x). We now have our desired two equations, albeit two equations for determining the derivatives u1 and u2. By Cramer’s Rule, the solution of the system y1u1 y2u2 0 y1u1 y2u2 f (x) can be expressed in terms of determinants:

W y f (x) W y f (x) u 1 2 and u 2 1 , (9) 1 W W 2 W W

y y 0 y y 0 W 1 2 W 2 W 1 where ͉ ͉, 1 ͉ ͉, 2 ͉ ͉. (10) y1 y2 f (x) y2 y1 f (x)

The functions u1 and u2 are found by integrating the results in (9). The determinant W is recognized as the of y1 and y2. By linear independence of y1 and y2 on I, we know that W(y1(x), y2(x)) 0 for every x in the interval.

Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 4.6 VARIATION OF PARAMETERS ● 159

Summary of the Method Usually, it is not a good idea to memorize for- mulas in lieu of understanding a procedure. However, the foregoing procedure is too long and complicated to use each time we wish to solve a differential equation. In this case it is more efficient to simply use the formulas in (9). Thus to solve a2y a1y a0y g(x), first find the complementary function yc c1y1 c2y2 and then compute the Wronskian W( y1(x), y2(x)). By dividing by a2, we put the equation into the standard form yPyQy f(x) to determine f(x). We fin u1 and u2 by integrating u1 W1 W and u2 W2 W , where W1 and W2 are define > > as in (10). A particular solution is yp u1y1 u2y2. The general solution of the equation is then y yc yp.

EXAMPLE 1 General Solution Using Variation of Parameters

Solve y4y4y (x 1)e2x.

SOLUTION From the auxiliary equation m 2 4m 4 (m 2)2 0 we have 2x 2x 2x 2x yc c1e c2xe . With the identifications y1 e and y2 xe , we next com- pute the Wronskian: e2x xe2x W(e2x, xe2x) e4x. ͉2e2x 2xe2x e2x͉ Since the given differential equation is already in form (6) (that is, the coefficient of y is 1), we identify f(x) (x 1)e2x. From (10) we obtain

0 xe2x e2x 0 W ͉ ͉ (x 1)xe4x, W ͉ ͉ (x 1)e4x, 1 (x 1)e2x 2xe2x e2x 2 2e2x (x 1)e2x

and so from (9) (x 1)xe4x (x 1)e4x u x2 x, u x 1. 1 e4x 2 e4x 1 3 1 2 1 2 It follows that u1 3 x 2 x and u2 2 x x. Hence 1 1 1 1 1 y ΂ x3 x2΃e2x ΂ x2 x΃xe2x x3e2x x2e2x p 3 2 2 6 2 1 1 and y y y c e2x c xe2x x3e2x x2e2x. c p 1 2 6 2

EXAMPLE 2 General Solution Using Variation of Parameters

Solve 4y36y csc 3x.

SOLUTION We first put the equation in the standard form (6) by dividing by 4 1 y9y csc 3x. 4 2 Because the roots of the auxiliary equation m 9 0 are m1 3i and m2 3i, the complementary function is yc c1 cos 3x c2 sin 3x. Using y1 cos 3x, y2 sin 3x, 1 and f (x) 4 csc 3x, we obtain cos 3x sin 3x W(cos 3x, sin 3x) 3, ͉3 sin 3x 3 cos 3x͉ 0 sin 3x 1 cos 3x 0 1 cos 3x W W 1 ͉1 ͉ , 2 ͉ 1 ͉ . 4 csc 3x 3 cos 3x 4 3 sin 3x 4 csc 3x 4 sin 3x

Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 160 ● CHAPTER 4 HIGHER-ORDER DIFFERENTIAL EQUATIONS

W 1 W 1 cos 3x Integrating u 1 and u 2 1 W 12 2 W 12 sin 3x 1 1 ͉ ͉ gives u1 12 x and u2 36 ln sin 3x . Thus a particular solution is 1 1 y x cos 3x (sin 3x) ln͉ sin 3x ͉. p 12 36 The general solution of the equation is 1 1 y y y c cos 3x c sin 3x x cos 3x (sin 3x) ln͉ sin 3x ͉. (11) c p 1 2 12 36 Equation (11) represents the general solution of the differential equation on, say, the interval (0, p͞6).

Constants of Integration When computing the indefinite integrals of u1 and u2, we need not introduce any constants. This is because y yc yp c1y1 c2 y2 (u1 a1)y1 (u2 b1)y2 (c1 a1)y1 (c2 b1)y2 u1y1 u2 y2 C1y1 C2 y2 u1y1 u2 y2.

EXAMPLE 3 General Solution Using Variation of Parameters

1 Solve yy . x

2 SOLUTION The auxiliary equation m 1 0 yields m1 1 and m2 1. x x x x Therefore yc c1e c2e . Now W(e , e ) 2, and

ex(1 x) 1 x et u > u ͵ dt 1 , 1 , 2 2 x0 t

ex(1 x) 1 x et u > u ͵ dt 2 , 2 . 2 2 x0 t

Since the foregoing integrals are nonelementary, we are forced to write

1 x et 1 x et x ͵ x ͵ yp e dt e dt, 2 x0 t 2 x0 t

1 x et 1 x et x x x ͵ x ͵ and so y yc yp c1e c2e e dt e dt. (12) 2 x0 t 2 x0 t

In Example 3 we can integrate on any interval [x0, x] that does not contain the origin. We will solve the equation in Example 3 by an alternative method in Section 4.8.

Higher-Order Equations The method that we have just examined for non homogeneous second-order differential equations can be generalized to linear nth-order equations that have been put into the standard form (n) (n1) y Pn1(x)y P1(x)y P0(x)y f (x). (13) If yc c1y1 c2y2 cnyn is the complementary function for (13), then a particular solution is yp u1(x)y1(x) u2(x)y2(x) un(x)yn(x),

Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 4.6 VARIATION OF PARAMETERS ● 161

where the uk , k 1, 2,..., n are determined by the n equations

y1u1 y2u2 ynun 0 y1u1 y2u2 ynun 0 (14) (n1) (n1) (n1) y1 u1 y2 u2 yn un f (x). The first n 1 equations in this system, like y1u1 y2u2 0 in (8), are assumptions that are made to simplify the resulting equation after yp u1(x)y1(x) un(x)yn(x) is substituted in (13). In this case Cramer’s Rule gives W u k, k 1, 2, . . . , n, k W

where W is the Wronskian of y1, y2,..., yn and Wk is the determinant obtained by replacing the kth column of the Wronskian by the column consisting of the right- hand side of (14)—that is, the column consisting of (0, 0, ..., f (x)). When n 2, we get (9). When n 3, the particular solution is yp u1y1 u2y2 u3y3, where y1, y2, and y3 constitute a linearly independent set of solutions of the associated homogeneous DE and u1, u2, u3 are determined from W W W u 1, u 2, u 3, (15) 1 W 2 W 3 W

0 y2 y3 y1 0 y3 y1 y2 0 y1 y2 y3 W1 0 y2 y3 , W2 y1 0 y3 , W3 y1 y2 0 , and W y1 y2 y3 . p p p p p p p p f (x) y2 y3 y 1 f (x) y3 y 1 y 2 f (x) y 1 y 2 y3

See Problems 25–28 in Exercises 4.6.

REMARKS (i) Variation of parameters has a distinct advantage over the method of undetermined coefficients in that it will always yield a particular solution yp provided that the associated homogeneous equation can be solved. The pre- sent method is not limited to a function f (x) that is a combination of the four types listed on page 140. As we shall see in the next section, variation of parameters, unlike undetermined coefficients, is applicable to linear DEs with variable coefficients

(ii) In the problems that follow, do not hesitate to simplify the form of yp. Depending on how the antiderivatives of u1 and u2 are found, you might not obtain the same yp as given in the answer section. For example, in Problem 3 1 1 1 1 in Exercises 4.6 both yp 2 sin x 2 x cos x and yp 4 sin x 2 x cos x are valid answers. In either case the general solution y yc yp simplifies to 1 y c1 cos x c2 sin x 2 x cos x. Why?

EXERCISES 4.6 Answers to selected odd-numbered problems begin on page ANS-6.

In Problems 1–18 solve each differential equation by varia- 5. yy cos2x 6. yy sec2x tion of parameters. 7. yy cosh x 8. yy sinh 2x 1. yy sec x 2. yy tan x e2x 9x 9. y4y 10. y9y 3. y y sin x 4. y y sec u tan u x e3x

Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 162 ● CHAPTER 4 HIGHER-ORDER DIFFERENTIAL EQUATIONS

1 2 11. y3y2y 24. x y xy y sec(ln x); 1 ex y1 cos(ln x), y2 sin(ln x) ex 12. y2yy In Problems 25–28 solve the given third-order differential 1 x2 equation by variation of parameters. 13. y3y2y sin ex 25. yy x 14. y2yy et arctan t tan 15. y2yy e t ln t 26. y 4y sec 2x 4x 16. 2y2yy 41x 27. y 2y y 2y e e2x 17. 3y6y6y ex sec x 28. y3y2y 1 ex 18. 4y4yy ex/211 x2

In Problems 19–22 solve each differential equation by Discussion Problems variation of parameters, subject to the initial conditions In Problems 29 and 30 discuss how the methods of unde- y(0) 1, y(0) 0. termined coefficients and variation of parameters can be 19. 4yy xex/2 combined to solve the given differential equation. Carry out 20. 2yyy x 1 your ideas. 21. y2y8y 2e 2x e x 29. 3y6y30y 15 sin x ex tan 3x 22. y4y4y (12x2 6x)e2x 30. y2yy 4x2 3 x 1ex 31. In Problems 23 and 24 the indicated functions are known lin- What are the intervals of definition of the general solu- early independent solutions of the associated homogeneous tions in Problems 1, 7, 9, and 18? Discuss why the inter- differential equation on (0, ). Find the general solution of val of definition of the general solution in Problem 24 is not the given nonhomogeneous equation. (0, ). 32. Find the general solution of x4yx3y4x2y 1 23. x2yxy x2 1 y x3/2 2 ( 4) ; given that y1 x is a solution of the associated homo- 1/2 1/2 y1 x cos x, y2 x sin x geneous equation.

4.7 CAUCHY-EULER EQUATION

REVIEW MATERIAL ● Review the concept of the auxiliary equation in Section 4.3.

INTRODUCTION The same relative ease with which we were able to find explicit solutions of higher-order linear differential equations with constant coefficients in the preceding sections does not, in general, carry over to linear equations with variable coefficients. We shall see in Chapter 6 that when a linear DE has variable coefficients, the best that we can usually expect is to find a solution in the form of an infinite series. However, the type of differential equation that we consider in this section is an exception to this rule; it is a linear equation with variable coefficients whose general solution can always be expressed in terms of powers of x, sines, cosines, and logarithmic functions. Moreover, its method of solution is quite similar to that for constant-coefficient equations in that an auxiliary equation must be solved.

Cauchy-Euler Equation A linear differential equation of the form

dn y dn1y dy n n1 a x a x a x a y g(x), n dxn n 1 dxn1 1 dx 0

Copyright 2012 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s). Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.