Docsity

Assignment 4 with Solutions - Differential Equations | MATH 301, Assignments of Differential Equations

Toggle sidebar
bg1
Di¤erential Equations - Math 301
Solutions and hints for assigned homework problems
CHAPTER 4
Sec.4.1- Basic theory.
1. We use the given initial values to …nd c1; c2(also see Section 1.2):
y=c1ex+c2ex=)y0=c1exc2ex
0 = y(0) = c1+c2=)c2=c1
1 = y0(0) = c1c2=)c1(c1) = 1 =)c1=1
2=)c2=1
2:
Therefore the particular member of the 2-parameter family is y=ex=2ex=2:
3. We use the given initial values to …nd c1; c2(also see Section 1.2):
y=c1x+c2xln x=)y0=c1+c2ln x+c2x1
x=c1+c2+c2ln x
3 = y(1) = c1+ 0 =)c1= 3
1 = y0(1) = c1+c2+ 0 =)c2=1c1=13 = 4
Therefore the particular member of the 2-parameter family is y= 3x4xln x:
5. If we try to …nd c1; c2as in the previous problems, then we get
y=c1+c2x2=)y0= 2c2x
0 = y(0) = c1+ 0 =)c1= 0
1 = y0(0) = c2(0)2= 0:
We cannot …nd c2since clearly 16= 0:This situation does not violate Theorem 4.1 because
in that theorem we must have a2(x)6= 0:However, in the DE given for this problem, namely,
xy00 y0= 0 the coe¢ cient of the highest derivative y00 is a2(x) = xwhich equals 0 when x= 0;
therefore, the hypotheses of Theorem 4.1 are not met. Furthermore, note that the given initial
values are speci…ed at the “bad point”x= 0:
7. We use the given initial values to …nd c1; c2(also see Section 1.2):
x(t) = c1cos(!t) + c2sin(!t) =)x0(t) = c1!sin(!t) + c2!cos(!t)
x0=x(0) = c1cos 0 + c2sin 0 = c1=)c1=x0
x1=x0(0) = c1!sin 0 + c2!cos 0 = c2!=)c2=x1
!
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Assignment 4 with Solutions - Differential Equations | MATH 301 and more Assignments Differential Equations in PDF only on Docsity!

Di§erential Equations - Math 301

Solutions and hints for assigned homework problems CHAPTER 4

Sec.4.1- Basic theory.

  1. We use the given initial values to Önd c 1 ; c 2 (also see Section 1.2):

y = c 1 ex^ + c 2 ex^ =) y^0 = c 1 ex^ c 2 ex 0 = y(0) = c 1 + c 2 =) c 2 = c 1 1 = y^0 (0) = c 1 c 2 =) c 1 (c 1 ) = 1 =) c 1 =^1 2

=) c 2 = 1 2

Therefore the particular member of the 2-parameter family is y = ex= 2 ex= 2 :

  1. We use the given initial values to Önd c 1 ; c 2 (also see Section 1.2):

y = c 1 x + c 2 x ln x =) y^0 = c 1 + c 2 ln x + c 2 x 1 x

= c 1 + c 2 + c 2 ln x 3 = y(1) = c 1 + 0 =) c 1 = 3 1 = y^0 (1) = c 1 + c 2 + 0 =) c 2 = 1 c 1 = 1 3 = 4

Therefore the particular member of the 2-parameter family is y = 3x 4 x ln x:

  1. If we try to Önd c 1 ; c 2 as in the previous problems, then we get

y = c 1 + c 2 x^2 =) y^0 = 2c 2 x 0 = y(0) = c 1 + 0 =) c 1 = 0 1 = y^0 (0) = c 2 (0)^2 = 0:

We cannot Önd c 2 since clearly 1 6 = 0: This situation does not violate Theorem 4.1 because in that theorem we must have a 2 (x) 6 = 0: However, in the DE given for this problem, namely, xy^00 y^0 = 0 the coe¢ cient of the highest derivative y^00 is a 2 (x) = x which equals 0 when x = 0; therefore, the hypotheses of Theorem 4.1 are not met. Furthermore, note that the given initial values are speciÖed at the ìbad pointî x = 0:

  1. We use the given initial values to Önd c 1 ; c 2 (also see Section 1.2):

