Variation of Parameters Method For Higher-Order Equations: Dy D y Dy A A A Ay DX DX DX

Download as pdf or txt
Download as pdf or txt
You are on page 1of 18

Lecture 14 Variation of Parameters

Variation of Parameters Method for Higher-Order Equations

The method of the variation of parameters just examined for second-order differential
equations can be generalized for an nth-order equation of the type.

dny d n 1 y dy
an  a n 1    a1  a0 y  g ( x)
dx n dx n 1 dx
The application of the method to nth order differential equations consists of performing
the following steps.
Step 1 To find the complementary function we solve the associated homogeneous
equation

dny d n1 y dy
an n  an1 n1   a1  a0 y  0
dx dx dx
Step 2 Suppose that the complementary function for the equation is
y  c1 y1  c2 y 2    cn y n
Then y1 , y 2 ,, y n are n linearly independent solutions of the homogeneous equation.
Therefore, we compute Wronskian of these solutions.
y1 y2 yn
y1 y2 yn
W  y1 , y2 , y3 , , yn  

y1( n1) y2 ( n1) yn ( n1)


Step 4 We write the differential equation in the form

y    Pn1  x  y   P1  x  y  P  x  y  f  x 
n 1 

n

and compute the determinants Wk ; k  1, 2, , n ; by replacing the kth column of W by


0

0
the column 

f ( x)
Step 5 Next we find the derivatives u1 , u 2 , , u n of the unknown functions u1, u2 ,, un
through the relations

1
Lecture 14 Variation of Parameters

Wk
u k 
, k  1, 2, , n
W
Note that these derivatives can be found by solving the n equations

y1u1  y 2u 2    y n u n  0
y1 u1  y 2 u 2    y n u n  0
  
y1n 1u1  y 2 n 1u 2    y n n 1u n  f  x 

Step 6 Integrate the derivative functions computed in the step 5 to find the functions u k

uk  
Wk
 dx, k  1, 2, , n
 W
Step 7 We write a particular solution of the given non-homogeneous equation as
y p  u1  x  y1  x   u2  x  y2  x    un  x  yn  x 
Step 8 Having found the complementary function yc and the particular integral y p , we
write the general solution by substitution in the expression
y  yc  y p

Note that
 The first n  1 equations in step 5 are assumptions made to simplify the first
n  1 derivatives of y p . The last equation in the system results from substituting
the particular integral y p and its derivatives into the given nth order linear
differential equation and then simplifying.

 Depending upon how the integrals of the derivatives u k of the unknown


functions are found, the answer for y p may be different for different attempts to
find y p for the same equation.

 When asked to solve an initial value problem, we need to be sure to apply the
initial conditions to the general solution and not to the complementary function
alone, thinking that it is only yc that involves the arbitrary constants.

Example 1

2
Lecture 14 Variation of Parameters

Solve the differential equation by variation of parameters.

d3y dy
  csc x
dx3 dx
Solution
Step 1: The associated homogeneous equation is
d3y dy
3
 0
dx dx
Auxiliary equation

m3  m  0  m m 2  1  0  
m  0, m   i
Therefore the complementary function is
y  c1  c2 cos x  c3 sin x
c
Step 2: Since
y  c1  c2 cos x  c3 sin x
c
Therefore y1  1, y2  cos x, y3  sin x

So that the Wronskian of the solutions y1 , y 2 and y3

1 cos x sin x
W  y1 , y2 , y3   0  sin x cos x
0  cos x  sin x
By the elementary row operation R1  R3 , we have

1 0 0
0  sin x cos x
0  cos x  sin x

 
 sin 2 x  cos2 x  1  0
Step 3: The given differential equation is already in the required standard form
y  0 y  y  0 y  csc x

3
Lecture 14 Variation of Parameters

Step 4: Next we find the determinants W1 ,W2 and W3 by respectively, replacing 1st, 2nd
0
and 3rd column of W by the column 0
csc x
0 cos x sin x
W1  0  sin x cos x
csc x  cos x  sin x


 csc x sin 2 x  cos 2 x  csc x
1 0 sin x
W2  0 0 cos x
0 csc x  sin x

0 cos x
   cos x csc x   cot x
csc x  sin x

1 cos x 0
 sin x 0
and W3  0  sin x 0    sin x csc x   1
 cos x csc x
0  cos x csc x

Step 5: We compute the derivatives of the functions u1 , u 2 and u3 as:

W1
u1   csc x
W
W2
u 2    cot x
W
W3
u3   1
W
Step 6: Integrate these derivatives to find u1 , u 2 and u3

