Calculus · real student question

Solve the differential equation y'' + 2y' + y = e^(-x).

Question

Solve

y+2y+y=exy'' + 2y' + y = e^{-x}

Step-by-step solution

  1. Find the characteristic roots. For y+2y+y=0y'' + 2y' + y = 0 the characteristic equation is

    r2+2r+1=(r+1)2=0r^2 + 2r + 1 = (r+1)^2 = 0

    with the repeated root r=1r = -1. A double root contributes both exe^{-x} and xexxe^{-x}, so

    yh=(C1+C2x)exy_h = (C_1 + C_2x)e^{-x}

  2. Count how deep the resonance goes. The forcing term exe^{-x} matches the root 1-1, and that root has multiplicity 22. The rule is: multiply the trial by xmx^{m} where mm is the multiplicity. Here m=2m = 2, so both AexAe^{-x} and AxexAxe^{-x} would substitute to zero — only yp=Ax2exy_p = Ax^2e^{-x} can survive.

  3. Differentiate the trial twice.

    yp=Aex(2xx2),yp=Aex(x24x+2)y_p' = A e^{-x}\left(2x - x^2\right), \qquad y_p'' = A e^{-x}\left(x^2 - 4x + 2\right)

  4. Substitute and solve for A.

    yp+2yp+yp=Aex[(x24x+2)+(4x2x2)+x2]=2Aexy_p'' + 2y_p' + y_p = Ae^{-x}\left[(x^2 - 4x + 2) + (4x - 2x^2) + x^2\right] = 2Ae^{-x}

    The x2x^2 terms cancel (12+1=01 - 2 + 1 = 0) and so do the xx terms (4+4=0-4 + 4 = 0), leaving only the constant 22. Setting 2Aex=ex2Ae^{-x} = e^{-x} gives A=12A = \tfrac12.

  5. Write and check the general solution.

    y=ex(C1+C2x+12x2)y = e^{-x}\left(C_1 + C_2x + \tfrac{1}{2}x^2\right)

    Verification with yp=12x2exy_p = \tfrac12x^2e^{-x}: yp=(xx22)exy_p' = \left(x - \tfrac{x^2}{2}\right)e^{-x} and yp=(12x+x22)exy_p'' = \left(1 - 2x + \tfrac{x^2}{2}\right)e^{-x}, so the left side is ex[(12x+x22)+(2xx2)+x22]=exe^{-x}\left[\left(1 - 2x + \tfrac{x^2}{2}\right) + \left(2x - x^2\right) + \tfrac{x^2}{2}\right] = e^{-x}. Correct.

Answer

y=ex(C1+C2x+12x2)y = e^{-x}\left(C_1 + C_2 x + \tfrac{1}{2}x^2\right)

Need to solve a different problem like this? Open the solver →