x(t) = c 1 cos(!t) + c 2 sin(!t) =) x^0 (t) = c 1! sin(!t) + c 2! cos(!t) x 0 = x(0) = c 1 cos 0 + c 2 sin 0 = c 1 =) c 1 = x 0 x 1 = x^0 (0) = c 1! sin 0 + c 2! cos 0 = c 2! =) c 2 = x!^1

  1. Method 1: Using the deÖnition. Set c 1 f 1 (x)+ c 2 f 2 (x) + c 3 f 3 (x) = 0, simplify the left hand side and match coe¢ cients with the right hand side:

c 1 x + c 2 x^2 + c 3 (4x 3 x^2 ) = 0 (c 1 + 4c 3 )x + (c 2 3 c 3 )x^2 = 0 = 0x + 0x^2 c 1 + 4c 3 = 0 and c 2 3 c 3 = 0 =) c 1 = 4 c 3 and c 2 = 3c 3 These equalities imply that there are special nonzero values of the constants exist that reduce the left hand side to zero; e.g. if c 3 = 1 then c 1 = 4 and c 2 = 3 are not all zero. Therefore the functions are linearly dependent. Method 2: Using the Wronskian.

W (f 1 ; f 2 ; f 3 ) =

x x^2 4 x 3 x^2 1 2 x 4 6 x 0 2 6

= x[ 12 x 2(4 6 x)] x^2 [ 6 0] + (4x 3 x^2 )[2 0] = 0

Therefore, the functions are linearly dependent.

  1. Method 1: Using the deÖnition. Set c 1 f 1 (x)+ c 2 f 2 (x) + c 3 f 3 (x) = 0, simplify the left hand side and match coe¢ cients with the right hand side:

c 1 (5) + c 2 cos^2 x + c 3 sin^2 x = 0 5 c 1 + c 2 cos^2 x + c 3 (1 cos^2 x) = 0 c 1 + c 3 + (c 2 c 3 ) cos^2 x = 0 = 0 + 0 cos^2 x Matching coe¢ cients gives 5 c 1 + c 3 = 0 and c 2 c 3 = 0: Arguing as in Problem 15 we see that the functions are linearly dependent. Method 2: Using the Wronskian.

W (f 1 ; f 2 ; f 3 ) =

5 (cos x)^2 (sin x)^2 0 2 cos x sin x 2 sin x cos x 0 2 sin^2 x 2 cos^2 x 2 cos^2 x 2 sin^2 x To reduce writing, let A = 2 sin x cos x and B = 2 sin^2 x 2 cos^2 x: Then: W (f 1 ; f 2 ; f 3 ) = 5[A(B) AB] cos^2 x[0 0] + sin^2 x[0 0] = 0: Thus the functions are linearly dependent.

  1. Method 1: Using the deÖnition. Set c 1 f 1 (x)+ c 2 f 2 (x) + c 3 f 3 (x) = 0, simplify the left hand side and match coe¢ cients with the right hand side:

c 1 x + c 2 (x 1) + c 3 (x + 3) = 0 (c 1 + c 2 + c 3 )x c 2 + 3c 3 = 0 = 0x + 0 c 1 + c 2 + c 3 = 0 and c 2 + 3c 3 = 0

Since W 6 = 0 for all real numbers x it follows that the two solutions are linearly independent on (1; 1 ): Finally, we use superposition to write the general solution as

y = c 1 y 1 + c 2 y 2 = c 1 e^3 x^ + c 2 e^4 x:

  1. It is necessary to do 3 things in this problem: (1) verify that the given functions are in fact solutions, (2) show that the given functions are linearly independent and (3) write up the general solution using superposition. To verify that y 1 = x^3 is a solution:

y 1 = x^3 =) y^01 = 3x^2 =) y 100 = 6x; so inserting into the given DE gives x^2 y 100 6 xy 10 + 12y 1 = x^2 (6x) 6 x(3x^2 ) + 12x^3 = 0; so y 1 is veriÖed as a solution.

