No history yet

Introduction to ODEs

Equations of Change

Many things in the world change over time: the speed of a falling apple, the population of a city, or the amount of money in a savings account. Differential equations are the mathematical language we use to describe this change.

A differential equation is simply an equation that relates a function to its derivatives. Since derivatives represent rates of change, these equations tell us how a quantity is changing at any given moment.

Think of it like a recipe for a function. Instead of telling you exactly what the function is, a differential equation tells you how it's growing or shrinking.

We'll focus on a specific type called an Ordinary Differential Equation, or ODE. The "ordinary" part means the function depends on only one independent variable, which is often time (tt). This makes them a bit simpler than their cousins, Partial Differential Equations (PDEs), which deal with functions of multiple variables, like how the temperature of a metal plate changes across both its length and width over time.

Classifying ODEs

Just like biologists classify animals, mathematicians classify differential equations. This helps us understand their properties and choose the right tools to solve them. Two of the most important classifications are order and linearity.

Order

noun

The highest derivative that appears in the differential equation.

For example, this is a first-order ODE because the highest derivative is the first derivative, dy/dxdy/dx.

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

The equation describing the motion of a simple pendulum is a second-order ODE, because it involves the second derivative of the angle θ\theta with respect to time, d2θ/dt2d^2\theta/dt^2.

d2θdt2+gLsin(θ)=0\frac{d^2\theta}{dt^2} + \frac{g}{L} \sin(\theta) = 0

Another key distinction is whether an equation is linear or nonlinear. In a linear ODE, the dependent variable (like yy) and its derivatives appear only to the first power and are not multiplied together. If they are squared, inside a function like sin(y)\sin(y), or multiplied, the equation is nonlinear.

The equation dydx=2y\frac{dy}{dx} = 2y is linear. The pendulum equation, with its sin(θ)\sin(\theta) term, is nonlinear.

Finding a Solution

A "solution" to an ODE is a function that makes the equation true. For the simple ODE dydx=2y\frac{dy}{dx} = 2y, the function y(x)=e2xy(x) = e^{2x} is a solution. Why? Because if you take its derivative, you get dydx=2e2x\frac{dy}{dx} = 2e^{2x}, which is exactly 2y2y.

But is that the only solution? It turns out that y(x)=Ce2xy(x) = Ce^{2x} is also a solution for any constant CC. This family of functions represents all possible solutions. To pick just one, we need more information, usually an "initial condition" that specifies the value of the function at a certain point, like y(0)=3y(0) = 3.

An ODE gives you the general behavior. An initial condition pins down a specific path.

Mathematicians have proven theorems about when a unique solution is guaranteed to exist. For most well-behaved ODEs that model physical systems, if you provide an initial condition, there is one and only one solution.

Finding that solution is another matter. Sometimes, we can find an analytical solution, which is an exact formula like y(x)=Ce2xy(x) = Ce^{2x}. This is the ideal scenario, as it gives us a complete understanding of the system's behavior. Famous equations in physics, like Newton's laws of motion, often have analytical solutions for simple cases.

Lesson image

However, most real-world ODEs, especially nonlinear ones, are impossible to solve analytically. The equations describing weather patterns, complex circuits, or the interactions between predator and prey populations are just too complicated.

In these cases, we turn to numerical solutions. Instead of a formula, a numerical method gives us an approximation of the solution at a series of discrete points. It's like plotting a function by calculating a few dots and connecting them, rather than having the smooth, perfect curve. While not exact, these methods are incredibly powerful and are the backbone of modern engineering and scientific simulation.

Quiz Questions 1/6

What does a differential equation fundamentally describe?

Quiz Questions 2/6

An Ordinary Differential Equation (ODE) is distinct from a Partial Differential Equation (PDE) because an ODE involves a function that depends on...

Understanding what ODEs are and how they're classified is the first step. They provide a powerful framework for turning descriptions of change into precise mathematical models, whether we solve them with elegant formulas or powerful computer algorithms.