Differential Equations
Equations that say how something changes: cooling coffee, a filling tank, a bouncing spring, two species sharing a pond. You learn to solve the standard kinds by hand, to read what solutions do from slope fields, phase lines and phase portraits when no formula exists, and to use the Laplace transform for forces that switch on or strike.
Lessons
- What a differential equation is: A differential equation says how a quantity changes in terms of what it is now; a solution is a function that makes it true at every instant, and one starting value picks a single solution out of a whole family.
- Slope fields: An equation $y' = f(t, y)$ gives the slope at every point of the plane, so a field of short strokes shows the shape of every solution before any formula is found.
- Euler's method: Euler's method walks along the slope a step $h$ at a time, $y_{n+1} = y_n + h\,f(t_n, y_n)$; its error builds up from step to step and shrinks roughly in proportion to $h$.
- Separable equations: When $y' = g(t)\,h(y)$, divide by $h(y)$ and integrate each side in its own variable; the constant solutions where $h(y) = 0$ are lost in the division and must be added back.
- Linear equations and integrating factors: Multiplying $y' + p(t)\,y = q(t)$ by $\mu = e^{\int p\,dt}$ turns the left side into the derivative of $\mu y$, so one integration solves it.
- Growth, decay and cooling: A rate proportional to the amount gives exponential growth or decay, and a rate proportional to the gap from the surroundings gives Newton's cooling; one measurement fixes the rate constant.
- Mixing tanks: The salt in a stirred tank changes at the rate it flows in minus the rate it flows out, each a flow rate times a concentration, which gives a linear first-order equation.
- Falling with air resistance: Newton's second law with a drag force gives a first-order equation for the velocity, whose solutions all approach the terminal velocity at which drag balances weight.
- Autonomous equations and phase lines: For $y' = f(y)$ the zeros of $f$ are equilibria, and the sign of $f$ between them, drawn as arrows on a phase line, tells where every solution goes and which equilibria are stable.
- Logistic growth and harvesting: In $P' = rP\left(1 - \frac{P}{K}\right)$ every positive population tends to the carrying capacity $K$; taking a fixed harvest lowers the stable level, and past a critical harvest the equilibria vanish and the population collapses.
- Existence and uniqueness: If $f$ and $\partial f/\partial y$ are continuous near the starting point, exactly one solution passes through it for a while; where they fail, solutions can split, and even a smooth equation can blow up in finite time.
- Second-order linear equations: A second-order equation needs a starting position and a starting velocity; for a linear homogeneous one, combinations of solutions are solutions, and two independent ones give every solution.
- The characteristic equation: Trying $y = e^{rt}$ turns $ay'' + by' + cy = 0$ into $ar^2 + br + c = 0$, and two distinct real roots give $y = c_1 e^{r_1 t} + c_2 e^{r_2 t}$.
- Repeated roots: When the characteristic equation has one repeated root $r$, the second solution is $t e^{rt}$, so $y = (c_1 + c_2 t)\,e^{rt}$.
- Complex roots and oscillation: Roots $\alpha \pm i\beta$ give, by Euler's formula, the real solutions $e^{\alpha t}\cos \beta t$ and $e^{\alpha t}\sin \beta t$, an oscillation at frequency $\beta$ whose size grows or dies with $\alpha$.
- Springs and damping: A mass on a spring obeys $mx'' + cx' + kx = 0$; without damping it oscillates forever at $\omega_0 = \sqrt{k/m}$, and with damping the sign of $c^2 - 4mk$ decides whether it rings down or creeps back.
- Undetermined coefficients: The general solution of a forced linear equation is the homogeneous solution plus one particular solution, and for polynomial, exponential, sine and cosine forcing a guess of the same form with unknown coefficients finds it.
- Variation of parameters: Letting the constants of the homogeneous solution vary, $y = u_1 y_1 + u_2 y_2$, gives two equations for $u_1'$ and $u_2'$ whose solution, through the Wronskian, finds a particular solution for any continuous forcing.
- Forced oscillation and resonance: A driven, damped spring settles into a steady oscillation at the driving frequency whose amplitude peaks near the natural frequency; with no damping, driving at exactly $\omega_0$ makes the swing grow without bound.
- The Laplace transform: The transform $F(s) = \int_0^\infty e^{-st} f(t)\,dt$ turns a function of time into a function of $s$; a few integrals done by hand give the table, and linearity does the rest.
- Inverting with partial fractions: To find the $f(t)$ with a given $F(s)$, split $F$ into partial fractions and read each piece off the table, using the shift $F(s - a) \leftrightarrow e^{at} f(t)$ for completed squares.
- Solving initial value problems with Laplace: Because $\mathcal{L}\{y'\} = sY - y(0)$, transforming a linear equation turns it into algebra for $Y(s)$ with the initial conditions already inside, and inverting $Y$ gives the solution.
- Step functions and switched forcing: A force switched on at time $c$ is written with the unit step $u(t - c)$, and a delay of $c$ in time multiplies the transform by $e^{-cs}$, so on-off inputs need no splitting into cases.
- Impulses and the delta function: A hammer blow is a force of fixed total impulse squeezed into an instant, the delta $\delta(t - c)$, whose transform is $e^{-cs}$; it makes the velocity jump while the position stays continuous.
- Systems of first-order equations: Coupled rates, and any higher-order linear equation, can be written as one system $\mathbf{x}' = A\mathbf{x}$, whose solutions are curves traced through the phase plane.
- Solving systems with eigenvalues: If $A\mathbf{v} = \lambda\mathbf{v}$, then $e^{\lambda t}\mathbf{v}$ solves $\mathbf{x}' = A\mathbf{x}$ along a straight line, and two real eigenvalues give the general solution as a combination of two such lines.
- Complex eigenvalues and spirals: Complex eigenvalues $\alpha \pm i\beta$ make solutions turn at rate $\beta$ while they grow or shrink like $e^{\alpha t}$, so trajectories spiral out, spiral in, or close up when $\alpha = 0$.
- Phase portraits and stability: The trace and determinant of $A$ fix its eigenvalues, so they sort the origin into a saddle, a node, a spiral or a centre and say whether it attracts or repels.
- Equilibria and linearization: Near an equilibrium a nonlinear system behaves like its linearization, the linear system of its Jacobian matrix there, so each equilibrium can be classified like the origin of a linear system.
- Predators, prey and competition: Linearizing two-species models at their equilibria shows predator and prey cycling round a balance, and two competitors either coexisting or one driving the other out.