Similarly for y 2 = x^4 :

y 2 = x^4 =) y^02 = 4x^3 =) y 200 = 12x^2 ; so inserting into the given DE gives x^2 y 200 6 xy^02 + 12y 2 = x^2 (12x^2 ) 6 x(4x^3 ) + 12x^4 = 0; so y 2 is veriÖed as a solution.

Next, to show that the solutions are linearly independent, we compute the Wronskian:

W (y 1 ; y 2 ) = x

(^3) x 4 3 x^2 4 x^3 = 4x

(^6) 3 x (^6) = x 6

Since W 6 = 0 for all positive real numbers x it follows that the two solutions are linearly independent on (0; 1 ): Finally, we use superposition to write the general solution as

y = c 1 y 1 + c 2 y 2 = c 1 x^3 + c 2 x^4 :

  1. From the proposed family of solutions

y = c | 1 e^2 x^ +{z c 2 e^5 x} yc

  • 6 |{z}ex yp

we see that y 1 = e^2 x^ and y 2 = e^5 x^ are claimed to be linearly independent solutions of the homo- geneous part of the DE and also yp = 6ex^ (containing no arbitrary constants) is claimed to be the particular solution of the nonhomogeneous DE. It is necessary to verify these claims.

To verify that y 1 = e^2 x^ is a solution of the homogeneous part: y 1 = e^2 x^ =) y^01 = 2e^2 x^ =) y^001 = 4e^2 x; so inserting into the left side of the given DE gives y^001 7 y^01 + 10y 1 = 4e^2 x^ 7(2e^2 x) + 10e^2 x^ = 0; so y 1 is veriÖed as a solution. Similarly for y 2 = e^5 x:

y 2 = e^5 x^ =) y^02 = 5e^5 x^ =) y^002 = 25e^5 x; so inserting into the left side of the given DE gives y 200 7 y^02 + 10y 2 = 25e^5 x^ 7(5e^5 x) + 10e^5 x^ = 0; so y 2 is veriÖed as a solution. Next, to show that the solutions are linearly independent, we compute the Wronskian:

W (y 1 ; y 2 ) = e

2 x (^) e 5 x 2 e^2 x^5 e^5 x^ = 5e

7 x (^) 2 e 7 x (^) = 3e 7 x

Since W 6 = 0 for all real numbers x it follows that the two solutions are linearly independent on (1; 1 ): Finally, we show that yp = 6ex^ is a solution of the nonhomogeneous DE: yp = 6ex^ =) y p^0 = 6ex^ =) y p^00 = 6ex; so inserting into the nonhomogeneous DE: y p^00 7 y^0 p + 10yp = 24? ex 6 ex^ 7(6ex) + 10(6ex) = 24? ex 24 ex^ = 24X ex:

Sec.4.3- Homogeneous linear DE

  1. The auxiliary equation is 4 m^2 + m = 0: The roots are found by factoring: m(4m + 1) = 0 so m = 0 and m = 1 = 4 : These are distinct real roots (Case I ) so the general solution is y = c 1 e^0 x^ + c 2 ex=^4 or y = c 1 + c 2 ex=^4 :
  2. The auxiliary equation is m^2 m 6 = 0: This factors easily as: (m 3)(m + 2) = 0 giving distinct real roots m = 3; 2 : By Case I the general solution is y = c 1 e^3 x^ + c 2 e^2 x:
  3. The auxiliary equation is m^2 + 8m + 16 = 0: This factors easily as: (m + 4)(m + 4) = 0 giving a repeated real root m = 4 ; 4 : By Case II the general solution is y = c 1 e^4 x^ + c 2 xe^4 x:
  4. The auxiliary equation is 12 m^2 5 m 2 = 0: This factors as: (3m 2)(4m + 1) = 0 giving distinct real roots m = 2= 3 ; 1 = 4 : By Case I the general solution is y = c 1 e^2 x=^3 + c 2 ex=^4 :
  5. The auxiliary equation is m^2 +9 = 0: This is solved directly by taking square roots: m^2 = 9 so m = 

