§ 01What Is a Differential Equation?
A differential equation is an equation that contains a function and one or more of its derivatives. Instead of solving for a number, you solve for an entire function.
In ordinary algebra, an equation like 3x + 1 = 7 has a number as its solution: x = 2. A differential equation works differently: its solution is a whole function, not a number. For example:
The solution is any function whose derivative equals 2x. From integration you know that is y = x² + C for any constant C. That family of parabolas, one for each value of C, is the general solution. If you are also told that y(0) = 3, that pins down C = 3, giving the particular solution y = x² + 3.
This might seem like a small step beyond integration, but differential equations become vastly richer when the derivative appears alongside y itself, when the rate of change of a quantity depends on the quantity's current value. That situation describes almost every natural process: compound interest, radioactive decay, population growth, heat transfer, electrical circuits, mechanical vibrations, and epidemics.
Order and Linearity
The order of a differential equation is the order of the highest derivative it contains. An equation involving y′ (but not y″ or higher) is first-order; one involving y″ is second-order.
A differential equation is linear if y and all its derivatives appear only to the first power and are not multiplied together. Linear ODEs have solution methods that work systematically, they are the primary focus of a first course. Nonlinear ODEs are generally far harder and often have no closed-form solution.
§ 02How to Work Through This Section
Differential equations build on each other. The pathway below shows the natural order, follow it from left to right for the smoothest progression.
Recommended Study Pathway
Prerequisites: solid integration skills, especially integration by parts and partial fractions. If you're rusty, visit the Integration hub first.
§ 03All 10 Topics
Pick any topic below to get started. Each page covers the theory, several worked examples, and a 10-question quiz.
§ 04Which Method Should I Use?
Not sure which technique applies to your equation? Answer two questions and we'll point you to the right method.
ODE Method Selector
Select the order and structure of your equation:
§ 05The Big Ideas — A Conceptual Map
Differential equations can feel like a bag of disconnected tricks. Here is the underlying logic that ties all the methods together.
General + Particular = Complete Solution
For any linear ODE, the full solution has exactly two parts. The homogeneous solution yh solves the equation with zero on the right-hand side, it describes the system's natural behaviour with no external driving force. The particular solution yp is any single function that satisfies the full equation with the driving term present. Add them:
The constants in yh (there will be as many as the order of the ODE) are determined by initial conditions. This structure is not a trick, it follows directly from the linearity of the operator: if L[yh] = 0 and L[yp] = g, then L[yh + yp] = 0 + g = g.
Why Exponentials Dominate
The function erx is special because differentiating it just multiplies it by r. So when you substitute y = erx into a constant-coefficient linear ODE, every term produces a factor of erx which cancels, leaving a purely algebraic equation in r, the characteristic equation. This is why exponentials appear in the solutions of virtually every linear ODE with constant coefficients.
Complex Roots Give Oscillations
When the characteristic equation has complex roots α ± βi, the exponential solutions are e(α+βi)x and e(α−βi)x. By Euler's formula these combine into real-valued functions eαxcos(βx) and eαxsin(βx), oscillations that grow if α > 0, decay if α < 0, and stay constant if α = 0. This is the mathematics behind damped and undamped vibrations.
Δ > 0 (overdamped) — two distinct real roots, solution decays without oscillating.
Δ = 0 (critically damped) — one repeated root, solution decays as (C₁ + C₂x)erx.
Δ < 0 (underdamped) — complex roots, solution oscillates with exponential envelope.
Laplace Transforms: An Algebraic Bypass
The Laplace transform converts a function of time f(t) into a function of a complex variable s. The crucial fact is that the transform of a derivative is an algebraic expression:
ℒ{y″} = s²Y(s) − sy(0) − y′(0)
This converts a differential equation into an algebraic equation in Y(s). Solve for Y(s), then invert back to the time domain using a table of transforms and partial fractions. The Laplace method is especially powerful for initial value problems and for equations with discontinuous or impulsive forcing functions.
Real-World Modelling
Before applying any technique, building a good model matters as much as the algebra. Three classic first-order models appear constantly:
§ 06Are You Ready? Prerequisites
Differential equations draw on several earlier topics. Check that you're confident with each before starting.