What is a differential equation? ODEs, PDEs, and examples

A differential equation describes a relationship between a function and how it changes. Instead of finding a single number, we usually look for a function that makes the equation true. Let’s start with a simple example, then distinguish ordinary and partial differential equations.

The unknown is a function

dydx=2x

This equation asks for a function y(x) whose derivative is 2x. The functions y=x2+C satisfy it because differentiating any one of them gives 2x.

y=x2+C

An additional condition, such as a value of y at a specified x, can select a particular function from that family. Finding a solution and checking it both involve the relationship between the function and its derivatives.

Ordinary differential equations use one independent variable

An ordinary differential equation, or ODE, contains ordinary derivatives of an unknown function of one independent variable. For a function y(x), both dydx and y″ are ordinary derivatives.

For example, this equation is an ODE:

dydx-sinx·cosx=2x

The unknown function y depends on x, and the derivative is taken with respect to that one variable.

Partial differential equations use partial derivatives

A partial differential equation, or PDE, contains partial derivatives of an unknown function with more than one independent variable. For a function u(x, y), an example is

∂u∂x+∂u∂y=0

The symbols ∂u/∂x and ∂u/∂y are partial derivatives. The equation relating them is the PDE; a partial derivative by itself is a derivative, rather than a separate name for a differential equation.

Order means the highest derivative order

A first-order equation contains a first derivative and no higher derivatives. A second-order equation contains a second derivative as its highest derivative, and the same pattern continues for higher orders.

5y′′-2y′+5y=0

This equation is second order because y″ is the highest derivative present. Order refers to how many times we differentiate, rather than the exponent on a derivative or on y.

Linear, separable, and exact describe different structures

A first-order linear equation can be written as y′+p(x)y=q(x) on an interval where that form is defined. The unknown y and its derivative appear to the first power, with coefficients depending only on x.

A separable equation can be arranged so the y terms and the x terms can be integrated separately. We can write a common form as y′=g(x)h(y).

An exact equation has the form M(x,y)dx+N(x,y)dy=0, where Ψ(x,y) is a function whose differential equals the left side. The implicit solution has the form Ψ(x,y)=C.

These descriptions can overlap. For example, y′ = 2x is both linear and separable. We classify the structure because it helps us choose a method for finding a solution.

For a fuller classification process, see how to classify differential equations by order, linearity, and homogeneity.