Modelling with First-Order Differential Equations
A differential equation is an equation relating an unknown function to one or more of its derivatives. Where ordinary algebra solves for a number, a differential equation solves for a function — and the function it produces is usually the whole content of a physical, biological or economic law stated as a rate. This chapter sets up the vocabulary used for the rest of the block (order, linearity, initial-value problem), proves the theorem that tells you in advance whether a solution exists and is unique, and builds the qualitative tools — direction fields and equilibrium analysis — that let you read off the long-run behaviour of a model without solving it.
Have to hand: the mean value theorem, the definition of a Lipschitz condition (or willingness to meet one here), and comfort with separating variables from a first course in calculus — the actual solving techniques are developed in the next chapter. Here the emphasis is on setting up an equation correctly from a verbal description and on what it means for that equation to be well posed.
1. Basic Vocabulary
An ordinary differential equation (ODE) is an equation of the form
involving an unknown function of one independent variable and its derivatives. (A partial differential equation involves partial derivatives of a function of several variables; that is the subject of Chapter 8.) The order of an ODE is the order of the highest derivative appearing in it: is first order, is second order.
An ODE is linear if is linear in , i.e. it can be written
for some functions . Linearity is a statement about how and its derivatives occur, not about : is linear () even though it is far from a straight line in . An equation that is not linear — such as or — is called nonlinear.
A solution of an ODE on an interval is a function , differentiable enough times on , that satisfies the equation identically for every . The general solution of an th-order ODE is a family of solutions depending on arbitrary constants; fixing those constants by extra conditions produces a particular solution.
Initial-value problem (IVP). A first-order IVP is the pair
The differential equation alone has a whole family of solution curves; the initial condition selects the one curve through the point .
2. Where First-Order Equations Come From
Three classical models recur throughout the chapter and the exercises.
Exponential growth/decay. If a quantity changes at a rate proportional to its current size (population with unlimited resources, radioactive decay, unconstrained compound interest), then by definition
gives growth, gives decay.
Newton's law of cooling. An object at temperature in surroundings held at constant temperature loses or gains heat at a rate proportional to the temperature difference:
The minus sign encodes the physics directly: when the object is warmer than its surroundings, so and it cools; when the right side is positive and it warms. Writing the law with the correct sign before solving is itself part of the modelling step.
Mixing problems. A tank holds litres of brine containing grams of salt. Brine of concentration flows in at rate and the (well-stirred) mixture flows out at rate . The salt balance is
where the outflow concentration is the current concentration, not — the single most common sign-up error students make with this model (Section 7).
Worked example (setting up, not yet solving). A L tank starts full of pure water. Brine with concentration enters at and the well-mixed solution leaves at the same rate, so is constant. With the mass of salt (kg) at time (min),
This is a linear first-order IVP; Chapter 2 supplies the integrating factor that solves it. The point here is only that the rate-in minus rate-out bookkeeping is what turns a verbal description into an equation.
3. Direction Fields
Even before solving , the equation itself assigns a slope to every point of the plane: at , any solution curve passing through that point must have that tangent slope. Plotting a short line segment of slope at a grid of points produces the direction field (or slope field) of the equation. A solution curve is then any curve that is tangent to the field everywhere along its length — you can sketch the qualitative shape of solutions without any algebra, which is indispensable when is too complicated to integrate in closed form (most , in fact).
For the logistic-type equation , the slope is zero along and (horizontal segments — these are the equilibrium solutions of Section 4), positive and large for near , and negative above or below . Sketching a handful of segments already shows every solution starting in rising monotonically toward .
4. Autonomous Equations, Equilibria and Stability
A first-order ODE is autonomous if does not depend explicitly on : . The growth/decay and cooling models, and the constant-volume mixing model, are autonomous. A constant solution is called an equilibrium (or critical) solution; it is one precisely when , since then is consistent with .
Definition (stability). An equilibrium is asymptotically stable if every solution starting sufficiently close to converges to as ; it is unstable if nearby solutions move away from it.
Theorem (linearised stability test). Let be continuously differentiable and . If then is asymptotically stable; if then is unstable.
Proof sketch. Near , Taylor's theorem gives . Let ; then for small, which is exponential growth or decay according to the sign of (Section 2). Hence (stability) when and grows (instability) when .
Worked example. For the logistic equation , the equilibria are and . Here , so (unstable) and (asymptotically stable). This matches the direction-field picture of Section 3: every solution with is pushed away from and pulled toward .
5. Existence and Uniqueness
A model is only useful if the IVP it produces actually has a solution, and exactly one — otherwise "the" solution is not well defined. The precise statement:
Theorem (Picard–Lindelöf). Suppose is continuous on a rectangle and satisfies a Lipschitz condition in on : there is a constant such that
Then the IVP has a unique solution on some interval for some .
Proof sketch. Integrating the ODE converts it to the equivalent integral equation
and solving this is a fixed point of the map on the space of continuous functions. The Lipschitz condition makes a contraction (in a suitable weighted norm, or after restricting to a small enough interval), so the Banach fixed-point theorem gives a unique fixed point — constructed explicitly as the limit of the Picard iterates . Continuity of alone (Peano's theorem) guarantees existence but not uniqueness; the Lipschitz condition is exactly the extra hypothesis that rules out two different solutions through the same point.
Why the hypothesis is needed. Consider , . Here is continuous everywhere but as , so is not Lipschitz near . Indeed both and (for ) solve the IVP: uniqueness genuinely fails, exactly where the theorem's hypothesis fails.
6. The Interval of Existence Can Be Finite
Linear equations with continuous coefficients have solutions on the whole interval where the coefficients are continuous, but nonlinear equations can have solutions that blow up in finite time even though is perfectly smooth everywhere. Example: , . Separating variables (anticipating Chapter 2) gives , which solves the IVP on but is undefined at — the solution escapes to infinity before reaches , even though has no singularity at all. The Picard–Lindelöf theorem only promises a solution on some interval ; it does not promise that can be taken as large as the domain of suggests.
7. Common Exam Pitfalls
- Writing Newton's law of cooling with the wrong sign. The rate must be , not ; check it against the physical requirement that a hot object cools ( when ).
- Using the inflow concentration for the outflow term in mixing problems. The tank is well-mixed, so the outflow concentration is the current ratio , never the (generally different) inflow concentration .
- Forgetting that need not be constant. If the inflow and outflow rates differ, must be substituted into the outflow term before the equation becomes separable or linear.
- Confusing order with degree, or linearity with "looks simple." is first order but nonlinear; is third order but linear. Check the dependence on and its derivatives, not on .
- Citing existence–uniqueness without checking the Lipschitz condition. Continuity of alone only guarantees existence (Peano); quoting Picard–Lindelöf to claim uniqueness requires checking is bounded (or at least Lipschitz) near the initial point, as Section 5's counterexample shows.
- Assuming equilibrium solutions are automatically stable. Stability must be checked via (or the direction field); an equilibrium found by setting could equally well be unstable (Section 4's for the logistic equation).
Summary
- An ODE's order is its highest derivative; it is linear iff is linear in ; a solution of an th-order IVP is pinned down by initial conditions.
- Growth/decay, Newton's cooling and mixing problems all reduce to a first-order ODE via a correctly signed rate balance; get the sign and the current (not inflow) concentration right.
- A direction field plots the slope at each point; solution curves are everywhere tangent to it, giving qualitative behaviour without solving.
- Autonomous equations have equilibria at the zeros of ; linearised stability: asymptotically stable, unstable.
- Picard–Lindelöf theorem: continuity plus a Lipschitz condition in guarantees a unique local solution of an IVP, proved via the contraction mapping theorem on the equivalent integral equation; continuity alone (Peano) gives existence but not uniqueness.
- Even smooth nonlinear equations such as can have solutions that blow up in finite time; the guaranteed existence interval can be strictly smaller than the domain of .