Travou nisso? Resolva com IA
Calculus · real student question

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

Question

Solve

y′′+2y′+y=e−xy'' + 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 e−xe^{-x} and xe−xxe^{-x}, so

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

  2. Count how deep the resonance goes. The forcing term e−xe^{-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 Ae−xAe^{-x} and Axe−xAxe^{-x} would substitute to zero — only yp=Ax2e−xy_p = Ax^2e^{-x} can survive.

  3. Differentiate the trial twice.

    yp′=Ae−x(2x−x2),yp′′=Ae−x(x2−4x+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=Ae−x[(x2−4x+2)+(4x−2x2)+x2]=2Ae−xy_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 (1−2+1=01 - 2 + 1 = 0) and so do the xx terms (−4+4=0-4 + 4 = 0), leaving only the constant 22. Setting 2Ae−x=e−x2Ae^{-x} = e^{-x} gives A=12A = \tfrac12.

  5. Write and check the general solution.

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

    Verification with yp=12x2e−xy_p = \tfrac12x^2e^{-x}: yp′=(x−x22)e−xy_p' = \left(x - \tfrac{x^2}{2}\right)e^{-x} and yp′′=(1−2x+x22)e−xy_p'' = \left(1 - 2x + \tfrac{x^2}{2}\right)e^{-x}, so the left side is e−x[(1−2x+x22)+(2x−x2)+x22]=e−xe^{-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=e−x(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 →