Undetermined Coeff
Undetermined Coeff
Undetermined Coeff
yp = y1 + · · · + yn
(4) ay ′′ + by ′ + cy = f1 + f2 + f3 .
If each equation in (3) is easily solved, then solving equation (4) is also
easy: add the three answers for the easily solved problems.
4.3 Undetermined Coefficients 171
To use the idea, it is necessary to start with f (x) and determine a de-
composition f = f1 + f2 + f3 so that equations (3) are easily solved.
The process is called the method of undetermined coefficients. This
method consists of decomposing (1) into a number of easy-to-solve
equations, each of which is ultimately solved by determining a polyno-
mial trial solution
xm
y = c0 + c1 x + · · · + cm
m!
with undetermined coefficients c0 , . . . , cm . Values for the undeter-
mined coefficients are found by college algebra back–substitution.
k
ay ′′ + by ′ + cy = k, c 6= 0 cy = k yp =
c
k
ay ′′ + by ′ = k, b 6= 0 by ′ = k yp = x
b
k x2
ay ′′ = k, a 6= 0 ay ′′ = k yp =
a 2
The equilibrium method also applies to nth order linear differential equa-
tions ni=0 ai y (i) = k with constant coefficients a0 , . . . , an and constant
P
right side k.
A special case of the equilibrium method is the simple quadrature method,
illustrated in Example 5, page 177. This method is used in elementary
physics courses to solve falling body problems.
It will emerge that y(x) always has n + 1 terms, but its degree can be
either n, n + 1 or n + 2. The undetermined coefficients c0 , . . . , cm
are resolved by setting x = 0 in equations (7). The Taylor polynomial
relations c0 = y(0), . . . , cm = y (m) (0) give the equations
ac2 + bc1 + cc0 = p(0),
ac3 + bc2 + cc1 = p′ (0),
(8) ac4 + bc3 + cc2 = p′′ (0),
..
.
acn+2 + bcn+1 + ccn = p(n) (0).
These equations can always be solved by back-substitution; linear al-
gebra is not required. Three cases arise, according to the number of
zero roots of the characteristic equation ar 2 + br + c = 0. The values
m = n, n + 1, n + 2 correspond to zero, one or two roots r = 0.
Case 1: [No root r = 0]. Then c 6= 0. There were n integrations to find
the trial solution, so cn+2 = cn+1 = 0. The unknowns are c0 to cn . The
system can be solved by simple back-substitution to uniquely determine
c0 , . . . , cn . The resulting polynomial y(x) is the desired solution yp (x).
Case 2: [One root r = 0]. Then c = 0, b 6= 0. The unknowns are
c0 , . . . , cn+1 . There is no condition on c0 ; simplify the trial solution by
taking c0 = 0. Solve (8) for unknowns c1 to cn+1 , as in Case 1.
Case 3: [Double root r = 0]. Then c = b = 0 and a 6= 0. The
equilibrium method gives a polynomial trial solution y(x) involving c0 ,
. . . , cn+2 . There are no conditions on c0 and c1 . Simplify y by taking
c0 = c1 = 0. Solve (8) for unknowns c2 to cn+2 , as in Case 1.
College algebra back-substitution applied to (8) is illustrated in Example
7, page 178. A complete justification of the polynomial method appears
in the proof of Theorem 9, page 184.
d
[a(D + k)2 + b(D + k) + c]Y = p(x), D= .
dx
d
[a(D + z)2 + b(D + z) + c]Y = p(x), z = k + im, D= .
dx
The polynomial method applies to find Y . Symbol Re extracts the real
part of a complex number. Details are in Example 11, page 181. The
formula is justified in Theorem 11. In words, to find the equation for Y :
d
[a(D + z)2 + b(D + z) + c]Y = p(x), z = k + im, D= .
dx
The polynomial method applies to find Y . Symbol Im extracts the
imaginary part of a complex number. Details are in Example 12, page
182. The formula is justified in Theorem 11. In words, to find the
equation for Y :
The Fixup Rule. Table 2 was obtained by choosing values for k and
m in the trial solution formula (9). Accordingly, the corrected trial
solution is found by this rule:
Key theorems
The following results, whose proofs are delayed to page 184, form the
theoretical basis for the method of undetermined coefficients. University
courses might have to assign the proofs as reading to save class time for
examples.
Solution: Let’s begin by calculating the trial solution y = c0 +c1 x+c2 x2 /2+x3 .
This is done by differentiation of y ′′ − y ′ + y = 2 − x + x3 until the right side
is constant:
y v − y iv + y ′′′ = 6.
The equilibrium method solves the truncated equation 0 + 0 + y ′′′ = 6 by
quadrature to give y = c0 + c1 x + c2 x2 /2 + x3 .
The undetermined coefficients c0 , c1 , c2 will be found by a classical tech-
nique in which the trial solution y is back-substituted into the differential equa-
tion. We begin by computing the derivatives of y:
These equations are solved by back-substitution, starting with the last equation
and proceeding to the first equation. The answers are successively c2 = 6,
c1 = −1, c0 = −5. For more detail on back-substitution, see the next example.
Substitution into y = c0 + c1 x + c2 x2 /2 + x3 gives the particular solution
yp = −5 − x + 3x2 + x3 .
It is also true that y iv (0) = y v (0) = 0, since y is a cubic. This produces the
following equations for undetermined coefficients c0 , c1 , c2 , c3 :
c2 − c1 + c0 = 2
c3 − c2 + c1 = −1
−c3 + c2 = 0
c3 = 6
sin x − cos x = y ′′ + 4y
= (−A + 4) cos x + (−B + 4) sin x.
180
−A + 4 = −1,
−B + 4 = 1.
Y ′′ + 3Y ′ + 3Y = 2 − x + x3
Y ′′′ + 3Y ′′ + 3Y ′ = −1 + 3x2
Y iv + 3Y ′′′ + 3Y ′′ = 6x
Y v + 3Y iv + 3Y ′′′ = 6
c2 + 3c1 + 3c0 = 2
c3 + 3c2 + 3c1 = −1
c4 + 3c3 + 3c2 = 0
c5 + 3c4 + 3c3 = 6
The solution y = e2x Y multiplies the above display by e2x . This verifies the
1
formula yp = 507 ((26x − 107)e2x cos(3x) + (115 − 39x)e2x sin(3x)).
Assume p(x) has degree d and succinctly write down the successive derivatives
of the differential equation as
xm+d
y = y0 + y1 + · · · + ym+d
(m + d)!
where m = 0, 1, 2 corresponding to cases 1,2,3, respectively. It has to be shown
that there are coefficients y0 , . . . , ym+d such that y is a solution of ay ′′ + by ′ +
cy = p(x).
Let x = 0 in equations (11) and use the definition of polynomial y to obtain
the equations
In case 1 (c 6= 0), m = 0 and the last equation in (12) gives ym+d = p(d) (0)/c.
Back-substitution succeeds in finding the other coefficients, in reverse order,
because y (d+1) (0) = y (d+2) (0) = 0, in this case. Define the constants y0 to yd
to be the solutions of (12). Define yd+1 = yd+2 = 0.
In case 2 (c = 0, b 6= 0), m = 1 and the last equation in (12) gives ym+d =
p(d) (0)/b. Back-substitution succeeds in finding the other coefficients, in reverse
order, because y (d+2) (0) = 0, in this case. However, y0 is undetermined. Take
it to be zero, then define y1 to yd+1 to be the solutions of (12). Define yd+2 = 0.
In case 3 (c = b = 0), m = 2 and the last equation in (12) gives ym+d =
p(d) (0)/a. Back-substitution succeeds in finding the other coefficients, in reverse
order. However, y0 and y1 are undetermined. Take them to be zero, then define
y2 to yd+2 to be the solutions of (12).
It remains to prove that the polynomial y so defined is a solution of the dif-
ferential equation ay ′′ + by ′ + cy = p(x). Begin by applying quadrature to the
last differentiated equation ay (2+d) + by (1+d) + cy (d) = p(d) (x). The result is
ay (1+d) +by (d) +cy (d−1) = p(d−1) (x)+C with C undetermined. Set x = 0 in this
equation. Then relations (12) say that C = 0. This process can be continued
until ay ′′ + by ′ + cy = q(x) is obtained, hence y is a solution.
y = ekx Y,
y′ = kekx Y + ekx Y ′
= ekx (D + k)Y,
y ′′ = k 2 ekx Y + 2kekx Y ′ + ekx Y ′′
= ekx (D + k)2 Y.
Insert them into the differential equation a(D + k)2 Y + b(D + k)Y + cY = p(x).
Then multiply through by ekx to remove the common factor e−kx on the left,
giving ay ′′ + by ′ + cy = p(x)ekx . This completes the proof.
Proof of Theorem 11: Abbreviate ay ′′ +by ′ +cy by Ly. Consider the complex
equation Lu = p(x)ezx , to be solved for u = u1 + iu2 . According to Theorem
186
10, u can be computed as u = ezx Y where [a(D + z)2 + b(D + z) + c]Y = p(x).
Take the real and imaginary parts of u = ezx Y and Lu = p(x)ezx . Then u1 =
Re(ezx Y ) and u2 = Im(ezx Y ) satisfy Lu1 = Re(p(x)ezx ) = p(x) cos(mx)ekx
and Lu2 = Im(p(x)ezx ) = p(x) sin(mx)ekx . This completes the proof.
Exercises 4.3
Polynomial Solutions. Determine a 20. y ′′ − y = (x − 1)e−2x
polynomial solution yp for the given
′′ ′ 2x
differential equation. Apply Theorem 21. y − y = (x + 3)e
9, page 177, and model the solution af-
ter Examples 5, 6, 7 and 9. 22. y ′′ − y ′ = (x − 2)e−2x