What is a Differential Equation?

Equations involving rates of change and their solutions

A Different Kind of Equation

You have spent years solving equations. Find x when x24=0x^2 - 4 = 0. The answer is a number, or perhaps two numbers: x=2x = 2 or x=2x = -2. Plug them back in, verify they work, and you are done.

A differential equation asks something fundamentally different. Instead of asking "what number satisfies this condition?", it asks "what function satisfies this condition?" The unknown is no longer a number hiding behind a variable. It is an entire curve, a relationship between quantities that unfolds across all values of the input.

Consider this equation:

dydx=y\frac{dy}{dx} = y

This says: find a function y(x)y(x) whose derivative equals itself at every point. Whatever the function's value is at any moment, that is also how fast it is changing. The faster you grow, the more you grow. The answer is not a number. It is the exponential function y=Cexy = Ce^x.

We can verify this works: if y=Cexy = Ce^x, then dydx=Cex\frac{dy}{dx} = Ce^x, which equals yy. The derivative of the function equals the function itself, exactly as the equation demands. Any value of CC works, so we have found a whole family of solutions.

Interactive: Algebraic vs Differential

Algebraic Equation

x24=0x^2 - 4 = 0

Solution: specific numbers (x = 2 or x = -2)

Result: x24=0.00x^2 - 4 = 0.00Solution found!

Differential Equation

dydx=y\frac{dy}{dx} = y

Solution: an entire function (y = Cex)

At every point, slope equals the y-value

The visualization above captures this distinction. On the left, an algebraic equation yields specific points where the parabola crosses the x-axis. On the right, a differential equation yields an entire curve that satisfies the rate-of-change condition everywhere.

The Language of Change

Differential equations are the natural language for describing how things change. They appear everywhere because the universe runs on rates of change.

When a hot cup of coffee sits on your desk, it cools. The rate of cooling depends on the temperature difference between the coffee and the room. Hotter coffee loses heat faster. This relationship between the current state and the rate of change is captured by Newton's law of cooling:

dTdt=k(TTroom)\frac{dT}{dt} = -k(T - T_{\text{room}})

When a population of bacteria grows in a petri dish, each bacterium divides. More bacteria means more division events per second. The rate of growth is proportional to the current population:

dPdt=rP\frac{dP}{dt} = rP

