Calculus · real student question

Solve the differential equation y double prime plus 2y prime plus y equals e to the 3x.

Question

Solve the differential equation

y+2y+y=e3xy''+2y'+y=e^{3x}

Step-by-step solution

  1. Split the task in two. For a linear equation with constant coefficients the general solution is y=yh+ypy=y_h+y_p: the general solution of the homogeneous equation plus any one particular solution of the full equation. Each half is found by a different technique.

  2. Solve the homogeneous part. Set y+2y+y=0y''+2y'+y=0 and substitute y=erxy=e^{rx}:

    r2+2r+1=(r+1)2=0r=1 (twice)r^2+2r+1=(r+1)^2=0\quad\Rightarrow\quad r=-1\ \text{(twice)}

    A repeated root supplies only one exponential, so the second independent solution is that exponential times xx:

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

  3. Choose the right trial function. The right-hand side is e3xe^{3x}. Because 33 is not a root of r2+2r+1r^2+2r+1, no resonance occurs and the plain guess yp=Ae3xy_p=Ae^{3x} suffices. (Had the right side been exe^{-x}, matching the repeated root, the trial would have needed an x2x^2 factor.)

  4. Substitute and solve for AA. With yp=3Ae3xy_p'=3Ae^{3x} and yp=9Ae3xy_p''=9Ae^{3x},

    (9A+6A+A)e3x=e3x16A=1A=116(9A+6A+A)e^{3x}=e^{3x}\quad\Rightarrow\quad 16A=1\quad\Rightarrow\quad A=\frac{1}{16}

    The 1616 is no accident: it is the characteristic polynomial evaluated at the exponent, p(3)=32+2(3)+1=16p(3)=3^2+2(3)+1=16.

  5. Assemble the general solution.

    y=(C1+C2x)ex+116e3xy=(C_1+C_2x)e^{-x}+\frac{1}{16}e^{3x}

  6. Verify both pieces. For yp=116e3xy_p=\frac{1}{16}e^{3x}: 916+616+116=1616=1\frac{9}{16}+\frac{6}{16}+\frac{1}{16}=\frac{16}{16}=1, so it reproduces e3xe^{3x} ✓. For yh=xexy_h=xe^{-x}: yh=(1x)exy_h'=(1-x)e^{-x}, yh=(x2)exy_h''=(x-2)e^{-x}, and (x2)+2(1x)+x=0(x-2)+2(1-x)+x=0, so it solves the homogeneous equation ✓.

Answer

y=(C1+C2x)ex+116e3xy=(C_1+C_2x)e^{-x}+\frac{1}{16}e^{3x}

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