Reference notes.
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 equation can be written as , where the coefficients depend only on (no products such as , powers , or nonlinear functions such as )
- Homogeneous vs Nonhomogeneous: For a linear ODE in standard form, homogeneous if the forcing term ; nonhomogeneous if
- Autonomous vs Non-autonomous: Autonomous if the independent variable doesn’t appear explicitly
Existence and Uniqueness (Picard–Lindelöf)
For the initial value problem with :
- If is continuous in an open rectangle around and satisfies a Lipschitz condition in (for instance, is continuous there), then a unique local solution exists on some open interval .
First-Order ODEs
Separable Equations
When the equation can be written as:
Solve by separating variables (for ):
Always check separately for constant equilibrium solutions where , as dividing by can lose them.
Example: separates to , giving (with recovering the equilibrium solution ).
Linear First-Order
Standard form:
Integrating factor:
Multiply through by to get:
Then integrate both sides.
Exact Equations
An equation is exact if there exists a potential function such that (i.e. and ), giving implicit solutions .
For continuously differentiable on a simply connected domain, exactness is equivalent to:
Find by integrating with respect to (adding an unknown function of ) and differentiating with respect to to match .
Bernoulli Equations
For , substitute to transform into a linear equation in (when or , the equation is already linear).
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 (valid for constant coefficients when is a combination of polynomials, exponentials, sines, and cosines):
- → try
- or → try
- → try a polynomial of degree
- Modification (resonance) rule: if any term in the trial form duplicates a term in the homogeneous solution , multiply the trial form by (or by for a double root of the characteristic equation) until no term duplicates
Variation of Parameters
For a second-order linear ODE in monic standard form (divide through by any leading coefficient first) with linearly independent homogeneous solutions :
where is the Wronskian.
Systems of ODEs
Matrix form:
Eigenvalue Method (for a constant, diagonalisable matrix ; see Linear Algebra for eigenvalue theory):
- Find eigenvalues from
- Find linearly independent eigenvectors
- General solution:
If is defective (not diagonalisable), use generalised eigenvectors (introducing terms) or the matrix exponential .
Phase Portraits (for real constant systems with ):
- Real non-zero eigenvalues of the same sign: nodes (stable if negative, unstable if positive)
- Real eigenvalues of opposite signs: saddle points (unstable)
- Complex conjugate eigenvalues (): spirals (stable if , unstable if ) or centres (purely imaginary, )
Series Solutions
Consider a homogeneous second-order linear ODE in standard form:
Power Series Solutions
Near an ordinary point (e.g. ), assume and substitute into the ODE to find recurrence relations for the coefficients.
Frobenius Method
Near a regular singular point (shifted to ), assume a series with :
Find the indicial equation to determine the roots . When is an integer (including ), the second linearly independent solution may involve a term.
Singular Points
For at :
- Ordinary point: Both and are analytic at
- Regular singular point: A non-ordinary point where and are both analytic at
- Irregular singular point: A singular point that is not regular
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: a non-constant harmonic function on a connected open domain attains 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 piecewise smooth function on (extended -periodically) can be expanded as:
Coefficients:
(For a function on , half-range cosine or sine series use separately by extending evenly or oddly to .)
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 | and (for 2nd-order PDEs) | 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