Introduction to Numerical ODE Solvers
Introduction to ODEs
Equations of Change
Many things in the world are constantly changing. Think about the temperature of a hot coffee cooling down, the speed of a falling apple, or the number of fish in a lake. We can describe these changes using mathematics. A differential equation is a special kind of equation that does just that. Instead of solving for a number, it describes a relationship between a function and its rate of change, its derivative.
A differential equation links a function to its derivatives.
The "ordinary" in Ordinary Differential Equation (ODE) simply means the function depends on only one independent variable. For example, the coffee's temperature changes over time. Time is the single variable. This is different from a partial differential equation (PDE), where a function might depend on multiple variables, like how the temperature changes across both the length of a metal rod and over time.
First-Order ODEs
The "order" of a differential equation refers to the highest derivative that appears in it. A first-order ODE, then, is one that only involves the first derivative. These are the simplest type of differential equations, but they are incredibly powerful for modeling the world.
A classic example is population growth. In many simple models, the rate of population growth is directly proportional to the current population size. More rabbits lead to more baby rabbits, so the population grows faster. If we let be the population at time , we can write this relationship as:
Here, is the rate of change of the population, and is a constant that represents the growth rate. This is a first-order ODE because the highest derivative is the first derivative, .
Finding a Solution
What does it mean to "solve" a differential equation? We're not looking for a single number. We're looking for a function that satisfies the equation. For our population model, the solution is a function that describes the population at any time . The family of functions that solves is , where is some constant.
But this gives us an infinite number of possible solutions, one for each value of . How do we find the specific one we're looking for? We need more information. We need a starting point.
Initial Value Problem
noun
A differential equation combined with an initial condition, which specifies the value of the function at a particular point.
Let's say we know the starting population of rabbits was 100. This is our initial condition, which we can write as . Now we have an initial value problem (IVP). We can use this piece of information to find the specific value of and get a unique solution.
Given , we plug in our initial condition: . Since , we find that . The specific solution is .
This specific function now allows us to predict the rabbit population at any point in the future, assuming our simple model holds. This is the power of differential equations: they provide a framework for turning a rule about change into a prediction about the future.
What does a differential equation fundamentally describe?
The "order" of a differential equation is determined by the...
Understanding these basic concepts is the first step toward using differential equations to model and solve complex problems in science and engineering.