p 9 =  3 i: These are complex conjugate roots. Using the formula from Case III with = 0 and = 3 we get the general solution as y = c 1 e^0 x^ cos(3x) + c 2 e^0 x^ sin(3x) = c 1 cos(3x) + c 2 sin(3x):

From Case III with = 1 = 2 and =

p 3 = 2 we get two more linearly independent real solutions y 3 = ex=^2 cos(

p 3 x=2) and y 4 = ex=^2 sin(

p 3 x=2): Now by the theory in Section 4.1 the general solution is the superposition

y = c 1 y 1 + c 2 y 2 + c 3 y 3 + c 4 y 4 = c 1 + c 2 x + c 3 ex=^2 cos(

p 3 x=2) + c 4 ex=^2 sin(

p 3 x=2):

  1. Like Problem 9 above, the general solution is: y = c 1 cos(4x) + c 2 sin(4x): Next we Önd c 1 ; c 2 using the given initial values and the derivative y^0 = 4 c 1 sin(4x) + 4c 2 cos(4x):

2 = y(0) = c 1 cos 0 + c 2 sin 0 = c 1 2 = y^0 (0) = 4 c 1 sin 0 + 4c 2 cos 0 = 4c 2 =) c 2 = 1 2 Therefore, the solution of the IVP is y = 2 cos(4x) 12 sin(4x):

  1. The auxiliary equation m^2 4 m 5 = 0 factors as (m 5)(m + 1) = 0 and has distinct real roots m = 1 ; 5 : The general solution is y = c 1 et^ + c 2 e^5 t: Next we Önd c 1 ; c 2 using the given initial values and the derivative y^0 = c 1 et^ + 5c 2 e^5 t:

0 = y(1) = c 1 e^1 + c 2 e^5 =) c 2 = e^5 c 1 e^1 = e^6 c 1 2 = y^0 (1) = c 1 e^1 + 5c 2 e^5 = e^1 c 1 + 5e^5 (e^6 c 1 ) = 6 e^1 c 1

=) c 1 =

e 3 =)^ c^2 =^ e

(^6) ( e 3 ) =^

e^5 3 Therefore, the solution of the IVP is

y = e 3

et^ + e

5 3

e^5 t^ = 1 3

et+1^ +^1 3

e^5 t^5 = 1 3

e(t1)^ +^1 3

e5(t1):

  1. The auxiliary equation m^3 + 12m^2 + 36m = 0 can be factored as m(m + 6)^2 = 0 which gives the real roots m = 0; 6 ; 6 : These give three linearly independent solutions y 1 = e^0 x^ = 1, y 2 = e^6 x^ and y 3 = xe^6 x^ so by the theory in Section 4.1 the general solution is just the superposition

y = c 1 y 1 + c 2 y 2 + c 3 y 3 = c 1 + c 2 e^6 x^ + c 3 xe^6 x:

Next we Önd c 1 ; c 2 ; c 3 using the derivatives

y^0 = 6 c 2 e^6 x^ + c 3 e^6 x^ 6 c 3 xe^6 x^ = e^6 x( 6 c 2 + c 3 6 c 3 x) y^00 = 6 e^6 x( 6 c 2 + c 3 6 c 3 x) + e^6 x( 6 c 3 ) = e^6 x(36c 2 12 c 3 + 36c 3 x)

and the given initial values

0 = y(0) = c 1 + c 2 =) c 1 = c 2 1 = y^0 (0) = 6 c 2 + c 3 =) c 3 = 6c 2 + 1 7 = y^00 (0) = 36c 2 12 c 3 =) 36 c 2 12(6c 2 + 1) = 7

=) c 2 =

36 =)^ c^1 =^

36 =^

36 ; c^3 = 6

Therefore, the solution of the IVP is

y = 5 36

e^6 x^ + x 6

e^6 x:

Sec.4.4- Method of undetermined coe¢ cients.

  1. First we Önd yc by solving the homogeneous part y^00 + 3y^0 + 2y = 0 as in Sec.4.3: m^2 + 3m + 2 = 0 =) (m + 1)(m + 2) = 0 =) m = 1 ; 2

