Docsity

Differential Equations | Example Problem 3, Exercises of Differential Equations

Toggle sidebar
bg1
Example 11.
Solve the equation
(D4)y=5 (1)
Solution:
The auxiliary equation is
m4=0
and its roots is m=4.
yc=c1e4x
yp=A
then direct substitution of ypto (1) yields
(D4)yp=5
Dyp4yp=5
Since yp=A,then
Dyp4yp=5
DA 4A=5
Solving the equation we have A=5
4Therefore
yp=5
4
Hence the general solution of (1) is given by,
y=c1e4x5
4
The Method of Undetermined Coefficients
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12

Partial preview of the text

Download Differential Equations | Example Problem 3 and more Exercises Differential Equations in PDF only on Docsity!

Solve the equation (D 4)y = 5 (1)

Solution: The auxiliary equation is

m 4 = 0

and its roots is m = 4.

y (^) c = c 1 e 4 x y (^) p = A

then direct substitution of y (^) p to (1) yields

(D 4)y (^) p = 5 Dy (^) p 4 y (^) p = 5

Since y (^) p = A, then

Dy (^) p 4 y (^) p = 5 DA 4 A = 5

Solving the equation we have A = ^54 Therefore

y (^) p = ^54

Hence the general solution of (1) is given by,

y = c 1 e 4 x^ (^54)

Solve the equation (^) D 2 + D

y = sin x (1)

Solution: The auxiliary equation is

m 2 + m = 0 m(m + 1) = 0

and its roots are m = 0, 1. Therefore we may write

y (^) c = c 1 + c 2 e x y (^) p = A sin x + B cos x

Using (1) where y = y (^) p D 2 y (^) p + Dy (^) p = sin x (2)

Since

y (^) p = A sin x + B cos x Dy (^) p = A cos x B sin x D 2 y (^) p = A sin x B cos x

then direct substitution of y (^) p to (2) yields

A sin x B cos x + A cos x B sin x = sin x (A + B) cos x + (A B) sin x = sin x

Using equating coecients we have A = ^1 2

and B = ^1 2

.Therefore

y (^) p =^1 2

sin x +^1 2

cos x

Hence the general solution of (1) is given by,

y = c 1 + c 2 e x^ +^12 sin x +^12 cos x

Solve the equation (D 2 3 D + 2)y = 2x 2 + 1 (1)

Solution: The auxiliary equation is

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

and its roots are m = 1, 2.

y (^) c = c 1 e x^ + c 2 e 2 x y (^) p = A + Bx + Cx 2

Using (1) where y = y (^) p D 2 y (^) p 3 Dy (^) p + 2y (^) p = 2x 2 + 1 (2)

Since

y (^) p = A + Bx + Cx 2 Dy (^) p = B + 2Cx D 2 y (^) p = 2C

then direct substitution of y (^) p to (2) yields

2 C 3(B + 2Cx) + 2(A + Bx + Cx 2 ) = 2x +^1

Solving the equation we have A = 4, B = 3, C = 1. Therefore

y (^) p = 4 + 3x + x 2

Hence the general solution of (1) is given by,

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

Solve the equation (D 2 + 3D + 2)y = 2 sin 3x (1)

Solution: The auxiliary equation is

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

and its roots are m = 2 , 1.

y (^) c = c 1 e ^2 x^ + c 2 e x y (^) p = A sin 3x + B cos 3x

Using (1) where y = y (^) p D 2 y (^) p + 3Dy (^) p + 2y (^) p = 2 sin 3x (2)

Since

y (^) p = A sin 3x + B cos 3x Dy (^) p = 3A cos 3x 3 B sin 3x D 2 y (^) p = 9 A sin 3x 9 B cos 3x

then direct substitution of y (^) p to (2) yields

9 A sin 3x 9 B cos 3x + 3(3A cos 3x 3 B sin 3x) + 2(A sin 3x + B cos 3x) = 2 sin 3x ( 7 A 9 B) sin 3x + (9A 7 B) cos 3x = 2 sin 3x

Using equating coecients we have A = 7 65

and B = 9 65

. Therefore

y (^) p = 7 65

sin 3x 9 65

cos 3x

Hence the general solution of (1) is given by,

y = c 1 e ^2 x^ + c 2 e x^ 65 7 sin 3x 65 9 cos 3x

Solve the equation (D 2 + 4)y = 5e x^ 4 x (1)

Solution: The auxiliary equation is

m 2 + 4 = 0

and its roots are m = ±j2.

y (^) c = c 1 cos 2x + c 2 sin 2x y (^) p = A + Bx + Ce x

Using (1) where y = y (^) p D 2 y (^) p 3 Dy (^) p + 2y (^) p = 5e x^ 4 x (2)

Since

y (^) p = A + Bx + Ce x Dy (^) p = B + Ce x D 2 y (^) p = Ce x

then direct substitution of y (^) p to (2) yields

Ce x^ + 4(A + Bx + Ce x^ ) = 5e x^ 4 x

Solving the equation we have A = 0, B = 1 , C = 1. Therefore

y (^) p = x + e x

Hence the general solution of (1) is given by,

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

Solve the equation (D 2 + 4)y = 5e x^ 4 x 2 (1)

Solution: The auxiliary equation is

m 2 + 4 = 0

and its roots are m = ±j2.

y (^) c = c 1 cos 2x + c 2 sin 2x y (^) p = A + Bx + Cx 2 + Ee x

Using (1) where y = y (^) p D 2 y (^) p 3 Dy (^) p + 2y (^) p = 5e x^ 4 x 2 (2)

