No history yet

Introduction to Differential Equations

Equations That Describe Change

Many things in the world don't just exist, they change. A population grows, a hot cup of coffee cools, a planet moves through space. Calculus gives us a language to talk about this change using derivatives, which measure rates of change.

A differential equation takes this a step further. It's an equation that connects a function to its own derivatives. Instead of solving for a number, we solve for a function that behaves in the way the equation describes.

Think of it as a rule for motion. A differential equation doesn't tell you where something is, but it tells you how it's moving at any given point. Your job is to find the path it takes.

For example, consider one of the simplest differential equations:

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

This equation describes a function, y(x)y(x), whose rate of change (dy/dxdy/dx) at any point is equal to its value (yy) at that point. This is the mathematical signature of exponential growth, like what you might see in compound interest or an unchecked bacterial colony.

Two Main Flavors

Differential equations come in two main categories, based on the number of variables the function depends on.

Ordinary Differential Equation

adjective

An equation containing a function of only one independent variable and its derivatives.

Ordinary Differential Equations, or ODEs, are the most common type you'll encounter first. The function in the equation depends on a single independent variable. For example, the position of a swinging pendulum depends only on time. Here’s an example of an ODE:

d2ydx2+5dydx+6y=0\frac{d^2y}{dx^2} + 5\frac{dy}{dx} + 6y = 0

Here, yy is a function of a single variable, xx. All the derivatives are with respect to xx.

The other flavor is a Partial Differential Equation, or PDE. These are used when a function depends on two or more independent variables.

Think about the temperature on the surface of a metal plate. The temperature at any point depends on its position (say, xx and yy coordinates) and also on time (tt). Describing how the heat spreads requires a PDE.

A famous example is the heat equation, which looks like this:

ut=α2ux2\frac{\partial u}{\partial t} = \alpha \frac{\partial^2 u}{\partial x^2}

The curly symbol \partial indicates a partial derivative. This equation relates the rate of change of temperature uu with respect to time (tt) to its rate of change with respect to position (xx). It describes how heat flows in a one-dimensional object, like a long, thin rod.

Classifying Equations

To understand a differential equation, we often classify it by its order and whether it's linear or not.

Order

noun

The order of the highest derivative present in the differential equation.

For instance, dy/dx=2ydy/dx = 2y is a first-order equation because the highest derivative is the first derivative. The pendulum equation, d2θ/dt2+(g/L)sinθ=0d^2\theta/dt^2 + (g/L)\sin\theta = 0, is second-order because of the second derivative term.

Next, we check if the equation is linear or nonlinear. In a linear differential equation, the function and its derivatives only appear to the first power. They aren't multiplied by each other or stuck inside another function like sin(y)\sin(y) or eye^y.

EquationTypeWhy?
y+2y=x2y' + 2y = x^2LinearThe function yy and its derivative yy' are to the first power.
y4y+3y=0y'' - 4y' + 3y = 0LinearThe function yy and its derivatives are to the first power.
y+y2=0y' + y^2 = 0NonlinearThe function yy is squared.
y+sin(y)=0y'' + \sin(y) = 0NonlinearThe function yy is inside a sine function.

Linear equations are generally much simpler to solve. Nonlinear equations can describe more complex phenomena, like turbulence in fluids or chaotic systems, but they are often difficult or impossible to solve exactly.

Where They Appear

Lesson image

Differential equations are the language of science and engineering. They are used everywhere to model systems that change over time or space.

  • Physics: Newton's second law, F=maF=ma, can be written as a differential equation: F=m(d2x/dt2)F = m(d^2x/dt^2). They describe everything from planetary orbits to the flow of electricity in a circuit and the behavior of waves.

  • Biology: They model population growth, the spread of diseases (epidemiology), and the chemical reactions within a cell (biochemistry).

  • Finance: The famous Black-Scholes equation is a PDE that models how the price of financial derivatives changes over time.

  • Engineering: They are essential for designing bridges, analyzing control systems, and understanding heat transfer in engines.

Essentially, if a system involves continuous change, there's a good chance a differential equation is the right tool to describe it.

Quiz Questions 1/5

A differential equation is an equation that relates...

Quiz Questions 2/5

What is the order of the following differential equation: d3ydx3+5(dydx)42y=sin(x)\frac{d^3y}{dx^3} + 5\left(\frac{dy}{dx}\right)^4 - 2y = \sin(x)?

This is just the beginning. The real journey starts when you learn the techniques to solve these equations and unlock the stories they tell about the world.