Skip to content
    Calculus

    Second-Order Homogeneous ODEs: Characteristic Equation

    Why does a car bounce once and settle, while a guitar string rings for seconds? Both follow ay'' + by' + cy = 0. One clever guess, y = eʳˣ, turns this calculus problem into a quadratic equation. This guide shows how, and what each type of root means.

    Math Solver Academic Editorial Board5 min read

    Key takeaways

    • Guess y = eʳˣ to get the characteristic equation ar² + br + c = 0.
    • Two real roots: y = C₁e^(r₁x) + C₂e^(r₂x).
    • Repeated root: y = (C₁ + C₂x)e^(rx). Don't forget the extra x.
    • Complex roots α ± βi: y = e^(αx)[C₁cos(βx) + C₂sin(βx)], a fading or growing wave.
    • This calculator always uses y(0) = 1 and y'(0) = 0.
    In this guide
    1. 01What is a second-order homogeneous ODE?
    2. 02Why does this equation matter?
    3. 03The formula
    4. 04How to solve it step by step
    5. 05Common mistakes to avoid
    6. 06Tips and tricks
    7. 07Where you'll use it in real life
    8. 08Quick summary
    9. 09Worked example
    10. 10Frequently asked questions

    What is a second-order homogeneous ODE?

    It is an equation with the second derivative y'' (acceleration), the first derivative y' (speed) and y itself, all adding up to zero. 'Homogeneous' means the right side is 0: there is no outside push.

    Picture a weight on a spring. y is how far it is from its resting place. The spring pulls it back (the c·y term), friction slows it down (the b·y' term), and its mass resists changes in speed (the a·y'' term). Depending on the numbers, it either wobbles back and forth while fading, or slowly creeps back to rest.

    Why does this equation matter?

    Anything that can vibrate follows this equation: springs, pendulums, bridges, buildings in wind, guitar strings and electric circuits. The three kinds of roots match three real behaviours: slow settling, the fastest settling without overshoot, and bouncing.

    Car makers tune shock absorbers using exactly this maths. Too little damping and the car bounces; too much and the ride feels stiff.

    Discriminant b² − 4acRootsWhat you see
    PositiveTwo real rootsSlow return, no wobble (overdamped)
    ZeroOne repeated rootFastest return with no wobble (critically damped)
    NegativeComplex pair α ± βiWobbles that fade or grow (underdamped)

    The formula

    a·y'' + b·y' + c·y = 0 → a·r² + b·r + c = 0
    SymbolWhat it meansExample
    aCoefficient of y'' (like mass). Cannot be 01
    bCoefficient of y' (like friction)2
    cCoefficient of y (like spring stiffness)5
    rA root of the characteristic equation−1 ± 2i
    xWhere you want y, often time1

    This calculator always uses the starting conditions y(0) = 1 and y'(0) = 0: start 1 unit away, at rest. It finds C₁ and C₂ for you and gives y at your chosen x. Angles in cos and sin are in radians.

    How to solve it step by step

    1. 1Write the characteristic equation. Replace y'' with r², y' with r and y with 1: ar² + br + c = 0.
    2. 2Find the roots. Use the quadratic formula and check the discriminant.
    3. 3Pick the matching general solution. Two real roots, a repeated root or a complex pair (see the takeaways).
    4. 4Use the starting values. Put y(0) and y'(0) into the solution to find C₁ and C₂.
    5. 5Evaluate. Put in x to get the value of y.

    Now enter your own a, b, c and x below. The calculator picks the right case and shows every constant.

    Try it yourself

    Pre-filled with the example — change any value.

    🧮
    Calculus
    University

    2nd-Order Homogeneous ODE

    Solve ay''+by'+cy=0 with y(0)=1, y'(0)=0. Evaluate at x.

    ay'' + by' + cy = 0 → characteristic equation: ar² + br + c = 0

    f'(x) slope
    Tangent Line dy/dx
    0.120
    -920
    120
    0.120

    💡 Example

    Reference
    Inputs:a=1, b=-3, c=2, x=1
    Result:-1.9525
    Open the full 2nd-Order Homogeneous ODE calculator

    Common mistakes to avoid

    • Stopping at e^((α+βi)x). Turn complex roots into e^(αx)cos(βx) and e^(αx)sin(βx) for a real answer.
    • Using degrees in cos and sin. The solution uses radians.
    • Expecting other starting values. This calculator fixes y(0) = 1 and y'(0) = 0.
    • Dividing by a = 0. Then it isn't second-order at all.

    Tips and tricks

    • No friction (b = 0): y'' + y = 0 gives y = cos x with these starting values, a wave that never fades.
    • Repeated root check: y'' + 2y' + y = 0 has r = −1 twice, so y = (1 + x)e⁻ˣ, and y(1) = 2/e ≈ 0.7358.
    • First-order instead? Use the first-order linear ODE calculator.

    Where you'll use it in real life

    • Cars: tuning springs and shock absorbers for a smooth ride.
    • Electronics: RLC circuits in radios and filters.
    • Buildings and bridges: how structures sway and settle after wind or earthquakes.
    • Music: vibrating strings and drum skins.

    Quick summary

    Guess y = eʳˣ to turn ay'' + by' + cy = 0 into ar² + br + c = 0. The discriminant tells you whether the solution creeps, settles fastest or wobbles, and the starting values fix the constants. Use the calculator above to solve any case starting from y(0) = 1, y'(0) = 0.

    Worked example

    A car's spring and shock absorber follow y'' + 2y' + 5y = 0, where y is the bounce height. The wheel is pushed down 1 unit and released at rest. Where is it after 1 second? Use a = 1, b = 2, c = 5 and x = 1.

    1. 01ODE: 1y'' + 2y' + 5y = 0
    2. 02Characteristic equation: 1r² + 2r + 5 = 0
    3. 03Discriminant = 2² − 4(1)(5) = -16
    4. 04Complex roots: r = -1 ± 2i
    5. 05General solution: y = e^(-1x)[C₁cos(2x) + C₂sin(2x)]
    6. 06With y(0)=1, y'(0)=0: C₁ = 1, C₂ = 0.5
    7. 07y(1) = 0.0142

    These numbers are pre-filled in the calculator above.

    Frequently asked questions

    What does the discriminant tell me in a second-order ODE?

    If b² − 4ac > 0, the solution is a mix of two exponentials (no wobble). If it equals 0, there is a repeated root. If it is negative, the solution oscillates like a wave.

    How do I solve y'' − 3y' + 2y = 0?

    The characteristic equation r² − 3r + 2 = 0 factors as (r − 1)(r − 2) = 0, so y = C₁eˣ + C₂e²ˣ. With y(0) = 1 and y'(0) = 0 you get C₁ = 2 and C₂ = −1.

    What makes an oscillation die out?

    With complex roots α ± βi, the factor e^(αx) controls size. If α is negative (which happens when b/a > 0), the wobble fades over time.

    Can I change the starting values in the calculator?

    No. It always uses y(0) = 1 and y'(0) = 0. For other starting values, use the same general solution and solve for C₁ and C₂ by hand.

    #Calculus#University#2nd-Order Homogeneous ODE
    Updated

    Keep reading

    Sponsored ToolsAd

    More tools on Ytools →
    Calcu.click — 25+ Free Smart Calculators preview

    Calcu.click — 25+ Free Smart Calculators

    Brand new calculation platform with 0ms reactive math, 100% client-side privacy, and dedicated subdomains. Fast calculators for EMI, SIP, Mortgage, Income Tax, BMI, Age, Percentage, and more.

    25+ CalculatorsFinanceHealth0ms Real-TimeFree
    Keyboard Arena preview

    Keyboard Arena

    Master touch typing with real-time WPM speed tests, mechanical switch audio, A-Z finger biomechanics drills, 40+ structured lessons, and competitive arcade games.

    Typing TestWPMTouch Typing
    Flutter Log Explorer preview

    Flutter Log Explorer

    Real-time structured log viewer and search explorer for Flutter & Dart. Zero-config capture from Debug Adapter (DAP) & Dart VM Service with smart classification and filters.

    FlutterDartVS Code ExtensionOpen VSX