Академический Документы
Профессиональный Документы
Культура Документы
ay 00 + by 0 + cy = 0
To find the particular solution using the Method of Undetermined Coefficients, we first make a “guess” as to the form of
yp , adjust it to eliminate any overlap with yc , plug our guess back into the originial DE, and then solve for the unknown
coefficients. This handout deals with coming up with that final, adjusted “guess” for yp .
A0 + A1 x + A2 x 2 + . . . + An x n
C0 + C1 x + C2 x2 + . . . + Cn xn
(typically we’ll just go through the alphabet rather than use
indices on the same letter)
Cekx Aekx
If g(x) has two different types of functions added/subtracted or multiplied together, then we add or multiply the different
guesses together to form yp . If we are multiplying the two, then we combine any coefficients that would have been
multiplied together if we had expanded our guess for yp . You should never have the possibility of two unknown
coefficients being multiplied together in yp . For example, if we have g(x) = 5e2x cos(3x), then our guess for yp
might initially look like
yp = Ae2x (B cos(3x) + C sin(3x))
But expanding this gives us
yp = ABe2x cos(3x) + ACe2x sin(3x).
Since we don’t want unknown coefficients multiplied together, we rewrite AB and BC each as a single coefficient and use
1
Overlap with yc
If part (or all) of our initial guess for yp overlaps with yc , then we multiply the functions in yp that cause the overlap by
x until we have eliminated the overlap (see the examples for details on exactly how this works out). For an nth order DE,
n is the maximum number of times you would need to multiply by x to eliminate overlap.
If you’re given initial or boundary conditions, you need to plug those into the general solution (not just the complementary)
and solve for the parameters after you’ve found yp .
Examples
Given the DEs below, determine the appropriate final “guess” for the form of yp in terms of the undetermined coefficients
A, B, C, etc.
Example 1
2e−4x − 7e3x
6xe−3x
4 sin(x) + e4x
Example 2
3e5x + 9 sin(2x)
ex cos(2x)
x sin(x)
2
Example 3
3e−2x
2xe−2x
7e−x
3e−2x + sin(x)
Example 4
5x4 + e2x
14e5x
x3 e5x
Example 5
5e−x/2 cos(2x)
e−x/2
10 sin(2x)
3
Example 6
√ √
DE: y 00 + 4y 0 − 2y = g(x). Here yc = c1 e(−2+ 6)x
+ c2 e(−2− 6)x
.
5e3x
5xe3x
5x + e3x
3 + cos(2x)
x3 e−x + x2
4
Additional Examples
“For each of the following DEs, find the correct final “guess” for the form of the particular solution yp in terms of
undetermined coefficients A, B, C, . . . . You do not have to solve for the coefficients.”
[Note: In many of these examples, the auxiliary polynomial is easily factored without use of the quadratic formula. On
a test, you don’t have to use the quadratic formula every time, but double check your work to be sure you’ve factored
correctly.]
Example 1
“Solve
y 00 − y 0 − 12y = g(x),
where g(x) is given below.”
(the trig functions don’t cause overlap, so they don’t need to be multiplied by x). There is no longer any overlap,
so this is our final guess for yp .
5
Example 2
“Solve
y 00 + 6y 0 + 9y = g(x),
where g(x) is given below.”
and thus
yc = c1 e−3x + c2 xe−3x
1. g(x) = 8e−3x . Our initial guess for yp is a general exponential function with the same exponent, i.e.,
yp = Ae−3x
yp = Axe−3x
This now overlaps with the second term of yc , so we multiply by x again and get
yp = Ax2 e−3x
There is now no longer any overlap with any terms of yc , so this is our final guess for yp .
2. g(x) = 2x2 e−3x . Here we have (poly of degree 2)(exponential), so our initial guess is
yp = (Ax2 + Bx + C)e−3x
If we were to expand this, then we would have overlap with both terms of yc . So we multiply everything by x and
get
yp = (Ax2 + Bx + C)xe−3x
= (Ax3 + Bx2 + Cx)e−3x
The Cxe−3x term still causes overlap with part of yc , so we multiply by x again:
There is now no longer any overlap, so this is our final guess for yp .
3. g(x) = 2x2 e−3x − sin(5x). Here we have (poly of degree 2)(exponential)+(trig function), so our initial guess is
If we were to expand this, then we would have overlap with both terms of yc . Since only the (poly of degree
2)(exponential) part of yp causes overlap, we multiply only that part of yp by x:
6
The Cxe−3x term still overlaps with part of yc , so we multiply the terms that came from (poly of degree 2)(expo-
nential) by x again:
yp = (Ax3 + Bx2 + Cx)xe−3x + D cos(5x) + E sin(5x)
= (Ax4 + Bx3 + Cx2 )e−3x + D cos(5x) + E sin(5x)
There is now no longer any overlap, so this is our final guess for yp .
Example 3
“Solve
y 00 + 16y = g(x),
where g(x) is given below.”
1. g(x) = 7 cos(2x) + 9 sin(2x). Both of these trig functions have the same argument, so we only need one pair of trig
functions in our initial guess:
yp = A cos(2x) + B sin(2x)
Since these trig functions have a different argument than the trig functions in yc , we don’t have any overlap. So,
this is our final guess for yp .
2. g(x) = 7 cos(4x) + 9 sin(4x). Again, we only need one pair of trig functions in our initial guess:
yp = A cos(4x) + B sin(4x)
However, this time they have the same argument as those in yc , causing overlap. So, we multiply by x:
yp = (A cos(4x) + B sin(4x)) x
= Ax cos(4x) + Bx sin(4x)
which eliminates the overlap. So, this is our final guess for yp .
3. g(x) = 7 cos(2x) + 9 sin(4x). In this case, we have trig functions with different arguments, so we need two pairs of
trig functions in yp :
yp = (A cos(2x) + B sin(2x)) + (C cos(4x) + D sin(4x))
The second pair causes overlap with yc , so we multiply only that pair by x:
yp = (A cos(2x) + B sin(2x)) + (C cos(4x) + D sin(4x)) x
= A cos(2x) + B sin(2x) + Cx cos(4x) + Dx sin(4x)
There is no longer any overlap with yc , so this is our final guess for yp .
4. g(x) = 9ex sin(4x). Here we have (exponential)(trig), so our initial guess for yp looks like
yp = ex (A cos(4x) + B sin(4x))
Even though the trig functions have the same argument as those in yc , the trig functions in yc are not multiplied
by ex , so there is no overlap and this is our final guess for yp .
7
Example 4
“Solve
y 00 − 4y 0 = g(x),
where g(x) is given below.”
yc = c1 e0x + c2 e4x
= c1 + c2 e4x
yp = Ax2 + Bx + C
yp = (Ax2 + Bx + C)x
= Ax3 + Bx2 + Cx
yp = (Ax2 + Bx + C) + De4x
Since the polynomial part overlaps with the first term of yc and the exponential function overlaps with the second
term of yc , we need to multiply the entire thing by x:
yp = (Ax2 + Bx + C + De4x )x
= Ax3 + Bx2 + Cx + Dxe4x
This eliminates the overlap and give us the final form for yp .
Example 5
“Solve
9y 00 − 6y 0 + 37y = g(x),
where g(x) is given below.”
8
1. g(x) = 2ex/3 cos(5x). We start with
yp = ex/3 (A cos(5x) + B sin(5x))
Since the trig functions in yc have a different argument, there is no overlap here, so this is our final guess for yp .
2. g(x) = 2ex/4 cos(2x). We start with
yp = ex/4 (A cos(2x) + B sin(2x))
Since the exponential function in yc has a different argument, there is no overlap here, so this is our final guess for
yp .
Even though the trig and exponential functions in yc have the same argument, they’re being multiplied together in
yc but added in yp , so there is not overlap, and thus this is our final guess for yp .