Differential Equations

Step-by-step guide to solving ODEs using Laplace transform methods with worked examples.

About Differential Equations

Linear differential equations with constant coefficients, such as y″ + 3y′ + 2y = f(t), describe circuits, springs and dampers, and most control systems. The Laplace transform solves them in a fixed sequence of steps, and it builds the initial conditions in from the start instead of fitting constants at the end.

The method has four steps. First, transform both sides, using L{y′} = sY(s) − y(0) and L{y″} = s²Y(s) − s·y(0) − y′(0). Second, solve the resulting algebraic equation for Y(s). Third, split Y(s) into partial fractions. Fourth, invert each term with the Laplace table to get y(t). The roots of the characteristic polynomial (the polynomial in s that multiplies Y(s)) decide the form of the answer: real roots give exponentials, complex roots give damped oscillations and a repeated root adds a factor of t.

This topic draws on the Laplace transform articles, so the reading list below includes them: transforms of derivatives, partial fractions and the inverse transform, step inputs that switch on at t = a, and second-order step responses, where the damping ratio ζ and natural frequency ωₙ come straight from the characteristic equation.

Which Differential Equations This Topic Covers

The articles here focus on linear ordinary differential equations (ODEs) with constant coefficients, such as y″ + 5y′ + 6y = f(t). These model RC and RLC circuits, springs and dampers, thermal systems and most control loops. The order is the highest derivative that appears. The equation is linear when y and its derivatives appear only to the first power and are not multiplied together. It is homogeneous when the right-hand side f(t) is zero.

Key Formulas

Methods and When to Use Each

Separation of variables and integrating factors handle first-order equations. The characteristic equation handles homogeneous constant-coefficient equations of any order, and undetermined coefficients or variation of parameters add a particular solution for the forcing term. The Laplace transform does all of this in one procedure and applies the initial conditions automatically, which makes it the preferred method when the input is a step, impulse, delayed or piecewise function, or when the equation is part of a larger system described by transfer functions.

The Characteristic Equation

For ay″ + by′ + cy = 0, try y = e^(rt) to get ar² + br + c = 0. Two distinct real roots give y = C₁e^(r₁t) + C₂e^(r₂t). A repeated root gives y = (C₁ + C₂t)e^(rt). Complex roots α ± jβ give y = e^(αt)(C₁cos βt + C₂sin βt). In the Laplace method, the same polynomial appears as the denominator of Y(s), and its roots are the poles. Example: y″ + 5y′ + 6y = 0 has roots −2 and −3. With y(0) = 1 and y′(0) = 0, the solution is y(t) = 3e^(−2t) − 2e^(−3t).

Stability and the Physical Meaning of the Roots

If every root has a negative real part, all terms decay and the system returns to rest: it is stable. A root with a positive real part produces growth without bound. Complex roots mean oscillation, at a frequency set by the imaginary part and with a decay rate set by the real part. For second-order systems written as y″ + 2ζωn·y′ + ωn²·y = ωn²·u, the damping ratio ζ and natural frequency ωn summarise all of this: ζ > 1 is overdamped, ζ = 1 is critically damped and 0 < ζ < 1 is underdamped.

A Reliable Laplace Workflow

1. Write the equation and list the initial conditions. 2. Transform every term, using L{y′} = sY − y(0) and L{y″} = s²Y − s·y(0) − y′(0). 3. Solve for Y(s). 4. Factor the denominator and look at the poles to predict the form of the answer. 5. Split Y(s) into partial fractions. 6. Invert with a table, using the shifting theorems where needed. 7. Check by substituting y(t) back into the equation and the initial conditions, and with the initial and final value theorems.

Differential Equations: Frequently Asked Questions

The Laplace transform is usually the most efficient for initial value problems, especially with step, impulse or piecewise inputs, because it applies the initial conditions automatically. The characteristic equation is quickest for simple homogeneous equations.

All Differential Equations Topics (7 articles)

Try the LapCalc calculator

Exact Laplace transforms with every step, free, plus free calculators for partial fractions, ODEs, circuits, control and Fourier series. Premium adds the inverse Laplace calculator and AI explanations.

Open LapCalc