Therefore, yc = c 1 ex^ + c 2 e^2 x: Next we Önd the particular solution yp: Since g(x) = 6 is a constant, from the UC-table we obtain yp = A. This does not overlap yc so we Önd A: Inserting y p^0 = y^00 p = 0 into the non-homogeneous DE that is given we Önd that

0 + 3(0) + 2A = 6 =) A = 3 =) yp = 3:

Thus the general solution is y = yc + yp = c 1 ex^ + c 2 e^2 x^ + 3:

  1. First we Önd yc by solving the homogeneous part y^00 10 y^0 + 25y = 0 as in Sec.4.3: m^2 10 m + 25 = 0 =) (m 5)^2 = 0 =) m = 5; 5

Therefore, yc = c 1 e^5 x^ + c 2 xe^5 x: Next we Önd the particular solution yp: Since g(x) = 30x + 3 is a polynomial of degree 1, from the UC-table we obtain yp = Ax + B: This does not overlap yc so we Önd A and B: Inserting y^0 p = A and y p^00 = 0 into the non-homogeneous DE that is given we Önd that

0 10 A + 25(Ax + B) = 30x + 3 25 Ax 10 A + 25B = 30x + 3 Matching coe¢ cients: 25 A = 30; 10 A + 25B = 3 A =^6 5

= 1: 2 ; B =^3

Thus yp = 1: 2 x + 0: 6 and the general solution is

y = yc + yp = c 1 e^5 x^ + c 2 xe^5 x^ + 1: 2 x + 0: 6

Therefore, yp = ( 4 x^2 + 4x 4 =3)e^3 x^ and the general solution is

y = yc + yp = c 1 cos(

p 3 x) + c 2 sin(

p 3 x) (4x^2 4 x + 4=3)e^3 x:

  1. First we Önd yc by solving the homogeneous part y^00 y^0 = 3 as in Sec.4.3:

m^2 m = 0 =) m(m 1) = 0 =) m = 0; 1

Therefore, yc = c 1 + c 2 ex: Next we Önd the particular solution yp: Here g(x) = 3 is a constant so the UC-table gives yp = A: However, this overlaps yc in the constant term c 1 : To remove the overlap, we multiply by x to get the new yp = Ax: Since this no longer overlaps yc we Önd A: Inserting y p^0 = A and y^00 p = 0 into the non-homogeneous DE that is given we Önd that

0 A = 3 =) A = 3 =) yp = 3x:

Hence the general solution is y = yc + yp = c 1 + c 2 ex^ + 3x:

  1. First we Önd yc by solving the homogeneous part y^00 + 4y = 0 as in Sec.4.3:

m^2 + 4 = 0 =) m^2 = 4 =) m = 

p 4 = 0  2 i

Therefore, yc = c 1 cos(2x) + c 2 sin(2x): Here g(x) = 3 sin(2x) is trigonometric so the UC-table gives yp = A cos(2x) + B sin(2x): However, this overlaps yc. To remove the overlap, we multiply by x to get the new yp = Ax cos(2x) + Bx sin(2x): Since this no longer overlaps yc we Önd A and B:

y^0 p = A cos(2x) 2 Ax sin(2x) + B sin(2x) + 2Bx cos(2x) y p^00 = 4 A sin(2x) 4 Ax cos(2x) + 4B cos(2x) 4 Bx sin(2x)

Now insert the derivatives into the given non-homogeneous DE to get

4 A sin(2x) 4 Ax cos(2x) + 4B cos(2x) 4 Bx sin(2x) + 4[Ax cos(2x) + Bx sin(2x)] = 3 sin(2x) 4 A sin(2x) + 4B cos(2x) = 3 sin(2x) + 0 cos(2x) 4 A = 3; 4 B = 0 =) A = 3 =4 = 0 : 75 ; B = 0:

Therefore, yp = 0 : 75 x cos(2x) and the general solution is

y = yc + yp = c 1 cos(2x) + c 2 sin(2x) 0 : 75 x cos(2x):

  1. First we Önd yc by solving the homogeneous part y^000 6 y^00 = 0 as in Sec.4.3:

m^3 6 m^2 = 0 =) m^2 (m 6) = 0 =) m = 0; 0 ; 6 :

