Calculus · real student question

Solve the differential equation y'' + 4y = 0.

Question

Find the general solution of

y+4y=0y''+4y=0

Step-by-step solution

  1. Try an exponential trial solution. For a linear ODE with constant coefficients, y=erxy=e^{rx} always turns the equation into an algebraic one:

    y=erxy=r2erxy=e^{rx}\Rightarrow y''=r^2e^{rx}

  2. Form the characteristic equation. Substituting and factoring out erxe^{rx}, which is never zero:

    r2erx+4erx=erx(r2+4)=0r2+4=0r^2e^{rx}+4e^{rx}=e^{rx}\left(r^2+4\right)=0\quad\Longrightarrow\quad r^2+4=0

  3. Solve for rr.

    r2=4r=±2ir^2=-4\quad\Longrightarrow\quad r=\pm 2i

    Purely imaginary roots signal pure oscillation with no growth or decay.

  4. Convert the complex exponentials to real form. For roots r=α±βir=\alpha\pm\beta i the real general solution is eαx(C1cosβx+C2sinβx)e^{\alpha x}\left(C_1\cos\beta x+C_2\sin\beta x\right). Here α=0\alpha=0 and β=2\beta=2, so the exponential envelope is e0=1e^{0}=1:

    y(x)=C1cos2x+C2sin2xy(x)=C_1\cos 2x+C_2\sin 2x

  5. Verify by direct substitution. With y=cos2xy=\cos 2x: y=4cos2xy''=-4\cos 2x, so y+4y=0y''+4y=0 \checkmark. With y=sin2xy=\sin 2x: y=4sin2xy''=-4\sin 2x, again 00 \checkmark. Because the equation is linear, any combination of the two also works. Physically this is simple harmonic motion of angular frequency ω=2\omega=2 and period π\pi.

Answer

y(x)=C1cos2x+C2sin2xy(x)=C_1\cos 2x+C_2\sin 2x

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