Differential-Equations · Unit 13 · Video 2 · Interactive Practice

When p(a) = 0: The Shift Rule and y_p = x e^(ax)/p'(a)

IKey Formulas

FormulaNameWhen
p(D)(eaxu)=eax p(D+a) up(D)\big(e^{ax}u\big) = e^{ax}\,p(D + a)\,uExponential shift ruleAny polynomial pp, any function uu, aa real or complex
yp=eaxp(a)y_p = \dfrac{e^{ax}}{p(a)}Exponential Input Theoremp(a)≠0p(a) \neq 0
yp=x eaxp′(a)y_p = \dfrac{x\,e^{ax}}{p'(a)}Simple rootp(a)=0p(a) = 0, p′(a)≠0p'(a) \neq 0
yp=x2eaxp′′(a)y_p = \dfrac{x^2 e^{ax}}{p''(a)}Double rootp(a)=p′(a)=0p(a) = p'(a) = 0

Key Insight: When p(D)=(D−a)(D−b)p(D) = (D - a)(D - b) with b≠ab \neq a, the derivative is p′(a)=a−b≠0p'(a) = a - b \neq 0: a simple root is exactly the case where one factor of xx and one derivative of pp repair the division by zero.

IIVisualization 1 — Which Formula, and Which Denominator?

The input eaxe^{ax} meets the characteristic polynomial at r=ar = a: its height, slope and curvature there decide ypy_p.

IIIVisualization 2 — Where x e^x Comes From

For a≠1a \neq 1, eax−exp(a)\dfrac{e^{ax} - e^{x}}{p(a)} solves y′′−3y′+2y=eaxy'' - 3y' + 2y = e^{ax}; as a→1a \to 1 it tends to −x ex-x\,e^{x}.

💡 Subtracting exe^{x} is allowed because exe^{x} solves the homogeneous equation, and the limit is a derivative: eax−exp(a)−p(1)→x exp′(1)\dfrac{e^{ax} - e^{x}}{p(a) - p(1)} \to \dfrac{x\,e^{x}}{p'(1)}.

IVQuiz Questions

Problem 1 · A Simple Root

Given: y′′−4y=e2xy'' - 4y = e^{2x} — find a particular solution.

✅ Correct! p(2)=0p(2) = 0, the roots ±2\pm 2 are simple, p′(D)=2Dp'(D) = 2D gives p′(2)=4p'(2) = 4, so yp=x e2x/4y_p = x\,e^{2x}/4.
❌ Missing the factor xx. e2xe^{2x} solves y′′−4y=0y'' - 4y = 0, so no multiple of it can produce e2xe^{2x}.
❌ Wrong derivative. For a simple root divide by p′(2)=4p'(2) = 4; p′′(2)=2p''(2) = 2 belongs to the double-root formula with x2x^2.
❌ Not quite. Check p(2)p(2), then use x e2x/p′(2)x\,e^{2x}/p'(2) with p′(D)=2Dp'(D) = 2D.
Show solution

p(D)=D2−4=(D−2)(D+2)p(D) = D^2 - 4 = (D - 2)(D + 2), so p(2)=0p(2) = 0 and 22 is a simple root.

p′(D)=2Dp'(D) = 2D, so p′(2)=4≠0p'(2) = 4 \neq 0 and

yp=x e2x4.y_p = \frac{x\,e^{2x}}{4}.

Check: yp′′=(1+x)e2xy_p'' = (1 + x)e^{2x}, so yp′′−4yp=(1+x−x)e2x=e2xy_p'' - 4y_p = (1 + x - x)e^{2x} = e^{2x} ✓

Problem 2 · A Double Root

Given: y′′+2y′+y=e−xy'' + 2y' + y = e^{-x} — find a particular solution.

✅ Correct! p(D)=(D+1)2p(D) = (D + 1)^2, so −1-1 is a double root and yp=x2e−x/p′′(−1)=x2e−x/2y_p = x^2 e^{-x}/p''(-1) = x^2 e^{-x}/2.
❌ One factor of xx is not enough. p′(−1)=2(−1)+2=0p'(-1) = 2(-1) + 2 = 0, so the simple-root formula divides by zero; a double root needs x2x^2.
❌ Missing the denominator. p′′(D)=2p''(D) = 2, so divide x2e−xx^2 e^{-x} by 22.
❌ Not a solution. x e−xx\,e^{-x} solves the homogeneous equation for a double root, so it produces 00, not e−xe^{-x}.
❌ Not quite. Factor p(D)p(D) and count how often −1-1 is a root.
Show solution

p(D)=D2+2D+1=(D+1)2p(D) = D^2 + 2D + 1 = (D + 1)^2: p(−1)=0p(-1) = 0 and p′(−1)=2(−1)+2=0p'(-1) = 2(-1) + 2 = 0, so −1-1 is a double root.

p′′(D)=2p''(D) = 2, so

yp=x2e−xp′′(−1)=x2e−x2.y_p = \frac{x^2 e^{-x}}{p''(-1)} = \frac{x^2 e^{-x}}{2}.

Check by the shift rule: p(D)(e−xx2)=e−x p(D−1) x2=e−xD2x2=2e−xp(D)\big(e^{-x}x^2\big) = e^{-x}\,p(D - 1)\,x^2 = e^{-x}D^2x^2 = 2e^{-x}, and dividing by 22 leaves e−xe^{-x} ✓

Problem 3 · Using the Shift Rule

Given: p(D)=D2+Dp(D) = D^2 + D — find p(D)(e2x x)p(D)\big(e^{2x}\,x\big) with the exponential shift rule.

✅ Correct! p(D+2)=D2+5D+6p(D + 2) = D^2 + 5D + 6, and applied to xx it gives 5+6x5 + 6x.
❌ The DDs must shift. That is e2x p(D) x=e2x(0+1)e^{2x}\,p(D)\,x = e^{2x}(0 + 1); the rule replaces DD by D+2D + 2 before acting on xx.
❌ Not quite. 6x6x is only the constant term p(2)p(2) acting on xx; the 5D5D term contributes 55.
❌ Not quite. Expand (D+2)2+(D+2)(D + 2)^2 + (D + 2) carefully, then apply it to xx.
Show solution

By the shift rule, p(D)(e2xx)=e2x p(D+2) xp(D)\big(e^{2x}x\big) = e^{2x}\,p(D + 2)\,x, with

p(D+2)=(D+2)2+(D+2)=D2+5D+6.p(D + 2) = (D + 2)^2 + (D + 2) = D^2 + 5D + 6.

On u=xu = x: D2x=0D^2x = 0, 5Dx=55Dx = 5, 6x=6x6x = 6x. So

p(D)(e2xx)=e2x(6x+5).p(D)\big(e^{2x}x\big) = e^{2x}(6x + 5).

Check directly: (xe2x)′=(1+2x)e2x(xe^{2x})' = (1 + 2x)e^{2x} and (xe2x)′′=(4+4x)e2x(xe^{2x})'' = (4 + 4x)e^{2x}; their sum is (6x+5)e2x(6x + 5)e^{2x} ✓

Problem 4 · A Resonant Cosine

Given: y′′+y=cos⁡xy'' + y = \cos x — find a particular solution by complexifying.

✅ Correct! ii is a simple root of r2+1r^2 + 1, p′(i)=2ip'(i) = 2i, and Re⁡x eix2i=x2sin⁡x\operatorname{Re}\dfrac{x\,e^{ix}}{2i} = \tfrac{x}{2}\sin x.
❌ Divide by 2i2i, not 22. 12i=−i2\dfrac{1}{2i} = -\dfrac{i}{2} turns cos⁡x\cos x into sin⁡x\sin x in the real part.
❌ Sign of 1/i1/i. −i2⋅isin⁡x=+12sin⁡x-\tfrac{i}{2}\cdot i\sin x = +\tfrac12\sin x, so the real part is +x2sin⁡x+\tfrac{x}{2}\sin x.
❌ Check ∣p′(i)∣|p'(i)|. p′(D)=2Dp'(D) = 2D, so p′(i)=2ip'(i) = 2i and the amplitude carries a 12\tfrac12.
❌ Not quite. p(i)=0p(i) = 0: use x eix/p′(i)x\,e^{ix}/p'(i) and take the real part.
Show solution

Complexify: cos⁡x=Re⁡ eix\cos x = \operatorname{Re}\, e^{ix}, α=i\alpha = i, p(D)=D2+1p(D) = D^2 + 1. Then p(i)=0p(i) = 0 and p′(i)=2i≠0p'(i) = 2i \neq 0: a simple root.

y~p=x eix2i=−i2 x(cos⁡x+isin⁡x)=x2sin⁡x−i x2cos⁡x.\tilde y_p = \frac{x\,e^{ix}}{2i} = -\frac{i}{2}\,x(\cos x + i\sin x) = \frac{x}{2}\sin x - i\,\frac{x}{2}\cos x.

The real part is yp=x2sin⁡xy_p = \tfrac{x}{2}\sin x, an oscillation whose amplitude grows linearly: resonance.

Check: yp′′=cos⁡x−x2sin⁡xy_p'' = \cos x - \tfrac{x}{2}\sin x, so yp′′+yp=cos⁡xy_p'' + y_p = \cos x ✓

Solved: 0 / 4