Hence yc = c 1 + c 2 x + c 3 e^6 x: Here g(x) = 3 cos x so the UC-table and addition give yp = A cos x + B sin x + C: However, this overlaps yc in the constant term c 1 : To remove the overlap, we multiply that term by x^2 to get the new yp = A cos x + B sin x + Cx^2 : Since this no longer overlaps yc we Önd A; B and C:

y^0 p = A sin x + B cos x + 2Cx; y^00 p = A cos x B sin x + 2C; y p^000 = A sin x B cos x: Inserting the above derivatives into the given non-homogeneous DE gives: A sin x B cos x 6[A cos x B sin x + 2C] = cos x + 3 (6A B) cos x + (A + 6B) sin x 12 C = cos x + 0 sin x + 3 Matching coe¢ cients: 6 A B = 1 ; A + 6B = 0; 12 C = 3 A = 6 37

; B = 1

; C = 1

Therefore, the general solution is

y = yc + yp = c 1 + c 2 x + c 3 e^6 x^

37 cos^ x^ +

37 sin^ x^ ^

4 x

  1. First we Önd the general solution and then use the given initial values to compute the solution of the IVP. To Önd the general solution, Örst compute yc by solving the homogeneous part y^00 + 4y = 0 as in Sec.4.3:

m^2 + 4 = 0 =) m^2 = 4 =) m =  4 i: Therefore, yc = c 1 cos(2x) + c 2 sin(2x): Here g(x) = 2 so yp = A from the UC-table and this does not overlap yc: With y^0 p = y^00 p = 0 we calculate 0 + 4A = 2 so A = 1 = 2 : The general solution is therefore y = yc + yp = c 1 cos(2x) + c 2 sin(2x) 1 2

From the general solution, we get y^0 = 2 c 1 sin(2x) + 2c 2 cos(2x). Now using the given initial values we calculate c 1 and c 2 as

1 2

= y

= c 1 cos

  • c 2 sin

p 2 2

c 1 +

p 2 2

c 2 1 2

2 = y^0

= 2 c 1 sin

  • 2c 2 cos

p 2 c 1 +

p 2 c 2

Multiplying the Örst of the above equations by 2 and rearranging terms gives

p 2 c 1 +

p 2 c 2 = 2 which if added to the second equation gives 2

p 2 c 2 = 4. Thus c 2 = 2=

p 2 =

p 2 : From this we can use either equation to calculate c 1 = 0. Hence the solution of the IVP is

y =

p 2 sin(2x) 1 2

  1. Since the given DE is in standard form, we Örst Önd yc by solving the homogeneous part y^00 + y = 0: The auxiliary equation m^2 + 1 = 0 has complex conjugate roots i so yc = c 1 cos x + c 2 sin x: Next, we construct yp = u 1 cos x + u 2 sin x where

u 1 =

Z

(sin x)(sin x) cos^2 x + sin^2 x

dx =

Z

sin^2 xdx = 1 2

Z

[1 cos(2x)]dx = x 2

+^1

sin(2x)

u 2 =

Z

(cos x)(sin x) cos^2 x + sin^2 x

dx =

Z

sin|{z} x u

cos| {z xdx } du

=^12 u^2 =^12 sin^2 x

Therefore the particular solution is

yp =

x 2 +^14 sin(2x)

cos x +

2 sin

(^2) x

sin x:

This simplifes greatly if we use the trigonometric identity sin(2x) = 2 sin x cos x: Then

yp = 1 2

x cos x +^1 2

sin x cos^2 x +^1 2

sin x sin^2 x = 1 2

x cos x +^1 2

sin x

Now the general solution is

y = yc + yp = c 1 cos x + c 2 sin x

2 x^ cos^ x^ +

2 sin^ x^ (combine the underlined)

y = c 1 cos x + c 2 sin x 1 2

x cos x with c 2 = c 2 +^1 2

  1. Since the given DE is in standard form, we Örst Önd yc by solving the homogeneous part y^00 + y = 0: The auxiliary equation m^2 + 1 = 0 has complex conjugate roots i so yc = c 1 cos x + c 2 sin x: Next, we construct yp = u 1 cos x + u 2 sin x where

