Modeling with
Linear ODEs
Learn how first-order linear ordinary differential equations translate real-world phenomena into solvable mathematics: from cooling coffee to draining tanks.
What is an ODE?
An Ordinary Differential Equation is an equation that relates an unknown function \( y(t) \) to its derivatives. The word "ordinary" means there is only one independent variable (often time \( t \)).
The First-Order Linear ODE
A first-order linear ODE has the standard form:
Key properties: The unknown \( y \) and its derivative \( \frac{dy}{dt} \) appear to the first power only: no \( y^2 \), no \( y \cdot y' \), no \( \sin(y) \). This linearity is what makes the equation systematically solvable.
Why Model with Linear ODEs?
Many real-world processes follow a simple pattern: the rate of change of a quantity is proportional to the quantity itself (or to some external driving function). That pattern is exactly a first-order linear ODE.
The Integrating Factor Method
Every first-order linear ODE in standard form can be solved with an integrating factor \( \mu(t) \):
Solution Roadmap
Linear vs. Nonlinear ODEs
| Linear | Nonlinear | |
|---|---|---|
| Form | \( y' + P(t)y = Q(t) \) | \( y' = f(t, y) \) (general) |
| Powers of \( y \) | First power only | \( y^2, \sin(y), e^y, \ldots \) |
| Guaranteed solution? | Yes (integrating factor) | Not always |
| Superposition | Applies | Does not apply |
| Example | \( y' + 3y = e^t \) | \( y' = y^2 - t \) |
How to Solve Step by Step
Example 1: Exponential Decay
Solve \( \frac{dy}{dt} + 2y = 0 \) with \( y(0) = 5 \).
Visualizing Exponential Decay
Example 2: Newton's Cooling
A cup of coffee at \( 90^\circ\text{C} \) is placed in a room at \( 20^\circ\text{C} \). The cooling constant is \( k = 0.1 \). Find the temperature \( T(t) \).
Cooling Curve Visualization
Example 3: Mixing Tank
A tank holds \( 100 \text{ L} \) of pure water. Brine with \( 0.5 \text{ kg/L} \) of salt flows in at \( 4 \text{ L/min} \). The well-stirred mixture flows out at \( 4 \text{ L/min} \). Find the amount of salt \( y(t) \) in the tank.
Transient vs. Steady-State
Solutions to first-order linear ODEs with constant coefficients typically decompose into two parts:
Common Mistakes to Avoid
Model Summary
| Application | ODE | General Solution |
|---|---|---|
| Exponential decay | \( y' + ky = 0 \) | \( y = y_0 e^{-kt} \) |
| Newton's cooling | \( T' + kT = kT_{\text{env}} \) | \( T = T_{\text{env}} + Ce^{-kt} \) |
| Mixing tank | \( y' + \frac{r}{V}y = c_{\text{in}} r \) | \( y = c_{\text{in}}V + Ce^{-rt/V} \) |
| RC circuit | \( \frac{dq}{dt} + \frac{1}{RC}q = \frac{V}{R} \) | \( q = CV + Ce^{-t/(RC)} \) |
Question 1 of 5
Which of the following is a first-order linear ODE?
Question 2 of 5
For the ODE \( \frac{dy}{dt} + 3y = 12 \), what is the integrating factor \( \mu(t) \)?
Question 3 of 5
A quantity satisfies \( y' + 0.5y = 10 \) with \( y(0) = 0 \). What is the steady-state value as \( t \to \infty \)?
Question 4 of 5
A cup of tea cools according to Newton's Law. It starts at \( 80^\circ\text{C} \) in a \( 25^\circ\text{C} \) room. The solution is \( T(t) = 25 + 55e^{-kt} \). What does the constant \( 55 \) represent?
Question 5 of 5
Given \( 2\frac{dy}{dt} + 6y = 4 \), what is the first step before finding the integrating factor?