On this page
A first-order partial differential equation such as u_t + c u_x = 0 looks harder than an ODE because u depends on two variables, position x and time t. The method of characteristics finds paths in the x–t plane along which the PDE collapses into ordinary differential equations you already know how to solve.
What is the method of characteristics?
Start from the chain rule. If you walk along a path x(t) and watch u, the rate of change you see is du/dt = u_t + (dx/dt) u_x. Compare that with u_t + c u_x = 0. If you choose to walk at dx/dt = c, the left side of the PDE is exactly du/dt, so du/dt = 0. The PDE has become two ODEs:
dx/dt = c, so x = x₀ + ct, where x₀ is where the path starts at t = 0.
du/dt = 0, so u = f(x₀), the starting value carried unchanged.
Eliminate x₀ = x − ct and you get u(x, t) = f(x − ct). Each initial value rides along its own line x − ct = constant: a characteristic.
How does a bump move under u_t + c u_x = 0?
Take c = 2 and the initial bump f(x) = e^(−x²), peaked at x = 0. The solution is u(x, t) = e^(−(x − 2t)²).
At t = 3 the peak sits at x = 6, with exactly the same shape.
The value at x = 5, t = 3 is e^(−1) ≈ 0.368, the same value that started at x = −1. That point has moved 6 units in 3 time units.
Check by substituting: u_t = 4(x − 2t)u and u_x = −2(x − 2t)u, so u_t + 2u_x = 0.
Nothing spreads or steepens; the picture slides right at speed c.
What changes when the speed depends on x?
Now try u_t + x u_x = 0. The same chain-rule match gives a speed that depends on where you are:
dx/dt = x, so x = x₀eᵗ. The characteristics are exponential curves, not straight lines.
du/dt = 0, so u = f(x₀).
Eliminate x₀ = xe⁻ᵗ to get u(x, t) = f(xe⁻ᵗ).
With f(x) = e^(−x²), u = e^(−x²e^(−2t)). The peak stays at height 1 at x = 0, because the characteristic from x₀ = 0 never moves. The half-height point is at x = √(ln 2) eᵗ ≈ 0.83eᵗ: about 0.83 at t = 0, 2.26 at t = 1 and 6.15 at t = 2. The characteristics fan apart, so the bump spreads but stays smooth forever.
Why do crossing characteristics make shocks in traffic flow?
Lighthill and Whitham's 1955 paper on kinematic waves, and independently Richards' 1956 paper Shock Waves on the Highway, treated traffic as a continuous density ρ of cars instead of individual vehicles. Lighthill and Whitham predicted that drivers entering a denser region slow down rather suddenly, at a shock, but speed up only gradually as they leave it.
Cars are conserved, so ρ_t + q_x = 0, with flow q = ρv. By the chain rule, ρ_t + q′(ρ) ρ_x = 0: our first equation, except the speed c = q′(ρ) now depends on the solution.
A worked example with assumed numbers: let v = v_max(1 − ρ/ρ_max), with v_max = 90 km/h and ρ_max = 150 cars per km. Then c(ρ) = v_max(1 − 2ρ/ρ_max). Light traffic at 30 cars per km arrives behind a stopped queue (150 cars per km) at a red light:
Cars upstream drive at 90 × 0.8 = 72 km/h.
Characteristics upstream travel at 90 × 0.6 = 54 km/h.
Characteristics in the queue travel at 90 × (1 − 2) = −90 km/h, backwards.
Lines from behind run into lines from the queue. Where they cross, ρ would need two values at once, so a jump forms: a shock. Counting cars in and out gives its speed, s = (q_queue − q_upstream)/(ρ_queue − ρ_upstream). Upstream flow is 90 × 30 × 0.8 = 2160 cars per hour and the queue's is 0, so s = −2160/120 = −18 km/h. The back of the queue grows backwards at 18 km/h, as the diagram at the top of this post shows. The same backward-moving front explains why a phantom traffic jam travels backwards.
How should you practise the method of characteristics?
Use the same five steps on every first-order equation:
Write it as u_t + b(x, t, u) u_x = r and read off dx/dt = b.
Solve for the curve and name its constant, such as x₀.
Solve du/dt = r along that curve.
Eliminate x₀, then substitute back into the PDE to check.
Sketch the characteristics. If they cross, expect a shock and find its speed from conservation.
The heat equation is second order and smooths instead of steepening; compare the finite difference method for the heat equation, worked by hand. To revise conservation laws or the chain rule behind all this, the Fermi Concept Library covers every concept in physics, chemistry, biology, mathematics and computing.
Try the five steps on u_t + 3u_x = 0 with u(x, 0) = sin x, then sketch where its characteristics go.



