TL;DR
A partial differential equation (PDE) is a rule that links an unknown function of several variables, such as temperature at each point in a rod at each moment, to its partial derivatives. The rule says how fast the function changes in one variable while the others are held fixed, and the solution is the function that obeys the rule everywhere.
PDEs describe almost every physical process that spreads, vibrates or flows through space over time. Most of them cannot be solved with a formula, so the methods for finding solutions are as important as the equations themselves.
Where you'll see it: in the heat equation that governs how a hot pan cools, the wave equation for a guitar string, the Navier–Stokes equations for water and air, and the Black–Scholes equation for option prices.
Intuition
Change in time depends on change in space
Put a warm metal rod on a cold table. Heat flows from hot regions to cold ones, and the rate at which a point warms or cools depends on how its temperature compares with its neighbours. A point that is hotter than its surroundings loses heat. A point that is colder gains it. The rule is local: each point responds to the shape of the temperature around it.
An ordinary differential equation (ODE) captures a rule like this for one variable: the rate of change of a quantity depends on its current value. A rod is a continuum, though, so temperature depends on position as well as time . The rate of change over time now depends on how the temperature bends over space. That is a PDE: a relation between and its derivatives in both and .
The key ingredient is curvature in space. A temperature profile that is peaked, like a hill, loses heat at its top and gains it in its valleys, so the hill flattens. The second derivative in space measures that curvature, and the equation says the hill flattens at a rate proportional to it.
- t = 0
- t = 0.1
Why we study them
Most laws of nature are stated as rates: how fast mass accumulates, how fast momentum changes, how fast energy moves. When the quantity lives in space, those rates are partial derivatives, and the law becomes a PDE. Knowing the equation lets an engineer predict the temperature in a turbine blade or the sound from a drum without building either one.
The math
Definition and notation
A PDE is an equation that involves an unknown function of several independent variables, say , together with some of its partial derivatives. The order of the PDE is the highest derivative that appears.
A few conventions help when reading PDEs. We write , and . The equation is linear if and its derivatives appear only to the first power and are not multiplied together; otherwise it is nonlinear. It is homogeneous if there is no term without in it.
The main examples, each with a single space variable and time , are:
Here is a diffusivity, and is a speed. The equations hold for and in a domain, and they only determine a unique solution once we add conditions at the edges of that domain.
Boundary and initial conditions
A PDE on its own has many solutions. To pin down one, we add:
- an initial condition, the state at time zero, such as , and
- boundary conditions, what happens at the ends of the domain, such as (both ends held at zero) or insulated ends where the derivative is zero.
A problem with a PDE, boundary conditions and initial conditions is well-posed when a solution exists, is unique, and depends continuously on the data. The heat equation is well-posed forward in time. Run it backwards and small errors blow up, which is why reconstructing an earlier temperature from a later one is hard.
Solving the heat equation by separation of variables
Look for solutions that factor: . Substituting into gives . Divide by :
The left side depends only on and the right only on , so both must equal a constant . This gives two ordinary differential equations: with the boundary conditions, and .
With , the first problem has nonzero solutions only for with , and then . The time part is . Each mode solves the PDE and the boundary conditions.
The heat equation is linear, so sums of solutions are solutions. For a general initial profile , we write
The coefficients are chosen so that the sum at equals . High-frequency modes (large ) decay fastest, which is why sharp features in a temperature profile smooth out first.
The advection equation has a transport solution
For , the solution is a shape moving at speed : . To check, compute and . Then .
The wave equation
The wave equation has d'Alembert's solution : two shapes moving in opposite directions at speed . The second derivative in time plays the role that acceleration plays in Newton's law, and the second derivative in space plays the role of the restoring force from a stretched string.
- Write down the PDE, the boundary conditions and the initial condition.
- Check whether the problem is linear and whether the boundary conditions are homogeneous (zero on the ends).
- Try separation of variables to get ordinary differential equations.
- Solve the spatial eigenvalue problem, which gives the allowed modes.
- Superpose the modes and fit their coefficients to the initial condition.
Worked examples
Let with initial condition . The wave speed is , so .
- At the peak is at , where .
- At the pulse has moved to , where .
- At the point has . The pulse has left that point, so its value is almost zero.
- Check: and , so .
Interpretation: the shape keeps its form and simply translates at speed . No part of it spreads or decays.
Take a rod of length with ends held at zero, diffusivity , and initial profile . This is a single mode, so the sum has just one term with and .
- The solution is .
- The decay rate is per unit time.
- At , the factor is . At the middle of the rod, .
- The half-life of the profile is . After about 0.14 time units, the middle of the rod is at half its starting temperature.
Interpretation: the shape stays a sine wave, but its height shrinks exponentially. Every mode does the same, with higher modes decaying faster.
PDEs with no closed-form solution are solved on a grid. For the heat equation, the simplest explicit scheme updates each grid point from its neighbours, with spatial step and time step . It is stable only when the number is at most .
- Take and . Then .
- With , we get . This is on the boundary of stability, and the scheme works.
- With , we get . The scheme is unstable: small errors grow with each step, and the numerical "temperature" oscillates and explodes.
- Halving quarters the allowed , because must scale with .
Interpretation: the step restriction comes from the diffusion itself, not from the accuracy you want. Doubling the resolution makes the explicit scheme four times as expensive in time steps.
Tradeoffs and failure modes
PDEs look uniform, but their behaviour depends strongly on the type. The table below gives the usual starting points.
| Situation | Problem | Better choice |
|---|---|---|
| Simple geometry, linear equation | Closed form may exist | Separation of variables or a transform such as the [[fourier-transform |
| Irregular geometry | No separable solution | Finite element or finite volume method |
| Explicit time stepping for diffusion | Step size limited by | Implicit schemes, which are stable for any step size but need a linear solve each step |
| Shocks or sharp fronts in a transport problem | Smooth numerical methods smear or oscillate | Upwind schemes or methods designed for conservation laws |
| Nonlinear fluid flow (Navier–Stokes) | No general closed-form solution, and smooth solutions are not guaranteed for all time | Numerical simulation with careful resolution checks |
| Data-rich problem with a known PDE | Solving the PDE accurately is expensive | Physics-informed or learned surrogates, validated against numerical solutions |
Some practical warnings:
- Boundary conditions are part of the problem. Changing the condition at one end can change the whole solution. A wrong boundary condition gives a stable, plausible, and wrong answer.
- Linearity is a powerful assumption. Superposition holds only for linear equations. Two solutions of a nonlinear PDE generally do not add to a solution.
- Stability is not accuracy. A scheme can be stable and still converge slowly or give a smeared answer. Check with a finer grid.
- The wave equation does not smooth. A sharp pluck on a string stays sharp as it travels, while heat smooths sharp features immediately. Choosing the wrong model for the physics gives the wrong qualitative picture.
History
Jean le Rond d'Alembert published his solution of the wave equation for a vibrating string in 1747, working on the problem of a string plucked into a shape. Leonhard Euler and Daniel Bernoulli worked on the same problem and disagreed about which functions were allowed as solutions, a dispute that helped push mathematics toward a clearer idea of a function.
The heat equation came from Joseph Fourier, who in 1822 published Théorie analytique de la chaleur (The analytic theory of heat). He solved it by expanding temperature in sine and cosine series, the method now called separation of variables with Fourier series. The idea was controversial at first, because it asserted that an arbitrary function could be written as such a sum. That claim drove much of nineteenth-century analysis.
The Navier–Stokes equations for viscous fluids were written down in stages, by Claude-Louis Navier in 1822 and by George Gabriel Stokes in the 1840s. They remain one of the central unsolved problems in mathematics: whether smooth solutions in three dimensions always exist for all time.
PDEs caught on because they turned local physical laws into equations that could be solved and tested. Engineering, physics and, later, finance all adopted the same tools, and modern numerical methods built on them make PDEs the standard language of simulation.
Check yourself
QuestionFor the equation , is it linear, and what is its order? Does the equation have the same properties?Show answer
is linear, because and its derivatives appear only to the first power and are not multiplied together. Its highest derivative is second order in and first order in , so the order is 2. The equation is first order but nonlinear, because the term multiplies by its own derivative. This is the inviscid Burgers equation, and it can form shocks even from smooth initial data.
QuestionUsing the advection solution with and , what is ?Show answer
Substitute into the formula: . Since , the argument is about , and . The pattern has moved right by 1.5 units, so the value at is the value the initial profile had at .
QuestionIn the heat rod example, why does a sharp feature in the initial temperature disappear faster than a broad hump?Show answer
A sharp feature contains high-frequency modes, with large . Each mode decays as , so the decay rate grows with the square of the frequency. A broad hump is mostly made of low modes, which decay slowly. The sharp feature loses its high-frequency content quickly and becomes smooth, while the broad hump keeps its shape for longer.
QuestionA student uses an explicit scheme for the heat equation with , and . Is it stable, and what is the largest stable for this grid?Show answer
The number is . This is at most , so the scheme is stable. The largest stable step satisfies , giving .
Sources
- Partial differential equation (Wikipedia): https://en.wikipedia.org/wiki/Partial_differential_equation
- Heat equation (Wikipedia): https://en.wikipedia.org/wiki/Heat_equation
- Wave equation (Wikipedia): https://en.wikipedia.org/wiki/Wave_equation
- Lawrence C. Evans, Partial Differential Equations (American Mathematical Society): https://bookstore.ams.org/gsm-19-r