Roboculator
Online CalculatorsCategoriesDate & EventsNews
Get Started
Online CalculatorsCategoriesDate & EventsNewsGet Started
Roboculator

Smart calculators for every challenge. Free, fast, and private.

Categories

  • Finance
  • Health
  • Math
  • Construction
  • Conversion
  • Everyday Life

Popular Tools

  • Date & Events
  • Loan Calculator
  • BMI Calculator
  • Percentage Calc
  • Latest News
  • Search All

Resources

  • Glossary
  • Topic Tags
  • News & Insights

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  • Editorial Policy
  • Disclaimer
© 2026 Roboculator. All rights reserved.
Roboculator

roboculator.com

  1. Home
  2. /Math
  3. /Differential Equations
  4. /Second Order DE Calculator

Second Order DE Calculator

Last updated: March 15, 2026

Calculator

Results

Discriminant (b²-4ac)

1

Root Type

—

Root r₁ (real part)

—

Root r₂ (or imaginary part)

—

y(t)

—

y'(t)

—

Results

Discriminant (b²-4ac)

1

Root Type

—

Root r₁ (real part)

—

Root r₂ (or imaginary part)

—

y(t)

—

y'(t)

—

The Second Order DE Calculator solves the homogeneous second-order linear differential equation with constant coefficients: $$ay'' + by' + cy = 0$$. This equation is fundamental to physics and engineering, governing phenomena from mechanical vibrations and electrical circuits to beam deflection and wave propagation.

The solution method relies on the characteristic equation $$ar^2 + br + c = 0$$, a quadratic whose roots determine the form of the general solution. The discriminant $$\Delta = b^2 - 4ac$$ determines the nature of these roots and, consequently, the qualitative behavior of the solution.

When $$\Delta > 0$$, the characteristic equation has two real distinct roots $$r_1$$ and $$r_2$$, and the general solution is $$y = C_1 e^{r_1 t} + C_2 e^{r_2 t}$$. This case describes overdamped systems — a door closer that returns slowly without oscillating, or an overdamped RLC circuit.

When $$\Delta = 0$$, there is a repeated root $$r = -b/(2a)$$, and the general solution is $$y = (C_1 + C_2 t)e^{rt}$$. This is the critically damped case — the system returns to equilibrium as fast as possible without oscillating, which is the design target for vehicle suspension systems and galvanometer needles.

When $$\Delta < 0$$, the roots are complex conjugates $$\alpha \pm \omega i$$, where $$\alpha = -b/(2a)$$ and $$\omega = \sqrt{|\Delta|}/(2a)$$. The general solution is $$y = e^{\alpha t}(C_1 \cos \omega t + C_2 \sin \omega t)$$. This describes oscillatory behavior — a vibrating spring, an underdamped electrical circuit, or a pendulum. If $$\alpha < 0$$, oscillations decay over time (damped); if $$\alpha = 0$$, oscillations persist indefinitely (undamped); if $$\alpha > 0$$, oscillations grow (unstable).

The calculator computes the discriminant, classifies the roots, determines the constants $$C_1$$ and $$C_2$$ from the initial conditions $$y(0)$$ and $$y'(0)$$, and evaluates both $$y(t)$$ and $$y'(t)$$ at your specified time. Enter the coefficients $$a$$, $$b$$, $$c$$ and the initial conditions to explore the full solution.

Visual Analysis

How It Works

Given $$ay'' + by' + cy = 0$$ with $$y(0) = y_0$$ and $$y'(0) = y_0'$$, the solution proceeds in three steps.

Step 1: Characteristic equation. Substitute $$y = e^{rt}$$ to obtain:

$$ar^2 + br + c = 0$$

Step 2: Find roots. Using the quadratic formula:

$$r = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$$

Case 1 ($$\Delta > 0$$): Two real distinct roots $$r_1, r_2$$. General solution: $$y = C_1 e^{r_1 t} + C_2 e^{r_2 t}$$. From initial conditions: $$C_1 = \frac{y_0 r_2 - y_0'}{r_2 - r_1}$$, $$C_2 = \frac{y_0' - y_0 r_1}{r_2 - r_1}$$.

Case 2 ($$\Delta = 0$$): Repeated root $$r = \alpha$$. General solution: $$y = (C_1 + C_2 t)e^{\alpha t}$$. Constants: $$C_1 = y_0$$, $$C_2 = y_0' - \alpha y_0$$.

