Transcription of Nonhomogeneous Linear Equations - Stewart …
1 Nonhomogeneous Linear EquationsIn this section we learn how to solve second-order Nonhomogeneous Linear differential equa-tions with constant coefficients, that is, Equations of the formwhere , , and are constants and is a continuous function. The related homogeneousequationis called the complementary equationand plays an important role in the solution of theoriginal Nonhomogeneous equation (1).TheoremThe general solution of the Nonhomogeneous differential equation (1)can be written aswhere is a particular solution of Equation 1 and is the general solution of thecomplementary Equation we have to do is verify that if is any solution of Equation 1, then is asolution of the complementary Equation 2. IndeedWe know from Additional Topics: Second-Order Linear Differential Equationshow tosolve the complementary equation. (Recall that the solution is , where and are linearly independent solutions of Equation 2.) Therefore, Theorem 3 says thatwe know the general solution of the Nonhomogeneous equation as soon as we know a par-ticular solution.
2 There are two methods for finding a particular solution: The method ofundetermined coefficients is straightforward but works only for a restricted class of func-tions . The method of variation of parameters works for every function but i0s usuallymore difficult to apply in Method of Undetermined CoefficientsWe first illustrate the method of undetermined coefficients for the equationwhere ) is a polynomial. It is reasonable to guess that there is a particular solution that is a polynomial of the same degree as because if is a polynomial, thenis also a polynomial. We therefore substitute a polynomial (of thesame degree as ) into the differential equation and determine the 1 Solve the equation .SOLUTIONThe auxiliary equation of isr2 r 2 r 1 r 2 0y y 2y 0y y 2y x2 Gyp x ay by cyyGypG xay by cy G x GGypy2y1yc c1y1 c2y2 t x t x 0 ay by cy ayp byp cyp a y yp b y yp c y yp ay ayp by byp cy cypy ypyycypy x yp x yc x 3ay by cy 02 Gcbaay by cy G x 11with roots.
3 So the solution of the complementary equation isSince is a polynomial of degree 2, we seek a particular solution of the formThen and so, substituting into the given differential equation, wehaveorPolynomials are equal when their coefficients are equal. ThusThe solution of this system of Equations isA particular solution is thereforeand, by Theorem 3, the general solution isIf (the right side of Equation 1) is of the form , where and are constants,then we take as a trial solution a function of the same form,, because thederivatives of are constant multiples of .EXAMPLE 2 Solve .SOLUTIONThe auxiliary equation is with roots , so the solution of thecomplementary equation isFor a particular solution we try . Then and . Substi-tuting into the differential equation, we haveso and . Thus, a particular solution isand the general solution isIf is either or , then, because of the rules for differentiating thesine and cosine functions, we take as a trial particular solution a function of the form yp x Acos kx Bsin kxCsin kxCcos kxG x y x c1cos 2x c2sin 2x 113e3xyp x 113e3xA 11313Ae3x e3x9Ae3x 4 Ae3x e3xyp 9Ae3xyp 3Ae3xyp x Ae3xyc x c1cos 2x c2sin 2x 2ir2 4 0y 4y e3xekxekxyp x AekxkCCekxG x y yc yp c1ex c2e 2x 12x2 12x 34 yp x 12x2 12x 34C 34B 12A 122A B 2C 02A 2B 0 2A 1 2Ax2 2A 2B x 2A B 2C x2 2A 2Ax B 2 Ax2 Bx C x2yp 2 Ayp 2Ax Byp x Ax2 Bx CG x x2yc c1ex c2e 2x 2r 12 Nonhomogeneous Linear Equations Figure 1 shows four solutions of the differen-tial equation in Example 1 in terms of the particu-lar solution and the functions and.
4 T x e 2xf x exyp Figure 2 shows solutions of the differentialequation in Example 2 in terms of and thefunctions and .Notice that all solutions approach as and all solutions resemble sine functions whenis t x sin 2xf x cos 2xypFIGURE 18_5_33ypyp+3gyp+2fyp+2f+3gFIGURE 24_2_42ypyp+gyp+fyp+f+gNONHOMOGENEOUS Linear Equations 3 EXAMPLE 3 Solve .SOLUTIONWe try a particular solutionThenso substitution in the differential equation givesorThis is true ifThe solution of this system isso a particular solution isIn Example 1 we determined that the solution of the complementary equation is. Thus, the general solution of the given equation isIf is a product of functions of the preceding types, then we take the trial solu-tion to be a product of functions of the same type. For instance, in solving the differentialequationwe would tryIf is a sum of functions of these types, we use the easily verified principle of super-position,which says that if and are solutions ofrespectively, then is a solution ofEXAMPLE 4 Solve.
5 SOLUTIONThe auxiliary equation is with roots , so the solution of the com-plementary equation is . For the equation we tryThen ,, so substitution in the equationgivesor 3Ax 2A 3B ex xex Ax 2A B ex 4 Ax B ex xexyp1 Ax 2A B exyp1 Ax A B exyp1 x Ax B exy 4y xexyc x c1e2x c2e 2x 2r2 4 0y 4y xex cos 2xay by cy G1 x G2 x yp1 yp2ay by cy G2 x ay by cy G1 x yp2yp1G x yp x Ax B cos 3x Cx D sin 3xy 2y 4y xcos 3xG x y x c1ex c2e 2x 110 cos x 3sin x yc c1ex c2e 2xyp x 110 cos x 310 sin xB 310A 110 A 3B 1and 3A B 0 3A B cos x A 3B sin x sin x Acos x Bsin x Asin x Bcos x 2 Acos x Bsin x sin xyp Acos x Bsin xyp Asin x Bcos xyp x Acos x Bsin xy y 2y sin x4 Nonhomogeneous Linear EQUATIONSThus,and , so ,, andFor the equation , we trySubstitution givesorTherefore,,, andBy the superposition principle, the general solution isFinally we note that the recommended trial solution sometimes turns out to be a solu-tion of the complementary equation and therefore can t be a solution of the nonhomoge-neous equation.
6 In such cases we multiply the recommended trial solution by (or by if necessary) so that no term in is a solution of the complementary 5 Solve .SOLUTIONThe auxiliary equation is with roots , so the solution of the com-plementary equation isOrdinarily, we would use the trial solutionbut we observe that it is a solution of the complementary equation, so instead we tryThenSubstitution in the differential equation givesso ,, andThe general solution isy x c1cos x c2sin x 12xcos x yp x 12xcos xB 0A 12yp yp 2 Asin x 2 Bcos x sin x yp x 2 Asin x Axcos x 2 Bcos x Bxsin x yp x Acos x Axsin x Bsin x Bxcos xyp x Axcos x Bxsin xyp x Acos x Bsin xyc x c1cos x c2sin x ir2 1 0y y sin xyp x x2xypy yc yp1 yp2 c1e2x c2e 2x (13x 29)ex 18 cos 2x yp2 x 18 cos 2x 8D 0 8C 1 8 Ccos 2x 8 Dsin 2x cos 2x 4 Ccos 2x 4 Dsin 2x 4 Ccos 2x Dsin 2x cos 2xyp2 x Ccos 2x Dsin 2xy 4y cos 2xyp1 x ( 13x 29)exB 29A 132A 3B 0 3A 1 FIGURE 44_4_2 2 yp The graphs of four solutions of the differen-tial equation in Example 5 are shown in Figure 4.
7 In Figure 3 we show the particular solutionof the differential equation inExample 4. The other solutions are given interms of and .t x e 2xf x e2xyp yp1 yp2 FIGURE 35_2_41ypyp+gyp+fyp+2f+gNONHOMOGENEOUS Linear Equations 5We summarize the method of undetermined coefficients as , where is a polynomial of degree , then try ,where is an th-degree polynomial (whose coefficients are determined by substituting in the differential equation.) or, where is an th-degreepolynomial, then trywhere and are th-degree :If any term of is a solution of the complementary equation, multiply by (or by if necessary).EXAMPLE 6 Determine the form of the trial solution for the differential has the form of part 2 of the summary, where ,, and. So, at first glance, the form of the trial solution would beBut the auxiliary equation is , with roots , so the solutionof the complementary equation isThis means that we have to multiply the suggested trial solution by.
8 So, instead, weuseThe Method of Variation of ParametersSuppose we have already solved the homogeneous equation and writ-ten the solution aswhere and are linearly independent solutions . Let s replace the constants (or parame-ters) and in Equation 4 by arbitrary functions and . We look for a particu-lar solution of the Nonhomogeneous equation of the form(This method is called variation of parametersbecause we have varied the parameters and to make them functions.) Differentiating Equation 5, we getSince and are arbitrary functions, we can impose two conditions on them. One con-dition is that is a solution of the differential equation; we can choose the other conditionso as to simplify our calculations. In view of the expression in Equation 6, let s impose thecondition thatu1 y1 u2 y2 07ypu2u1yp u1 y1 u2 y2 u1y1 u2y2 6c2c1yp x u1 x y1 x u2 x y2 x 5ay by cy G x u2 x u1 x c2c1y2y1y x c1y1 x c2y2 x 4ay by cy 0yp x xe2x A cos 3x B sin 3x xyc x e2x c1 cos 3x c2 sin 3x r 2 3ir2 4r 13 0yp x e2x A cos 3x B sin 3x P x 1m 3k 2G x y 4y 13y e2x cos 3xx2xypypnRQyp x ekxQ x cos mx ekxR x sin mxnPG x ekxP x sin mxG x ekxP x cos mxnQ x yp x ekxQ x nPG x ekxP x 6 Nonhomogeneous Linear EQUATIONSThenSubstituting in the differential equation, we getorBut and are solutions of the complementary equation, soand Equation 8 simplifies toEquations 7 and 9 form a system of two Equations in the unknown functions and.
9 After solving this system we may be able to integrate to find and and then the par-ticular solution is given by Equation 7 Solve the equation ,.SOLUTIONThe auxiliary equation is with roots , so the solution ofis . Using variation of parameters, we seek a solution of the formThenSetThenFor to be a solution we must haveSolving Equations 10 and 11, we get(We seek a particular solution, so we don t need a constant of integration here.) Then,from Equation 10, we obtainSou2 x sin x ln sec x tan x u2 sin xcos x u1 sin2xcos x cos2x 1cos x cos x sec xu1 x cos xu1 sin xu1 sin2x cos2x cos xtan xyp yp u1 cos x u2 sin x tan x11ypyp u1 cos x u2 sin x u1sin x u2cos xu1 sin x u2 cos x 010yp u1 sin x u2 cos x u1cos x u2sin x yp x u1 x sin x u2 x cos xc1sin x c2cos xy y 0 ir2 1 00 x 2y y tan xu2u1u2 u1 a u1 y1 u2 y2 G9ay2 by2 cy2 0anday1 by1 cy1 0y2y1u1 ay1 by1 cy1 u2 ay2 by2 cy2 a u1 y1 u2 y2 G8a u1 y1 u2 y2 u1y1 u2y2 b u1y1 u2y2 c u1y1 u2y2 Gyp u1 y1 u2 y2 u1y1 u2y2 FIGURE 5 Figure 5 shows four solutions of the differential equation in Example Linear Equations 7(Note that for.)
10 Thereforeand the general solution isy x c1sin x c2cos x cos x ln sec x tan x cos xln sec x tan x yp x cos x sin x sin x ln sec x tan x cos x0 x 2sec x tan x 0 Exercises1 10 Solve the differential equation or initial-value problemusing the method of undetermined ,,8.,,9.,,10.,, ;11 12 Graph the particular solution and several other characteristics do these solutions have in common? 13 18 Write a trial solution for the method of undeterminedcoefficients. Do not determine the 9y 1 xe9xy 9y xe x cos xy 9y e2x x2 sin x2y 3y y 1 cos 2x4y 5y y exy 0 0y 0 1y y 2y x sin 2xy 0 1y 0 2y y xexy 0 2y 0 1y 4y ex cos xy 0 0y 0 2y y ex x3y 2y y xe xy 4y 5y e xy 6y 9y 1 xy 2y sin 4xy 9y e3xy 3y 2y 19 22 Solve the differential equation using (a) undeterminedcoefficients and (b) variation of 23 28 Solve the differential equation using the method of varia-tion of ,24., y 4y 4y e 2xx3y y 1xy 3y 2y sin ex y 3y 2y 11 e x0 x 2y y cot x0 x 2y y sec xy y exy 2y y e2xy 3y 2y sin xy 4y xy 4y e3x x sin 2xy 2y 10y x2e x cos 3xy 3y 4y x3 x exClick here for here for Nonhomogeneous Linear solutions are allasymptotic to as.