Professional Documents
Culture Documents
IM DE Chapter 4 Lect 18 VARIATION OF PARAMETERS Revised
IM DE Chapter 4 Lect 18 VARIATION OF PARAMETERS Revised
IM DE Chapter 4 Lect 18 VARIATION OF PARAMETERS Revised
VARIATION OF PARAMETERS
the method of undetermined coefficients works only when the coefficients a, b, and c are
constants and the right‐hand term f(x) is of a special form. If these restrictions do not apply to
a given nonhomogeneous linear differential equation, then a more powerful method of
determining a particular solution is needed: the method known as variation of parameters.
The first step is to obtain the general solution of the corresponding homogeneous equation,
which will have the form
𝑦𝑐 = 𝐶1 𝑦1 + 𝐶2 𝑦2
where 𝑦1 and 𝑦2 are known functions.
The next step is to vary the parameters; that is, to replace the constants 𝐶1 and 𝐶2 by (as yet
unknown) functions 𝑣1 and 𝑣2 to obtain the form of a particular solution 𝑦 of the given
nonhomogeneous equation:
ȳ = 𝑣1 𝑦1 + 𝑣2 𝑦2
The goal is to determine these functions 𝑣1 and 𝑣2 . Then, since the functions 𝑦1 and 𝑦2 are
already known, the expression above for 𝑦 yields a particular solution of the nonhomogeneous
equation. Combining 𝑦 with 𝑦𝑐 then gives the general solution of the non‐homogeneous
differential equation.
Since there are two unknowns to be determined, 𝑣1 and 𝑣2 , two equations or conditions are
required to obtain a solution. One of these conditions will naturally be satisfying the given
differential equation. But another condition will be imposed first. Since 𝑦 will be substituted
into equation (∗), its derivatives must be evaluated. The first derivative of 𝑦 is
Now, to simplify the rest of the process—and to produce the first condition on 𝑣1 and 𝑣2 — set
𝑣′1 𝑦1 + 𝑣′2 𝑦2 = 0
This will always be the first condition in determining 𝑣1 and 𝑣2 ; the second condition will be
the satisfaction of the given differential equation (*).
EXAMPLES:
1. Solve the differential equation 𝑦" + 𝑦 = 𝑡𝑎𝑛𝑥.
Because the characteristic equation 𝑚2 + 1 = 0 has solutions 𝑚 = ±𝑖, the
homogeneous (or complementary) solution is
𝑦𝑐 = 𝐶1 𝑐𝑜𝑠𝑥 + 𝐶2 𝑠𝑖𝑛𝑥
Replacing 𝐶1 and 𝐶2 by 𝑣1 and 𝑣2 produces
𝑦𝑝 = 𝑣1 𝑐𝑜𝑠𝑥 + 𝑣2 𝑠𝑖𝑛𝑥
2. Solve 𝑦 ′ − 5𝑦 = 𝑒 2𝑥 .
The complementary solution is 𝑦𝑐 = 𝐶1 𝑒 5𝑥 , so we assume 𝑦𝑝 = 𝑣1 𝑒 5𝑥 . Here 𝑦1 = 𝑒 5𝑥
and 𝑓(𝑥) = 𝑒 2𝑥 , and it follows that
𝑣1′ 𝑒 5𝑥 = 𝑒 2𝑥 or 𝑣1′ = 𝑒 −3𝑥
Integrating, we get
𝑣1 = ∫ 𝑒 −3𝑥 𝑑𝑥
1
𝑣1 = − 𝑒 −3𝑥
3
Therefore, the general solution is
𝟏
𝑦 = 𝑦𝑐 + 𝑦𝑝 = 𝑪𝟏 𝒆𝟓𝒙 − 𝒆−𝟑𝒙
𝟑
3 3
𝑣1 = ∫ 7 𝑥 𝑑𝑥 and 𝑣2 = ∫ − 7 𝑥 𝑒 −7𝑥 𝑑𝑥
3 3 3
= 14 𝑥 2 = 49 𝑥𝑒 −7𝑥 + 343 𝑒 −7𝑥
Thus,
3 2 3 3 −7𝑥 7𝑥
𝑦𝑝 = 𝑥 + ( 𝑥𝑒 −7𝑥 + 𝑒 )𝑒
14 49 343
3 2 3 3
𝑦𝑝 = 𝑥 + 𝑥+
14 49 343
∫ 𝑣1′ = ∫ 𝑠𝑒𝑐𝑥 𝑑𝑥 (∫ 4)
𝑣1 = ln(𝑠𝑒𝑐𝑥 + 𝑡𝑎𝑛𝑥)
∫ 𝑣2′ = ∫ − 𝑑𝑥 (∫ 6)
𝑣2 = −𝑥
∫ 𝑣3′ = ∫ −𝑡𝑎𝑛𝑥 (∫ 7)
𝑣3 = ln(𝑐𝑜𝑠𝑥)
Finally, the general solution is
𝒚 = 𝑪𝟏 + 𝑪𝟐 𝒄𝒐𝒔𝒙 + 𝑪𝟑 𝒔𝒊𝒏𝒙 + 𝐥𝐧(𝒔𝒆𝒄𝒙 + 𝒕𝒂𝒏𝒙) − 𝒙𝒄𝒐𝒔𝒙 + 𝐥𝐧(𝒄𝒐𝒔𝒙)𝒔𝒊𝒏𝒙
Assume that 𝑦1 and 𝑦2 are a fundamental set of solutions (homogeneous) for Equation 1. Then
a particular solution to the nonhomogeneous differential equation is,
𝑦2 𝑓(𝑥) 𝑦1 𝑓(𝑥)
𝑦𝑝 = −𝑦1 ∫ 𝑑𝑥 + 𝑦2 ∫ 𝑑𝑥
𝑊(𝑦1 , 𝑦2 ) 𝑊(𝑦1 , 𝑦2 )
where the Wronskian, 𝑊(𝑦1 , 𝑦2 ) 𝑜𝑟 𝑊 is,
𝑦1 𝑦2
𝑊(𝑦1 , 𝑦2 ) = |𝑦′ 𝑦′2 | = 𝑦1 𝑦′2 − 𝑦2 𝑦′1 (𝑊 ≠ 0)
1
EXERCISES 18.1
1. Solve 𝑦 ′ − 3𝑥 2 𝑦 = 12𝑥 2 .
2. Solve 2𝑦 ′ − 5𝑦 = 2𝑥 2 − 5.
𝑒𝑥
3. Solve 𝑦 ′′ − 2𝑦 ′ + 𝑦 = . (Use both methods)
𝑥