u1  
W1
 dx   csc xdx  ln csc x  cot x
W
W   cos x
u2   2 dx    cot xdx   dx   ln sin x
 W  sin x

4
Lecture 14 Variation of Parameters

u3  
W3
 dx    1dx   x
W

Step 7: A particular solution of the non-homogeneous equation is


y  ln csc x  cot x  cos x ln sin x  x sin x
p
Step 8: The general solution of the given differential equation is:

y  c1  c2 cos x  c3 sin x  ln csc x  cot x  cos x ln sin x  x sin x

Example 2
Solve the differential equation by variation of parameters.
y   y   tan x
Solution
Step 1: We find the complementary function by solving the associated homogeneous
equation
y   y   0
Corresponding auxiliary equation is

m3  m  0  m m 2  1  0
m  0, m   i
Therefore the complementary function is
yc  c1  c2 cos x  c3 sin x
Step 2: Since
yc  c1  c2 cos x  c3 sin x

Therefore y1  1, y2  cos x, y3  sin x


Now we compute the Wronskian of y1 , y 2 and y3

1 cos x sin x
W  y1 , y2 , y3   0  sin x cos x
0  cos x  sin x
By the elementary row operation R1  R3 , we have

1 0 0
0  sin x cos x
0  cos x  sin x

5
Lecture 14 Variation of Parameters


 sin 2 x  cos2 x  1  0 
Step 3: The given differential equation is already in the required standard form
y   0  y   y   0  y  tan x

Step 4: The determinants W1 ,W2 and W3 are found by replacing the 1st, 2nd and 3rd
column of W by the column
0
0
tan x

Therefore
0 cos x sin x
W1  0  sin x cos x
tan x  cos x  sin x


 tan x cos 2 x  sin 2 x  tan x 
1 0 sin x
W2  0 0 cos x  10  cos x tan x    sin x
0 tan x  sin x
1 cos x 0
and W3  0  sin x 0  1 sin x tan x   0   sin x tan x
0  cos x tan x

Step 5: We compute the derivatives of the functions u1 , u 2 and u3 .

W1
u1   tan x
W
W2
u2    sin x
W
W3
u 3    sin x tan x
W
Step 6: We integrate these derivatives to find u1 , u 2 and u3
W  sin x
u1  1
dx   tan x dx    dx   ln cos x
 W  cos x
W
u2   2
dx    sin x dx  cos x
 W

6
Lecture 14 Variation of Parameters

W
u3   3
dx    sin x tan xdx
 W
 sin x
   sin x dx    sin 2 x sec dx
 cos x
  
  cos 2 x  1 sec xdx   cos 2 x sec x  sec x dx 
   cos x  sec x  dx   cos xdx   sec xdx
 sin x  ln sec x  tan x
Step 7: Thus, a particular solution of the non-homogeneous equation

y   ln cos x  cos x cos x   sin x  ln sec x  tan x   sin x 


p
  ln cos x  cos 2 x  sin 2 x  sin x ln sec x  tan x
  ln cos x  1  sin x ln sec x  tan x
Step 8: Hence, the general solution of the given differential equation is:
y  c1  c2 cos x  c3 sin x  ln cos x  1  sin x ln sec x  tan x

or y  c1  1  c2 cos x  c3 sin x  ln cos x  sin x ln sec x  tan x

or y  d1  c2 cos x  c3 sin x  ln cos x  sin x ln sec x  tan x


where d1 represents c1  1 .

Example 3
Solve the differential equation by variation of parameters.
y  2 y  y  2 y  e3 x
Solution
Step 1: The associated homogeneous equation is
y  2 y  y  2 y  0
The auxiliary equation of the homogeneous differential equation is
m3  2m2  m  2  0

 (m  2) m2  1  0 
 m  1, 2, 1
The roots of the auxiliary equation are real and distinct. Therefore yc is given by
yc  c1e x  c2e 2 x  c3e  x
Step 2: From yc we find that three linearly independent solutions of the homogeneous
differential equation.

7
Lecture 14 Variation of Parameters

y1  e x , y2  e2 x , y3  e x
Thus the Wronskian of the solutions y1 , y 2 and y3 is given by
ex e2 x e x 1 1 1
W  ex 2e2 x e x  e x  e 2 x  e  x 1 2 1
ex 4e2 x e x 1 4 1

By applying the row operations R2  R1, R3  R1 , we obtain


