Partial Differential Equations
This chapter is an introduction to PDEs — a tour of the vocabulary, the standard classifications, and the canonical examples that show up across physics and engineering. We won’t be deriving these equations from physical principles, and we won’t learn how to solve them; both the analytical and numerical solution machinery is taken up later in the course. The goal here is recognition: by the end you should know what a PDE is, see the difference between first- and second-order forms, recognize the canonical PDEs by sight, and feel comfortable with the terminology of PDE classification — order, linear vs nonlinear, stationary vs instationary.
A differential equation is a relation between an unknown function and its own derivatives — solving it means finding the function (or family of functions) that makes the relation hold everywhere on a given domain. Differential equations split into two families based on how many independent variables the unknown depends on: the 1D case (one independent variable) gives an ordinary differential equation, and the higher-dimensional case (several independent variables) gives a partial differential equation. The same 1D-vs-higher-D split we used for differentiation in the calculus chapters carries straight over to differential equations.
An ordinary differential equation (ODE) is an equation for an unknown function of a single variable, written in terms of , , and the ordinary derivatives
Notation — same letter for the function and its value. The phrasing uses the same letter for two related things: on the left, the value the function produces; on the right, applied to , the function itself. Read it as a typing declaration — ” is a quantity that depends on , and I’ll call that dependence too.” In strict math style we would invent a separate function name and write something like , with as the rule and as the output. Physics writing reuses the letter because usually names a single physical quantity (a position, an amount, a temperature) that is the function of time — there’s no need to label the rule and its output differently.
Notation — dots over the variable. The dot form is Newton’s notation for derivatives, conventionally used when the independent variable is time — so and . It coexists with the prime notation (Lagrange’s notation) we’ve used elsewhere and the fraction notation (Leibniz’s notation); all three express the same operation. Newton’s dots dominate in physics and ODE writing precisely because is so often the variable being differentiated against.
Two familiar examples:
- Exponential decay: — the rate of change is proportional to the current amount. Models radioactive decay, Newton’s law of cooling, drug clearance from the bloodstream. Solution: .
- Simple harmonic oscillator: — Newton’s second law for a mass on a spring. Solutions oscillate sinusoidally about the equilibrium position.
A partial differential equation (PDE) is an equation for an unknown function of several variables — typically space and time, e.g. , , or — written in terms of those variables, , and partial derivatives of .
Most quantities of physical interest depend on more than one axis (a temperature distribution across a room, a wave traveling through a medium, a fluid filling a domain), so PDEs are the natural language for almost every model in physics and engineering that varies over space and time, or over more than one spatial axis.
Many of the most important equations in physics and engineering are PDEs:
- Maxwell’s equations — relate the electric and magnetic fields to the charge and current that generate them; the foundation of classical electromagnetism.
- Navier–Stokes equations — describe how the velocity, pressure, and density of an incompressible viscous fluid (a fluid that doesn’t change density and resists internal shearing, like water at low speeds) evolve in space and time.
- Schrödinger equation — governs how the wave function of a quantum particle (the complex-valued amplitude whose squared modulus gives the probability of finding the particle at each point) evolves over time.
- Heat equation — describes the diffusion of heat (or any analogous quantity) through a medium.
First-order PDEs
For the rest of the chapter we narrow the setting to functions of two variables — written either when both inputs are spatial, or when one is space and the other is time. This is enough to develop every concept we need without dragging in the notational baggage of -variable expressions.
One vocabulary item splits every classification we are about to make: a PDE is called linear when the unknown and its derivatives appear in the most controlled possible way.
A linear PDE is an equation in which the unknown and its partial derivatives appear only to the first power and not inside any nonlinear function (like , , etc.).
A PDE that doesn’t satisfy this is called nonlinear. So is linear; is not (the coefficient in front of depends on the unknown), and is not (the unknown sits inside a nonlinear function). Every classification below — first-order or second-order — splits along this axis.
Linear with constant coefficients
The simplest first-order PDE has the most restrictive possible shape:
A 1st-order linear PDE with constant coefficients for has the form
with and a given function .
Three qualifiers stack to make this the simplest case, and each name picks out one structural feature:
- 1st order — only first partial derivatives appear (, ); no second derivatives like or , no third, etc.
- linear — in the sense just defined: and its derivatives appear only to the first power, not inside any nonlinear function. No , no , no , no .
- constant coefficients — the multipliers and are real numbers, not functions of , , or .
The subscripts read as partial derivatives: , , , and so on — the same subscript shorthand used earlier for , now specialized to a function of two variables.
Two functions, two roles
The equation involves two functions, and , and they play very different parts:
- is the unknown — the function we are solving for. We don’t know it yet; the PDE is the constraint we’ll use to pin it down.
- is given input data — a known function whose value depends on and but not on . Even though varies from point to point, it does so independently of whatever solution turns out to be. That’s what’s meant by saying is constant with respect to : not that is a flat constant function, but that contains no .
Because contains no , the equation is genuinely linear in : doubling doubles every term on the left, while on the right is unaffected. When vanishes everywhere — the equation reduces to — the PDE is homogeneous; otherwise it is inhomogeneous, and is what supplies the inhomogeneity.
In settings where the PDE describes some quantity being added to or removed from , goes by a more evocative name: the source term where it’s positive (driving up) and the sink term where it’s negative (draining down) — collectively, the source/sink term of the equation.
Example — traffic density
Imagine cars on a single-lane highway, no overtaking. At each point along the road and each time , let denote the traffic density — cars per unit length around that point. Suppose every car drives at the same constant velocity , and entrances and exits along the highway add or remove cars at a net rate — positive where cars are entering, negative where they’re leaving.
Tracking how the density evolves leads to the PDE
Reading term by term:
- — the rate at which density changes at a fixed location as time passes.
- — the spatial slope of density times the cars’ velocity. If density is increasing ahead of you () and the column of cars is rolling forward at speed , the location you just occupied empties out at rate .
- — the source/sink term: net rate of cars entering minus leaving at .
With no entrances or exits (), the equation reduces to : the density at a fixed point changes only because the spatial profile is sliding past — every car carries its bit of density along at speed . Adding on the right injects external forcing on top of that picture: the profile still slides, but now it gains cars wherever and loses them wherever .
The traffic equation is given, not derived: we haven’t shown why density satisfies this particular PDE (that needs a conservation-law argument), and we haven’t solved it either. The example is only demonstrating that the abstract template has real physical content — here , , the unknown is the density, and is the net inflow rate. Deriving such PDEs from physical principles and learning solution techniques are taken up later in the course.
The constant-coefficient case is the most restrictive 1st-order PDE we’ll meet. Loosening the conditions on the coefficients takes us through two strictly more general classes — both still “first-order” since only first partial derivatives appear.
Linear with variable coefficients
The next step up in generality keeps the linearity but allows the coefficients to depend on the location :
A linear 1st-order PDE in 2D has the form
with coefficient functions that may depend on but not on .
Compared to the constant-coefficient class above, the only relaxation is that and are now functions of instead of fixed real numbers. The constant-coefficient case is the special sub-case where those functions happen to be flat.
Reading off: and . They vary with position but contain no , so the equation is linear — and because they are not just constants, it sits in this class rather than the constant-coefficient one.
Quasilinear
One more relaxation: let the coefficients (and the right-hand side) depend on itself.
A quasilinear 1st-order PDE in 2D has the form
with differentiable functions that may depend on in addition to .
The third argument to each of , , is the value of the unknown function at the point being considered. Read as: ” takes three real arguments, and we plug in for the third.” When the dependence is clear from context, this is often shortened to — the same letter-reuse trick as the convention from earlier, where doubles as a name for both the function and its value.
The “quasi” in quasilinear signals that the equation is still linear in the derivatives and — each shows up only to the first power, not inside any nonlinear function of itself — but is now allowed to appear nonlinearly through the coefficients or the right-hand side. So is quasilinear (the coefficient of is , which is fine: still appears linearly), while is genuinely nonlinear (because shows up squared).
Reading off: , , . The coefficients in front of the derivatives — namely and — don’t actually depend on here, but the right-hand side does, and that is enough to push the equation out of the linear class. The derivatives and still appear linearly, so the “quasi” condition holds.
Second-order PDEs
Most of the canonical PDEs of classical physics are second-order: Laplace, heat, wave, and Schrödinger all live here. This is the order at which the subject becomes the workhorse of mathematical modeling. The linear / nonlinear split from before still applies — and at second order it does most of its real work, since the canonical physics equations divide cleanly into a linear group (Laplace, heat, wave, Schrödinger, Maxwell) and a nonlinear one (Burgers, Navier–Stokes).
Stationary vs instationary
Second-order PDEs are usually classified along a second axis: how the solution relates to time.
A PDE is stationary if its solution does not depend on time — it is determined entirely by the spatial variables.
A PDE is instationary (also called non-stationary or time-dependent) if its solution evolves over time — equivalently, time derivatives like or appear in the equation.
Stationary equations describe a static state of the world (a steady-state temperature distribution, an electric field at equilibrium); instationary ones describe how the world changes in time.
Canonical linear examples
Four linear second-order PDEs do most of the work in classical physics. Each one is built around the Laplace operator — summing the pure second-order spatial partial derivatives of — combined with some time-derivative term (or none at all):
- Laplace equation: . Stationary; describes a physical potential at equilibrium, like a gravitational potential or the strength of an electrical field. With no time derivatives in sight, the equation says nothing about how the field evolves — it characterizes the static shape the field must have to satisfy the equation everywhere.
- Heat equation: . The Laplace equation extended with a first time derivative , scaled by a positive constant (the thermal diffusivity, controlling how fast heat spreads). Describes heat transfer or any analogous diffusion process. Instationary.
- Wave equation: . Same structural shape as the heat equation, but with a second time derivative in place of the first. Here is the wave speed. Models the propagation of waves through a fluid or acoustic medium. Instationary.
- Schrödinger equation: , where is the imaginary unit. A first time derivative again, but multiplied by — a small notational change with sweeping consequences for the kind of behavior the equation supports. Describes how the wave function of an elementary particle evolves in time. Instationary.
The structural pattern is hard to miss: every one of these equations is the Laplace operator — the “spatial curvature” term, measuring how bends in space — coupled to time through some derivative expression on (or none, for Laplace itself). Reading the heat equation as “the Laplace equation with a time-evolution term added” is exactly right, and the wave and Schrödinger equations are variations on the same theme: same spatial machinery, different time coupling.
Maxwell’s equations — a linear system
A fifth canonical linear example doesn’t fit the single-Laplacian-plus-time template above. Maxwell’s equations are a system of four coupled linear PDEs relating the electric field and magnetic field to the charge density and current density that produce them:
Here is the permittivity of free space and is the permeability — both physical constants. Together these four equations describe how electric and magnetic fields are produced by charges and currents and how they evolve in response, and the whole edifice of classical electromagnetism rests on them.
Canonical nonlinear examples
Two nonlinear 2nd-order PDEs round out the canonical set.
Burgers’ equation
— appears in various conservation laws (gas dynamics, traffic flow, shock formation) and is the textbook example of how a nonlinear transport term produces shocks. Strictly speaking the form shown is first-order — it’s the quasilinear 1st-order pattern from earlier with , , (and ). The genuinely 2nd-order viscous Burgers’ equation adds a diffusion term:
Instationary.
Navier–Stokes equations
A nonlinear system describing the instationary flow of an incompressible viscous fluid. The unknowns are the velocity field , the density , and the pressure . The first equation is Newton’s second law applied to a fluid parcel; the second () enforces incompressibility. The heart of all serious fluid-dynamics modeling — and famously, whether smooth solutions always exist is one of the seven Millennium Prize Problems. Instationary.
Other classification schemes for second-order PDEs and methods for actually solving them — analytically and numerically — are taken up later in the course.