Since

y (^) p = A + Bx + Cx 2 + Ee x Dy (^) p = B + 2Cx + Ee x D 2 y (^) p = 2C + Ee x

then direct substitution of y (^) p to (2) yields

2 C + De x^ 4(A + Bx + Cx 2 + De x^ ) = 5e x^ 4 x 2

Solving the equation we have A =

2 , B^ = 0, C^ =^ ^1 , E^ = 1 Therefore

y (^) p =

2 ^ x^

(^2) + e x

Hence the general solution of (1) is given by,

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

x 2 + e x

Solve the equation y 00 3 y 0 4 y = 6e x^ (1)

Solution: Rewrite (1) as (D 2 3 D 4)y = 6e x^ (2)

The auxiliary equation is

m 2 3 m 4 = 0 (m 4)(m + 1) = 0

and its roots are m = 1 , 4.

y (^) c = c 1 e x^ + c 2 xe 4 x y (^) p = Ae x

Using (2) where y = y (^) p (D 2 3 D 4)y (^) p = 6e x^ (3)

Since

y (^) p = Ae x Dy (^) p = Ae x D 2 y (^) p = Ae x

then direct substitution of y (^) p to (3) yields

Ae x^ 3 Ae x^ 4 Ae x^ = 6e x

Solving the equation we have A = 1. Therefore

y (^) p = e x

Hence the general solution of (1) is given by,

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

Variation of Parameters

(D 2 + 1)y = csc x (1) Solution:

y (^) c = c 1 cos x + c 2 sin x y (^) p = A cos x + B sin x y 0 = A sin x + A 0 cos x B cos x + B 0 sin x

Let A^0 cos x + B 0 sin x = 0 (2)

Dy (^) p = A sin x + B cos x D 00 y (^) p = A cos x A^0 sin x B sin x + B 0 cos x

Substitute directly to (1) when y = y (^) p

A cos x A^0 sin x B sin x + B 0 cos x + A sin x + B cos x = csc x A^0 sin x + B 0 cos x = csc x

A^0 sin x + B 0 cos x = csc x (3)

Multiply (2) by sin x then (2) becomes

A^0 cos x sin x + B 0 sin 2 x = 0 (4)

Multiply (3) by cos x then (3) becomes

A^0 sin x cos x + B 0 cos 2 x = csc x cos x (5)

Solving (4) and (5) simultaneously to get

B 0 = cot x

Solving for B we have

B 0 = cot x B = ln | sin x|

Using (2) substitute B 0 to solve A 0 , yields

A 0 cos x + cot x sin x = 0 A^0 cos x + cos x = 0 A 0 cos x = cos x A 0 = 1 A = x

Since A = x and B = ln | sin x|, then

y (^) p = x cos x + sin x ln | sin x|

Therefore the general solution of (1) is

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

Example 3.

(D 2 + 1)y = csc x cot x (1) Solution:

y (^) c = c 1 cos x + c 2 sin x y (^) p = A cos x + B sin x y (^0) p = A sin x + A 0 cos x B cos x + B 0 sin x

Let A^0 cos x + B 0 sin x = 0 (2)

Dy (^) p = A sin x + B cos x D 00 y (^) p = A cos x A 0 sin x B sin x + B 0 cos x

Substitute directly to (1) when y = y (^) p

A cos x A^0 sin x B sin x + B 0 cos x + A sin x + B cos x = csc x cot x A 0 sin x + B 0 cos x = csc x cot x

A 0 sin x + B 0 cos x = csc x cot x (3)

(D 2 1)y = x 1 (1)

Solution:

y (^) c = c 1 e x^ + c 2 e x y (^) p = Ae x^ + Be x y 0 = Ae x^ + A 0 e x^ Be x^ + B 0 e x

Let A^0 e x^ + B 0 e x^ = 0 (2)

Dy (^) p = Ae x^ Be x D 00 y (^) p = Ae x^ + A 0 e x^ + Be x^ B 0 e x

Substitute directly to (1) when y = y (^) p

Ae x^ + A 0 e x^ + Be x^ B 0 e x^ (Ae x^ + Be x^ ) = x 1 A^0 e x^ B 0 e x^ = x 1

A^0 e x^ B 0 e x^ = x 1 (3)

Solving (2) and (3) simultaneously to get

A 0 = x 2 e x^1

Solving for A we have

A^0 = x^ ^1 2 e x A^0 =^12

Z

e x^ (x 1)dx

A^0 =^1 2

Z

(xe x^ e x^ )dx

A = ^1 2

(xe x^ )

Using (2) substitute A^0 to solve B 0 , yields

x 1 2 e x^ e^

x (^) + B 0 e x (^) = 0

B 0 e x^ = x^ 2 1

B 0 = x 2 e ^ x^1

B 0 =

Z (^) x 1 2 e x B = ^1 2

xe x^ + e x

Since A = ^1 2

(xe x^ ) and B = ^1 2

xe x^ + e x^ , then

y (^) p =^12 (xe x^ )e x^ +

12 xe x^ + e x

e x y (^) p = x + 1

Therefore the general solution of (1) is

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

Example 5.

(D 2 + 1)y = sec^3 x (1)

Solution:

y (^) c = c 1 cos x + c 2 sin x y (^) p = A cos x + B sin x y 0 = A sin x + A 0 cos x + B cos x + B 0 sin x

Let A^0 cos x + B 0 sin x = 0 (2)

Dy (^) p = A sin x + B cos x D 00 y (^) p = A cos x A 0 sin x B sin x + B 0 cos x