Stuck on this? Solve it with AI
Calculus · real student question

Find the general solution of a*y'' + b*y = 0, where a and b are constants and a is not zero.

Question

Find the general solution of

ay′′+by=0ay'' + by = 0

where a≠0a \ne 0 and bb are real constants.

Step-by-step solution

  1. Normalise the equation. Dividing by aa (legitimate since a≠0a \ne 0) gives

    y′′+bay=0y'' + \frac{b}{a}y = 0

    Only the single ratio ba\tfrac{b}{a} matters — the individual values of aa and bb never appear again.

  2. Form the characteristic equation. Substituting y=erxy = e^{rx} and cancelling the non-zero erxe^{rx}:

    r2+ba=0⟹r2=−bar^2 + \frac{b}{a} = 0 \quad\Longrightarrow\quad r^2 = -\frac{b}{a}

    There is no linear term in rr because the equation has no y′y' term — this is the undamped case, so the roots are either purely imaginary or purely real, never both.

  3. Case b/a > 0: purely imaginary roots. Then r=±ib/ar = \pm i\sqrt{b/a} and

    y=C1cos⁡ ⁣(ba x)+C2sin⁡ ⁣(ba x)y = C_1\cos\!\left(\sqrt{\tfrac{b}{a}}\,x\right) + C_2\sin\!\left(\sqrt{\tfrac{b}{a}}\,x\right)

    This is simple harmonic motion with angular frequency ω=b/a\omega = \sqrt{b/a} — the mass-spring equation my¨+ky=0m\ddot y + ky = 0 is exactly this case.

  4. Case b/a < 0: two real roots. Then r=±−b/ar = \pm\sqrt{-b/a} and

    y=C1e−b/a x+C2e−−b/a xy = C_1e^{\sqrt{-b/a}\,x} + C_2e^{-\sqrt{-b/a}\,x}

    One solution grows and one decays; equivalently y=Acosh⁡ ⁣(−b/a x)+Bsinh⁡ ⁣(−b/a x)y = A\cosh\!\left(\sqrt{-b/a}\,x\right) + B\sinh\!\left(\sqrt{-b/a}\,x\right).

  5. Case b = 0: a double root at zero. The equation collapses to y′′=0y'' = 0, whose solutions are the straight lines

    y=C1x+C2y = C_1x + C_2

    This is the r=0r = 0 repeated-root case, with e0x=1e^{0x} = 1 and xe0x=xxe^{0x} = x as the two independent solutions.

  6. Verify one case. With a=2a = 2, b=8b = 8 we get ba=4\tfrac{b}{a} = 4 and y=C1cos⁡2x+C2sin⁡2xy = C_1\cos 2x + C_2\sin 2x. Substituting y=cos⁡2xy = \cos 2x: y′′=−4cos⁡2xy'' = -4\cos 2x, so 2(−4cos⁡2x)+8cos⁡2x=02(-4\cos 2x) + 8\cos 2x = 0. Correct.

Answer

ba>0: y=C1cos⁡ ⁣(bax)+C2sin⁡ ⁣(bax);ba<0: y=C1e−b/a x+C2e−−b/a x;b=0: y=C1x+C2\tfrac{b}{a}>0:\ y=C_1\cos\!\left(\sqrt{\tfrac{b}{a}}x\right)+C_2\sin\!\left(\sqrt{\tfrac{b}{a}}x\right);\quad \tfrac{b}{a}<0:\ y=C_1e^{\sqrt{-b/a}\,x}+C_2e^{-\sqrt{-b/a}\,x};\quad b=0:\ y=C_1x+C_2

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