Differential equations describe how quantities change and are fundamental to modelling physical phenomena. They relate functions to their derivatives, appearing throughout physics, engineering, biology, economics, and beyond.
Ordinary Differential Equations (ODEs)
An ODE involves functions of a single independent variable and their derivatives.
Classification
- Order: The highest derivative present (first-order, second-order, etc.)
- Linear vs Nonlinear: Linear if the dependent variable and its derivatives appear only to the first power
- Homogeneous vs Nonhomogeneous: Homogeneous if equal to zero; nonhomogeneous if equal to some function
- Autonomous vs Non-autonomous: Autonomous if the independent variable doesn’t appear explicitly
First-Order ODEs
Separable Equations
When the equation can be written as:
Solve by separating variables:
Example: separates to , giving
Linear First-Order
Standard form:
Integrating factor:
Multiply through by to get:
Then integrate both sides.
Exact Equations
An equation is exact if:
The solution is found by integrating with respect to and with respect to , combining to find a potential function .
Bernoulli Equations
Substitute to transform into a linear equation.
Second-Order Linear ODEs
Homogeneous with Constant Coefficients
Characteristic equation:
| Discriminant | Roots | General Solution |
|---|---|---|
| Distinct real | ||
| Repeated | ||
| Complex |
Nonhomogeneous Equations
General solution: (homogeneous + particular)
Method of Undetermined Coefficients
Guess the form of based on :
- → try
- or → try
- → try polynomial of degree
Variation of Parameters
For with known solutions to the homogeneous equation:
where is the Wronskian.
Systems of ODEs
Matrix form:
Eigenvalue Method
- Find eigenvalues from
- Find corresponding eigenvectors
- General solution:
Phase Portraits
- Real eigenvalues: nodes (stable if negative, unstable if positive)
- Complex eigenvalues: spirals (stable if negative real part) or centres (pure imaginary)
- Saddle points: one positive, one negative eigenvalue
Series Solutions
Power Series Solutions
Assume and substitute into the ODE to find recurrence relations for coefficients.
Frobenius Method
For equations with regular singular points, assume:
Find the indicial equation to determine .
Singular Points
- Ordinary point: Coefficients are analytic
- Regular singular point: and are analytic
- Irregular singular point: Neither condition holds
Partial Differential Equations (PDEs)
A PDE involves functions of multiple independent variables and their partial derivatives.
Classification
By Order and Linearity
- Order: highest partial derivative
- Linear: dependent variable and derivatives appear linearly
- Quasilinear: linear in highest-order derivatives
Second-Order Linear PDEs
For :
| Type | Discriminant | Prototype |
|---|---|---|
| Elliptic | Laplace | |
| Parabolic | Heat | |
| Hyperbolic | Wave |
The Big Three
Heat Equation (Parabolic)
Properties:
- Models heat diffusion, chemical diffusion, probability
- Smoothing effect: discontinuities instantly smooth out
- Maximum principle: extrema occur on boundary or initial data
1D Solution via Separation of Variables
Assume :
Yields eigenvalue problems with solutions depending on boundary conditions.
Wave Equation (Hyperbolic)
Properties:
- Models vibrating strings, membranes, sound, light
- Finite propagation speed
- Preserves discontinuities
D’Alembert’s Solution (1D)
where is the initial displacement and is the initial velocity.
Laplace’s Equation (Elliptic)
Properties:
- Steady-state heat distribution, electrostatics, fluid flow
- Solutions are harmonic functions
- Mean value property: value at a point equals average over any surrounding sphere
- Maximum principle: no interior extrema
Solution Methods
Separation of Variables
- Assume product solution:
- Substitute into PDE
- Separate into ODEs with separation constant
- Solve each ODE with boundary conditions
- Combine via superposition
Fourier Series
Any “reasonable” function on can be expanded:
Coefficients:
Fourier Transform
For problems on infinite domains:
Derivatives transform to multiplication:
Boundary and Initial Conditions
| Type | Condition | Example |
|---|---|---|
| Dirichlet | Value specified | |
| Neumann | Normal derivative specified | |
| Robin | Linear combination | |
| Periodic | Circular domain |
Well-Posedness (Hadamard): A problem is well-posed if a solution exists, is unique, and depends continuously on the data.
Numerical Methods
For ODEs
Euler’s Method
Simple but first-order accurate. Error proportional to .
Runge-Kutta Methods (RK4)
where:
Fourth-order accurate. Error proportional to .
Stability: Implicit methods (backward Euler) more stable for stiff equations.
For PDEs
Finite Difference Methods
Approximate derivatives on a grid:
Finite Element Methods (FEM)
- Divide domain into elements
- Approximate solution using basis functions
- Particularly good for irregular geometries
Applications
| Equation | Application |
|---|---|
| (Newton) | Classical mechanics |
| Heat equation | Thermal analysis, diffusion |
| Wave equation | Acoustics, electromagnetism, seismology |
| Schrödinger equation | Quantum mechanics |
| Navier-Stokes | Fluid dynamics |
| Maxwell’s equations | Electromagnetism |
| Black-Scholes | Option pricing in finance |
| Lotka-Volterra | Population dynamics |
| SIR model | Epidemiology |
Tools
- Wolfram Alpha — symbolic solutions
- MATLAB — numerical computation and visualisation
- Python with SciPy —
odeint,solve_ivpfor ODEs - Desmos — visualising slope fields
- Mathematica — symbolic and numerical methods
Learning Resources
Books
- Ordinary Differential Equations by Tenenbaum and Pollard — comprehensive classic
- Differential Equations by Blanchard, Devaney, Hall — modern approach with applications
- Partial Differential Equations: An Introduction by Walter Strauss — excellent first PDE text
- Fourier Series by Georgi Tolstov — rigorous treatment of Fourier analysis
- Applied Partial Differential Equations by Haberman — physics-oriented
Courses
- MIT 18.03 Differential Equations — Arthur Mattuck’s legendary lectures
- Khan Academy Differential Equations — accessible introduction
- 3Blue1Brown: Differential Equations — visual intuition