1 1 1
2 x
W  e 0 1 2  6e 2 x  0
0 3 0
Step 3: The given differential equation is already in the required standard form

y  2 y  y  2 y  e3 x
Step 4: Next we find the determinants W1 ,W2 and W3 by, respectively, replacing the 1st,
2nd and 3rd column of W by the column
0
0
e3x
Thus

0 e2 x e x
 31 e
2x e x
W1  0 2e2 x e x   1 e3x
 2e2 x e  x
e3x 4e2 x e x


 e3x e x  2e x  3e4 x 
ex 0 e x
 3 2 e
x e x
W2  e x 0 e x   1 e3x
 ex e  x
ex e3x e x

 
  e0  e0 e3x  2e3x

8
Lecture 14 Variation of Parameters

ex e2 x 0
ex e2 x
W3  e x 2e2 x 0 e3 x
and ex 2e2 x
ex 4e2 x e3x


 e3x 2e3x  e3x  e6 x 
Step 5: Therefore, the derivatives of the unknown functions u1 , u 2 and u3 are given by.

W1  3e 4 x 1
u1   2 x
  e2x
W 6e 2
W2 2e3 x 1 x
u2    e
W 6 e2 x 3
W3 e6x 1
u3   2x  e4x
W 6e 6
Step 6: Integrate these derivatives to find u1 , u 2 and u3

u1   dx  
W1 1 2x 1 2x 1 2x
   e dx    e dx   e
W  2 2 4
W 1 x 1
u2   2 dx   e dx  e x
 W 3 3

u3   dx  
W3 1 4x 1 4x
  e dx  e
W 6 24

Step 7: A particular solution of the non-homogeneous equation is


1 1 1
y p   e3 x  e3 x  e3 x
4 3 24
Step 8: The general solution of the given differential equation is:

y  c1e x  c2e2 x  c3e  x  e3x  e3x  e3x


1 1 1
4 3 24

9
Lecture 14 Variation of Parameters

Practice Exercise
Solve the higher order differential equations by variations of parameters.
1. y   4 y   sec 2 x

2. 2 y   6 y   x 2
Solve the initial value problems.
3. 2 y   y   y  x  1

 
4. y   4 y   4 y  12 x 2  6 x e 2 x

10
Lecture 14 Variation of Parameters

Differential Equations with Variable Coefficients

So far we have been solving Linear Differential Equations with constant coefficients.

We will now discuss the Differential Equations with non-constant (variable) coefficients.

These equations normally arise in applications such as temperature or potential u in the


region bounded between two concentric spheres. Then under some circumstances we
have to solve the differential equation:

d 2u du
r 2 2 0
dr dr

where the variable r>0 represents the radial distance measured outward from the center
of the spheres.

Differential equations with variable coefficients such as


x 2 y   xy   ( x 2  v 2 ) y  0
(1  x 2 ) y   2 xy   n(n  1) y  0
and y   2 xy   2ny  0
occur in applications ranging from potential problems, temperature distributions and
vibration phenomena to quantum mechanics.

The differential equations with variable coefficients cannot be solved so easily.

Cauchy- Euler Equation:

Any linear differential equation of the form


n 1
dny n 1 d y d y
an x nn
 a n 1 x n 1
   a1 x  a 0 y  g ( x)
dx dx dx
where a n , a n1 ,, a0 are constants, is said to be a Cauchy-Euler equation or equi-
dimensional equation. The degree of each monomial coefficient matches the order of
differentiation i.e x n is the coefficient of nth derivative of y, x n1 of (n-1)th derivative of
y, etc.

For convenience we consider a homogeneous second-order differential equation


d2y
dy
ax 2  cy  0, x  0
 bx
dx 2 dx
The solution of higher-order equations follows analogously.

11
Lecture 14 Variation of Parameters

Also, we can solve the non-homogeneous equation


2
2d y dy
ax  bx  cy  g ( x), x0
2 dx
dx
by variation of parameters after finding the complementary function y c (x).

We find the general solution on the interval (0, ) and the solution on (0,) can be
obtained by substituting t   x in the differential equation.

Method of Solution:

We try a solution of the form y  x m , where m is to be determined. The first and second
derivatives are, respectively,
dy d2y
 mx m 1 and  m(m  1) x m  2
dx 2
dx
Consequently the differential equation becomes
d2y dy
ax 2 2  bx  cy  ax 2  m(m  1) x m 2  bx  mx m1  cx m
dx dx
 am(m  1) x m  bmxm  cx m
 x m (am(m  1)  bm  c)
