Calculus · real student question

Find the general solution of the differential equation y'' - a*y' + b*y = 0, where a and b are constants.

Question

Find the general solution of

yay+by=0y'' - ay' + by = 0

where aa and bb are real constants.

Step-by-step solution

  1. Derive the characteristic equation. Trying y=erxy = e^{rx} gives y=rerxy' = re^{rx} and y=r2erxy'' = r^2e^{rx}, so

    erx(r2ar+b)=0e^{rx}\left(r^2 - ar + b\right) = 0

    Since erxe^{rx} is never zero, the exponent must satisfy

    r2ar+b=0r^2 - ar + b = 0

    Note the sign: the middle coefficient is a-a, so the characteristic equation carries ar-ar, not +ar+ar.

  2. Solve for r and identify the discriminant.

    r=a±a24b2r = \frac{a \pm \sqrt{a^2 - 4b}}{2}

    Everything now depends on the sign of D=a24bD = a^2 - 4b, which is why the answer necessarily comes in three cases.

  3. Case D > 0: two distinct real roots. With r1,2=a±a24b2r_{1,2} = \tfrac{a \pm \sqrt{a^2-4b}}{2},

    y=C1er1x+C2er2xy = C_1e^{r_1x} + C_2e^{r_2x}

    The two exponentials are independent because r1r2r_1 \ne r_2.

  4. Case D = 0: one repeated root. Then r=a2r = \tfrac{a}{2}, and erxe^{rx} alone gives only a one-parameter family. The second independent solution is xerxxe^{rx}:

    y=(C1+C2x)eax/2y = \left(C_1 + C_2x\right)e^{ax/2}

  5. Case D < 0: complex conjugate roots. Writing r=a2±i4ba22r = \tfrac{a}{2} \pm i\tfrac{\sqrt{4b-a^2}}{2} and taking real and imaginary parts:

    y=eax/2(C1cos ⁣(4ba22x)+C2sin ⁣(4ba22x))y = e^{ax/2}\left(C_1\cos\!\left(\tfrac{\sqrt{4b-a^2}}{2}x\right) + C_2\sin\!\left(\tfrac{\sqrt{4b-a^2}}{2}x\right)\right)

    The real part a2\tfrac{a}{2} controls growth or decay; the imaginary part sets the frequency.

  6. Check a concrete instance. Take a=3a = 3, b=2b = 2: then D=98=1>0D = 9 - 8 = 1 > 0, roots r=2r = 2 and r=1r = 1, and y=C1e2x+C2exy = C_1e^{2x} + C_2e^{x}. Substituting y=e2xy = e^{2x}: 4e2x3(2e2x)+2e2x=04e^{2x} - 3(2e^{2x}) + 2e^{2x} = 0. Correct. Take a=0a = 0, b=4b = 4: D=16<0D = -16 < 0, giving y=C1cos2x+C2sin2xy = C_1\cos 2x + C_2\sin 2x, the familiar solution of y+4y=0y'' + 4y = 0.

Answer

D=a24b>0: y=C1er1x+C2er2x;D=0: y=(C1+C2x)eax/2;D<0: y=eax/2(C1cos4ba22x+C2sin4ba22x)D=a^2-4b>0:\ y=C_1e^{r_1x}+C_2e^{r_2x};\quad D=0:\ y=(C_1+C_2x)e^{ax/2};\quad D<0:\ y=e^{ax/2}\left(C_1\cos\tfrac{\sqrt{4b-a^2}}{2}x+C_2\sin\tfrac{\sqrt{4b-a^2}}{2}x\right)

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