Lecture 21 22
Lecture 21 22
6 Variation of Parameters
The method of undetermined coefficients is not applicable to equations of form
𝑎𝑛 𝑦 (𝑛) + ⋯ + 𝑎1 𝑦 ′ + 𝑎0 𝑦 = 𝑔(𝑥)
when
and so on.
Variation of parameters will solve any non-homogenous linear differential equation
provided that the solutions to homogeneous equation are known.
To adapt the method of variation of parameters to a linear second-order differential
equation suppose we have a second order non-homogenous differential equation in
standard form
𝑦 ′′ + 𝑃(𝑥)𝑦 ′ + 𝑄(𝑥)𝑦 = 𝑓(𝑥). (1)
where 𝑃(𝑥) and 𝑄(𝑥) are continuous on some interval 𝐼.
Further, let 𝑦𝑐 = 𝑐1 𝑦1 (𝑥) + 𝑐2 𝑦2 (𝑥) be the solution of homogenous second order
differential equation (1).
In the same manner as in reduction of order, if we define
𝑦𝑝 (𝑥) = 𝑢1 (𝑥) 𝑦1 (𝑥) + 𝑢2 (𝑥) 𝑦2 (𝑥),
it follows that
𝑦𝑝 ′(𝑥) = 𝑢1′ (𝑥) 𝑦1 (𝑥) + 𝑢1 (𝑥) 𝑦1′ (𝑥) + 𝑢2′ (𝑥) 𝑦2 (𝑥) + 𝑢2 (𝑥) 𝑦2′ (𝑥)
𝑦𝑝′′ (𝑥) = 𝑢1′′ (𝑥) 𝑦1 (𝑥) + 2 𝑢1′ (𝑥) 𝑦1′ (𝑥) + 𝑢1 (𝑥) 𝑦1′′ (𝑥) + 𝑢2′′ (𝑥) 𝑦2 (𝑥) + 2 𝑢2′ (𝑥) 𝑦2′ (𝑥)
+ 𝑢2 (𝑥) 𝑦2′′ (𝑥)
But
𝑦1′′ + 𝑃(𝑥)𝑦1′ + 𝑄(𝑥)𝑦1 = 0 and 𝑦2′′ + 𝑃(𝑥)𝑦2′ + 𝑄(𝑥)𝑦2 = 0
So (2) reduces to
𝑢1′′ (𝑥) 𝑦1 (𝑥) + 𝑢1′ (𝑥)𝑦1′ (𝑥) + 𝑢2′′ (𝑥) 𝑦2 (𝑥) + 𝑢2′ (𝑥)𝑦2′ (𝑥) + 𝑃(𝑦1 𝑢1′ + 𝑦2 𝑢2′ ) + 𝑦1′ 𝑢1′ +
𝑦2′ 𝑢2′ = 𝑓(𝑥),
𝑢1′′ (𝑥) 𝑦1 (𝑥) + 𝑢1′ (𝑥)𝑦1′ (𝑥) + 𝑢2′′ (𝑥) 𝑦2 (𝑥) + 𝑢2′ (𝑥)𝑦2′ (𝑥) + 𝑃(𝑦1 𝑢1′ + 𝑦2 𝑢2′ ) + 𝑦1′ 𝑢1′ +
𝑦2′ 𝑢2′ = 𝑓(𝑥), (3)
But
𝑑
(𝑢1′ (𝑥)𝑦1 (𝑥)) = 𝑢1′′ (𝑥) 𝑦1 (𝑥) + 𝑢1′ (𝑥)𝑦1′ (𝑥)
𝑑𝑥
And
𝑑
(𝑢′ (𝑥)𝑦2 (𝑥)) = 𝑢2′′ (𝑥) 𝑦2 (𝑥) + 𝑢2′ (𝑥)𝑦2′ (𝑥)
𝑑𝑥 2
So (3) becomes
𝑑 𝑑
𝑑𝑥
(𝑢1′ (𝑥)𝑦1 (𝑥)) + 𝑑𝑥 (𝑢2′ (𝑥)𝑦2 (𝑥)) + 𝑃(𝑦1 𝑢1′ + 𝑦2 𝑢2′ ) + 𝑦1′ 𝑢1′ + 𝑦2′ 𝑢2′ = 𝑓(𝑥), (4)
Since we seek to determine two unknown functions 𝑢1 and 𝑢2 , so we require only two
equations. We can obtain these by making the further assumption that the functions 𝑢1 and
𝑢2 satisfy 𝑦1 𝑢1′ + 𝑦2 𝑢2′ = 0. So Eq. (5) further reduces to 𝑦1′ 𝑢1′ + 𝑦2′ 𝑢2′ = 𝑓(𝑥).
So we have
𝑦1 𝑢1′ + 𝑦2 𝑢2′ = 0
{ ′ ′ (6)
𝑦1 𝑢1 + 𝑦2′ 𝑢2′ = 𝑓(𝑥)
By Cramer’s Rule, the solution of the system can be expressed in terms of determinants.
𝑊1 𝑊2
𝑢1′ = and 𝑢2′ =
𝑊 𝑊
𝑦1 𝑦2 0 𝑦2 𝑦1 0
where 𝑊 = |𝑦 ′ ′ | , 𝑊1 = | | and 𝑊2 = | |
1 𝑦2 𝑓(𝑥) 𝑦2′ 𝑦1′ 𝑓(𝑥)
NOTE: 𝑊(𝑦1 (𝑥), 𝑦2 (𝑥)) ≠ 0 for every 𝑥 in the interval. Hence finally we have
𝑊1 𝑊2
𝑢1 = ∫ 𝑑𝑥 and 𝑢2 = ∫ 𝑑𝑥
𝑊 𝑊