Thus y  x m is a solution of the differential equation whenever m is a solution of the
auxiliary equation

(am(m  1)  bm  c)  0 or am2  (b  a)m  c  0

The solution of the differential equation depends on the roots of the AE.

Case-I: Distinct Real Roots

Let m1 and m2 denote the real roots of the auxiliary equation such that m1  m2 . Then
y  x m1 and y  x m2 form a fundamental set of solutions.

Hence the general solution is


y  c1 x m1  c2 x m2 .

12
Lecture 14 Variation of Parameters

Example 1
2
2d y dy
Solve x  2x  4 y  0
2 dx
dx
Solution:

Suppose that y  x m , then


dy d2y
 mx m 1 ,  m(m  1) x m  2
dx 2
dx
Now substituting in the differential equation, we get:
2
2 d y dy
x 2
 2 x  4 y  x 2  m(m  1) x m2  2 x  mx m1  4 x m
dx dx
 x m (m(m  1)  2m  4)

x m (m 2  3m  4)  0 if m 2  3m  4  0
This implies m1  1, m2  4 ; roots are real and distinct.
So the solution is y  c1 x 1  c2 x 4 .

Case II: Repeated Real Roots

If the roots of the auxiliary equation are repeated, that is, then we obtain only one
solution y  x m1 .

To construct a second solution y 2 , we first write the Cauchy-Euler equation in the form
d 2 y b dy c
2
  2 y0
dx ax dx ax
Comparing with
d2y dy
2
 P( x)  Q( x) y  0
dx dx
b
We make the identification P ( x)  . Thus
ax
b
 ax dx
e
y 2  x m1  m1 2 dx
(x )
b
 ( ) ln x
a
e
 x m1  dx
x 2 m1

13
Lecture 14 Variation of Parameters

b
 x m1 x
a
.x 2m1 dx
Since roots of the AE am2  (b  a)m  c  0 are equal, therefore discriminant is zero
(b  a ) (b  a)
i.e m1   or 2m1  
2a a
b b  a
y2  x m1  x a .x a dx
dx
y 2  x m1  x x
m1
ln x.
The general solution is then
y  c1 x m1  c2 x m1 ln x

Example 2
d2y dy
Solve 4x 2 2
 8 x  y  0.
dx dx
Solution:

Suppose that y  x m , then


dy m 1 d2y
 mx , 2
 m(m  1) x m  2 .
dx dx
Substituting in the differential equation, we get:
d2y dy
4 x 2 2  8 x  y  x m (4m(m  1)  8m  1)  x m (4m 2  4m  1)  0
dx dx
if 4m 2  4m  1  0 or (2m  1) 2  0 .
1
Since m1   , the general solution is
2
1 1
 
y  c1 x 2
 c2 x 2
ln x .

For higher order equations, if m1 is a root of multiplicity k, then it can be shown that:
x m1 , x m1 ln x, x m1 (ln x)2 , , x m1 (ln x)k 1are k linearly independent solutions.

Correspondingly, the general solution of the differential equation must then contain a
linear combination of these k solutions.

Case III Conjugate Complex Roots

If the roots of the auxiliary equation are the conjugate pair

14
Lecture 14 Variation of Parameters

m1    i , m2    i
where  and  >0 are real, then the solution is
y  c1x i   c2 x i  .
But, as in the case of equations with constant coefficients, when the roots of the auxiliary
equation are complex, we wish to write the solution in terms of real functions only. We
note the identity
xi   (eln x )i   ei  ln x ,
which, by Euler’s formula, is the same as
xi   cos(  ln x)  i sin(  ln x)
Similarly we have
xi   cos(  ln x)  i sin(  ln x)

Adding and subtracting last two results yields, respectively,


xi   x i   2cos(  ln x)
and xi   x i   2i sin(  ln x)

From the fact that y  c1x  i   c2 x i  is the solution of ax 2 y  bxy  cy  0 ,


for any values of constants c1 and c2 , we see that
y1  x ( xi   x i  ), (c1  c2  1)
y2  x ( xi   x i  ), (c1  1, c2  1)

or y1  2 x (cos(  ln x))
y2  2 x (sin(  ln x)) are also solutions.

Since W ( x cos( ln x), x sin( ln x))  x 2 1  0;   0 , on the interval (0, ), we


conclude that
y1  x cos( ln x) and y 2  x sin( ln x)
constitute a fundamental set of real solutions of the differential equation.

Hence the general solution is


y1  x [c1 cos( ln x)  c2 sin( ln x)]