u 1 =

Z (^) (sin x)(cos (^2) x) cos^2 x + sin^2 x

dx =

Z

cos| {z }^2 x u=cos x

sin| {z xdx } du

=^1

u^3 =^1 3

cos^3 x

u 2 =

Z (^) (cos x)(cos (^2) x)

cos^2 x + sin^2 x

dx =

Z

(1 sin| {z }^2 x u=sin x

)cos| {z xdx } du

= u 1 3

u^3 = sin x 1 3

sin^3 x

Thus the particular solution is obtained and simpliÖed as follows:

yp =^1 3

cos^4 x + sin^2 x 1 3

sin^4 x = sin^2 x +^1 3

(cos^4 x sin^4 x)

= sin^2 x +^13 (cos^2 x sin^2 x)(cos| 2 x (^) {z+ sin 2 x} 1

3 sin

(^2) x +^1 3 cos

(^2) x =^1 3 (2 sin

(^2) x + cos (^2) x | {z } sin^2 x+sin^2 x+cos^2 x

3 sin

(^2) x

The general solution is

y = yc + yp = c 1 cos x + c 2 sin x +^1 3

+^1

sin^2 x:

NOTE. An alternative (but equivalent) form of yp that uses double-angle identities is obtained as follows:

yp = sin^2 x +^1 3

(cos| 2 x (^) {z sin^2 x} cos(2x)

)(cos| 2 x (^) {z+ sin 2 x} 1

2 [1^ ^ cos(2x)] +

3 cos(2x)^ [using double-angle identities]

2 ^

6 cos(2x) The general solution in this form is

y = yc + yp = c 1 cos x + c 2 sin x +^12 16 cos(2x):

  1. Since the given DE is in standard form, we Örst Önd yc by solving the homogeneous part y^00 y = 0: The auxiliary equation m^2 1 = 0 has distinct real roots  1 so yc = c 1 ex^ + c 2 ex: Next, we construct yp = u 1 ex^ + u 2 ex^ where

u 1 =

Z

ex^ cosh x W

dx; W = e

x (^) ex ex^ ex^ =^ ^2 ;^ cosh^ x^ =

(ex^ + ex)

=

Z

ex(ex^ + ex)dx =

Z

(1 + e^2 x)dx =

4 x^ ^

8 e

2 x

and u 2 =

Z (^) ex (^) cosh x W dx^ =^ ^

Z

ex(ex^ + ex)dx =

8 e

2 x (^) 1 4 x: Therefore,

yp =

4 x^ ^

8 e

2 x

ex^ +

8 e

2 x (^) 1 4 x

ex^ =

4 x(e

x (^) ex) 1 8 e

x (^) 1 8 e

x

and the general solution is

y = yc + yp = c 1 ex^ + c 2 ex^ +

4 x(e

x (^) ex | {z } 2 sinh x

8 e

x (^) 1 8 e

x

= c 1 ex^ + c 2 ex^ +

2 x^ sinh^ x;^ c^1 =^ c^1 ^

8 ;^ c^2 =^ c^2 ^

and the general solution is

y = yc + yp = c 1 e^4 x^ + c 2 e^2 x^ 1 4

e^2 x^ +^1 9

ex:

Finally we use the given initial values to solve the IVP. From the general solution we get

y^0 = 4 c 1 e^4 x^ + 2c 2 e^2 x^ +

2 e

2 x (^) 1 9 e

x

so that

1 = y(0) = c 1 + c 2 1 4

+^1

= c 1 + c 2 5 36 0 = y^0 (0) = 4 c 1 + 2c 2 +^1 2

= 4 c 1 + 2c 2 +^7 18

From the second equation above we get c 2 = 2c 1 7 = 36 which we insert into the Örst equation to get

c 1 + 2c 1

36 ^

36 = 1 =)^3 c^1 = 1 +

3 =)^ c^1 =

9 =)^ c^2 =

Therefore the unique solution of the IVP is

y =

9 e

4 x (^) +^25 36 e

2 x (^) 1 4 e

2 x (^) +^1 9 e

x: