Variation of Parameters Method For Higher-Order Equations: Dy D y Dy A A A Ay DX DX DX
Variation of Parameters Method For Higher-Order Equations: Dy D y Dy A A A Ay DX DX DX
Variation of Parameters Method For Higher-Order Equations: Dy D y Dy A A A Ay DX DX DX
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 n1 y dy
an n an1 n1 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
y Pn1 x y P1 x y P x y f x
n 1
n
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
y1n 1u1 y 2 n 1u 2 y n n 1u 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.
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
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
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
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
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
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 10 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
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
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
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
31 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
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
So far we have been solving Linear Differential Equations with constant coefficients.
We will now discuss the Differential Equations with non-constant (variable) coefficients.
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.
11
Lecture 14 Variation of Parameters
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 m1 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
The solution of the differential equation depends on the roots of the AE.
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.
12
Lecture 14 Variation of Parameters
Example 1
2
2d y dy
Solve x 2x 4 y 0
2 dx
dx
Solution:
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 .
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 y0
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:
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.
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
xi cos( ln x) i sin( ln x)
or y1 2 x (cos( ln x))
y2 2 x (sin( ln x)) are also solutions.
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
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
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 m2 7 xmx m1 8 x m ,
dx dx dx
16
Lecture 14 Variation of Parameters
Example 5
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