Example 3
Solve the initial value problem
d2y dy
x 2 2  3x  3 y  0, y(1)  1, y (1)  5
dx dx
Solution:

15
Lecture 14 Variation of Parameters

dy d2y
Let us suppose that: y  x m , then  mx m 1 and 2
 m(m  1) x m  2 .
dx dx
d2y dy
x2 2
 3x  3 y  x m (m(m  1)  3m  3)  x m (m 2  2m  3)  0
dx dx
if m  2m  3  0 .
2

From the quadratic formula we find that m1  1  2i and m1  1  2i . If we make


the identifications   1 and   2 , so the general solution of the differential
equation is
y1  x 1[c1 cos( 2 ln x)  c2 sin( 2 ln x)] .

By applying the conditions y(1)  1, y (1)  5 , we find that


c1  1 and c2  2 2 .

Thus the solution to the initial value problem is


y1  x 1[cos( 2 ln x)  2 2 sin( 2 ln x)]

Example 4
Solve the third-order Cauchy-Euler differential equation
d3y d2y dy
x 3 3  5 x 2 2  7 x  8 y  0,
dx dx dx

Solution

The first three derivative of y  x m are


dy d2y d3y
 mx m 1 , 2
 m ( m  1) x m2
,  m(m  1)(m  2) x m 3 ,
dx dx 3
dx
so the given differential equation becomes

d3y 2
2 d y dy
x3 3
 5 x 2
 7 x  8 y  x 3 m(m  1)(m  2) x m 3  5 x 2 m(m  1) x m2  7 xmx m1  8 x m ,
dx dx dx

 x m (m(m  1)(m  2)  5m(m  1)  7m  8)


 x m (m 3  2m 2  4m  8)
In this case we see that y  x m is a solution of the differential equation, provided m is a
root of the cubic equation
m 3  2m 2  4m  8  0
or (m  2)(m 2  4)  0
The roots are: m1  2, m2  2i, m3  2i .

16
Lecture 14 Variation of Parameters

Hence the general solution is


y1  c1 x 2  c2 cos(2 ln x)  c3 sin(2 ln x)

Example 5

Solve the non-homogeneous equation


x 2 y  3xy  3 y  2 x 4e x

Solution

Put y  x m
dy d2y
 mx m 1 , 2
 m(m  1) x m 2
dx dx
Therefore we get the auxiliary equation,
m(m  1)  3m  3  0 or (m  1)(m  3)  0 or m  1,3

Thus yc  c1 x  c2 x 3
Before using variation of parameters to find the particular solution y p  u1 y1  u 2 y 2 ,
W1 W 0 y2
recall that the formulas u1  and u 2  2 , where W1  ,
W W f ( x) y 2
y1 0
W2  , and W is the Wronskian of y1 and y 2 , were derived under the
y1 f ( x)
assumption that the differential equation has been put into special form .
y   P( x) y   Q( x) y  f ( x)
3 3
Therefore we divide the given equation by x 2 , and form y   y   2 y  2 x 2 e x
x x
we make the identification f ( x)  2 x e . Now with y1  x , y 2  x 2 , and
2 x

x x3 0 x3 x x
W   2x3 , W1   2 x 5 e x , W2   2x 3e x
1 3x 2 2x 2e x 3x 2
1 2x 2e x

we find
2x 5e x 2 x 3e x
u 1  3
  x 2 x
e and u  2  3
 ex
2x 2x
u1   x 2 e x  2 xe x  2e x and u 2  e x .

17
Lecture 14 Variation of Parameters

Hence y p  u1 y1  u 2 y 2
 ( x 2 e x  2 xe x  2e x ) x  e x x 3  2 x 2 e x  2 xe x

Finally we have y  yc  y p  c1 x  c2 x 3  2 x 2 e x  2 xe x

Practice Exercise

1. 4 x 2 y  y  0
2. xy  y  0
3. x 2 y  5 xy  3 y  0
4. 4 x 2 y  4 xy  y  0
5. x 2 y  7 xy  41y  0
d3y 2
2 d y  4 x dy  4 y  0
6. x3  2 x
dx3 dx2 dx
d4y d3y d2y dy
7. x 4 4  6 x3 3  9 x 2 2  3 x  y  0
dx dx dx dx
8. x 2 y  5 xy  8 y  0; y(1)  0, y(1)  4
9. x 2 y  2 xy  2 y  x3 ln x
d3y 2
2 d y  6 x dy  6 y  3  ln x3
10. x3  3 x
dx3 dx2 dx

18

You might also like