When you pull a weight attached to a spring and let go, it oscillates. The spring exerts a restoring force F=kxF = -kx (Hooke's law) proportional to the displacement. Newton's second law says F=maF = ma, where acceleration is a=d2xdt2a = \frac{d^2x}{dt^2}. Combining these:

md2xdt2=kxm\frac{d^2x}{dt^2} = -kx

The acceleration determines how velocity changes, and velocity determines how position changes. This double dependence on derivatives is what makes the equation second-order.

Interactive: Differential Equations in Nature

dvdt=gkv\frac{dv}{dt} = g - kv

Velocity changes due to gravity and air resistance. Eventually reaches terminal velocity.

Each of these situations involves the same pattern: the current state determines how the state changes. Understanding this feedback loop is the essence of differential equations.

Ordinary vs Partial

The examples above are ordinary differential equations (ODEs). They involve functions of a single variable, like position as a function of time, or temperature as a function of time. The "ordinary" refers to ordinary derivatives, not partial derivatives.

When a quantity depends on multiple independent variables, we enter the realm of partial differential equations (PDEs). The temperature in a metal rod depends on both position along the rod and time. The height of a vibrating guitar string depends on where you look along the string and when you look. These situations require partial derivatives:

ut=k2ux2\frac{\partial u}{\partial t} = k\frac{\partial^2 u}{\partial x^2}

This is the heat equation. It describes how temperature uu at position xx and time tt evolves. The temperature change at any point depends on how the temperature curves around that point spatially.

We will focus primarily on ODEs in this course, building up to PDEs in the final part. The techniques and intuitions for ODEs form the foundation for everything that follows.

The Order of an Equation

The order of a differential equation is the highest derivative that appears. A first-order equation involves only dydx\frac{dy}{dx}. A second-order equation involves d2ydx2\frac{d^2y}{dx^2}. And so on.

Order matters because it determines how much information you need to pin down a unique solution.

For a first-order equation like dydx=2y\frac{dy}{dx} = -2y, you need one piece of information: the initial value y(0)y(0). Given a starting point, the equation tells you which way to go, and there is only one path forward.

For a second-order equation like d2ydx2+y=0\frac{d^2y}{dx^2} + y = 0, you need two pieces of information: the initial position y(0)y(0) and the initial velocity y(0)y'(0). Knowing where you start is not enough. You also need to know how fast you were moving when you got there.

Think of it this way: each derivative "forgets" one piece of information about the original function. A first derivative forgets one constant of integration. A second derivative forgets two constants. To reconstruct the specific function we want, we must supply these lost pieces through initial conditions.

Interactive: Exploring Order

dydx=2y\frac{dy}{dx} = -2y

Rate of change depends on current value

Example: Cooling coffee, radioactive decay

Need: y(0) = y₀

The order tells you how many initial conditions you need to pin down a unique solution.

This pattern continues. A third-order equation needs three initial conditions. The order tells you how many degrees of freedom the solution family has, and therefore how many constraints you need to select a specific solution.

Solutions Are Functions

When we solve x2=4x^2 = 4, we find that x=2x = 2 or x=2x = -2. We verify by substituting back: 22=42^2 = 4. Correct.

When we solve dydx=y\frac{dy}{dx} = y, we find that y=Cexy = Ce^x for any constant CC. How do we verify this? We substitute the function back into the equation:

If y=Cexy = Ce^x, then dydx=Cex=y\frac{dy}{dx} = Ce^x = y. The derivative of the function equals the function itself. The equation is satisfied not at one point, but at every point simultaneously.

This is what it means to solve a differential equation. We find a function (or family of functions) that, when differentiated and substituted, makes the equation true everywhere in its domain.

Interactive: Family of Solutions

The differential equation y=yy' = y has infinitely many solutions: y=Cexy = Ce^x for any constant C.

The initial condition y(0)=1.0y(0) = 1.0 picks out exactly one solution from the family.

Adjust C to see how different initial conditions give different solutions

The family y=Cexy = Ce^x contains infinitely many functions, one for each value of CC. They are all solutions to the differential equation y=yy' = y. But if we add an initial condition, say y(0)=2y(0) = 2, then only one survives: y=2exy = 2e^x. The initial condition acts as a filter, selecting the unique solution that passes through the specified point.

What Lies Ahead

This course will teach you to read, interpret, and solve differential equations. You will develop geometric intuition through slope fields, learn systematic solution techniques for various types of equations, and discover how eigenvalues from linear algebra unlock the behavior of dynamical systems.

Along the way, you will encounter some of the most important equations in science and engineering: the harmonic oscillator, the heat equation, the wave equation. Each tells a story about how systems evolve, how disturbances propagate, how equilibrium emerges or collapses.

The journey begins with visualization. In the next chapter, we will see how to draw the solutions to differential equations without actually solving them.

Key Takeaways

  • A differential equation is an equation involving derivatives. The unknown is a function, not a number.
  • Solutions to differential equations are functions that, when differentiated and substituted, satisfy the equation at every point.
  • Ordinary differential equations (ODEs) involve functions of one variable. Partial differential equations (PDEs) involve functions of multiple variables.
  • The order of a differential equation is the highest derivative present. It determines how many initial conditions are needed for a unique solution.
  • Differential equations model systems where the rate of change depends on the current state, making them the natural language for physics, biology, economics, and engineering.
  • A single differential equation typically has a family of solutions. Initial conditions select the specific solution relevant to a given problem.