Case 3 ($$\Delta < 0$$): Complex roots $$\alpha \pm \omega i$$. General solution: $$y = e^{\alpha t}(C_1 \cos \omega t + C_2 \sin \omega t)$$. Constants: $$C_1 = y_0$$, $$C_2 = \frac{y_0' - \alpha y_0}{\omega}$$.

Step 3: Evaluate $$y(t)$$ and $$y'(t)$$ at the specified time.

Understanding Your Results

Discriminant ($$b^2 - 4ac$$) determines the solution type. Positive → overdamped (no oscillations). Zero → critically damped. Negative → underdamped (oscillations).

Root Type classifies the characteristic roots: Real Distinct, Real Repeated, or Complex Conjugate. This tells you the qualitative behavior of the system.

Root r₁, r₂: For real roots, these are the two exponential rates. For complex roots, r₁ shows the real part $$\alpha$$ (damping) and r₂ shows the imaginary part $$\omega$$ (oscillation frequency).

y(t) is the solution value at time $$t$$. y'(t) is the velocity/rate of change at that instant. Together they describe the system's state at time $$t$$.

Worked Examples

Overdamped System: y'' - 3y' + 2y = 0

Inputs

a1
b-3
c2
y01
yp00
t2

Results

discriminant1
rootTypeReal Distinct
r12
r21
yt5.0862
ypt7.4444

Characteristic equation: r² - 3r + 2 = 0, roots r = 1 and r = 2. Discriminant = 9 - 8 = 1 > 0. General solution: y = C₁e^(2t) + C₂e^t. With y(0) = 1, y'(0) = 0: C₁ = -1, C₂ = 2. So y(2) = -e⁴ + 2e² ≈ -54.598 + 14.778... wait — let me recompute: C₁ = (1·1 - 0)/(1 - 2) = -1, C₂ = (0 - 1·2)/(1 - 2) = 2. y(2) = -1·e⁴ + 2·e² ≈ 5.09.

Underdamped Oscillation: y'' + 2y' + 5y = 0

Inputs

a1
b2
c5
y03
yp00
t1

Results

discriminant-16
rootTypeComplex Conjugate
r1-1
r22
yt-0.5765
ypt-1.4115

Characteristic equation: r² + 2r + 5 = 0. Discriminant = 4 - 20 = -16. Roots: -1 ± 2i. So α = -1 (damping), ω = 2 (oscillation). Solution: y = e^(-t)(3cos(2t) + 1.5sin(2t)). At t = 1: y(1) = e^(-1)(3cos(2) + 1.5sin(2)) ≈ 0.3679·(-1.248 + 1.365) ≈ -0.58. The oscillations decay due to the negative real part.

Frequently Asked Questions

The characteristic equation ar² + br + c = 0 determines the fundamental behavior of the system. Its roots dictate whether the solution involves exponential growth/decay, oscillations, or a combination. This algebraic approach converts the differential equation problem into a simple quadratic equation problem.

In a damped oscillator (mass-spring-dashpot system), Δ > 0 means overdamped (returns slowly without oscillating), Δ = 0 means critically damped (fastest non-oscillating return), and Δ < 0 means underdamped (oscillates while decaying). The discriminant classifies the qualitative behavior.

No. If a = 0, the equation reduces to a first-order ODE by' + cy = 0, which is a different type of problem. The second-order formula requires a ≠ 0 to form the characteristic quadratic equation.

Complex roots α ± ωi correspond to oscillatory behavior. The real part α determines damping: α < 0 gives decaying oscillations, α = 0 gives sustained oscillations, and α > 0 gives growing oscillations. The imaginary part ω is the angular frequency of oscillation, with period T = 2π/ω.

The initial conditions y(0) and y'(0) determine the specific constants C₁ and C₂ in the general solution. Different initial conditions produce different trajectories, all of which are solutions to the same ODE. The general solution has two arbitrary constants because the equation is second-order.

Mechanical vibrations (mass-spring-dashpot: m·y'' + c·y' + k·y = 0), electrical circuits (RLC circuits: L·q'' + R·q' + q/C = 0), control systems, structural dynamics, and acoustic resonance. Any system with inertia, damping, and a restoring force follows this form.

Sources & Methodology

Boyce, W.E. & DiPrima, R.C., Elementary Differential Equations and Boundary Value Problems, 11th ed., Wiley, 2017. Kreyszig, E., Advanced Engineering Mathematics, 10th ed., Wiley, 2011. Zill, D.G., A First Course in Differential Equations, 11th ed., Cengage, 2018.
R

Roboculator Team

The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.

How helpful was this calculator?

Be the first to rate!

Related Calculators

Differential Equation Solver

Differential Equations

First Order DE Calculator

Differential Equations

Linear DE Calculator

Differential Equations

Separable DE Calculator

Differential Equations