Differential Equations - Study Notes
Lesson summary
A differential equation is an equation with a function \( y = f(x) \) and one or more of its derivatives \( \dfrac{dy}{dx}, \dfrac{d^2y}{dx^2}, \ldots \). Equations with ordinary derivatives of a function of one independent variable are ordinary differential equations; equations with partial derivatives are partial differential equations. This unit studies only ordinary differential equations.
4.1 Order, degree and formation
- Order: the order of the highest derivative present in the equation.
- Degree: the highest power of the highest order derivative, after the equation is cleared of fractions and radicals as far as the derivatives are concerned.
- Order and degree, if defined, are always positive integers.
- Example: \( \left(\dfrac{d^3y}{dx^3}\right) - 3\left(\dfrac{dy}{dx}\right)^6 + 2y = x^2 \) has order 3 and degree 1.
- Example: \( \dfrac{d^3y}{dx^3} = \left(\dfrac{dy}{dx}\right)^{1/2} \); squaring gives \( \left(\dfrac{d^3y}{dx^3}\right)^2 = \dfrac{dy}{dx} \), so order 3, degree 2.
Family of curves
A single equation with one or more arbitrary constants (parameters) represents a family of curves: \( y^2 = 4ax \) is a family of parabolas with vertex at the origin, \( x^2 + y^2 = a^2 \) a family of circles with centre at the origin, and \( y = mx + c \) a family of straight lines.
Forming a differential equation
- Differentiate the equation as many times as there are arbitrary constants.
- Eliminate the constants between the equation and its derivatives.
- The order of the equation formed equals the number of arbitrary constants.
| Family | Differential equation |
|---|---|
| \( y = mx + c \), \( m \) arbitrary | \( x\dfrac{dy}{dx} - y + c = 0 \) |
| \( y = mx + c \), \( c \) arbitrary | \( \dfrac{dy}{dx} = m \) |
| \( y = mx + c \), both arbitrary | \( \dfrac{d^2y}{dx^2} = 0 \) |
| \( y = a + \dfrac{b}{x} \) | \( x\dfrac{d^2y}{dx^2} + 2\dfrac{dy}{dx} = 0 \) |
| \( y = ae^{4x} + be^{-x} \) | \( \dfrac{d^2y}{dx^2} - 3\dfrac{dy}{dx} - 4y = 0 \) |
| \( y = e^x(a\cos x + b\sin x) \) | \( \dfrac{d^2y}{dx^2} - 2\dfrac{dy}{dx} + 2y = 0 \) |
4.2 First order first degree equations
General and particular solution
A solution that contains as many arbitrary constants as the order of the equation is the general solution. A solution obtained by giving particular values to the constants is a particular solution.
Variables separable
If the equation can be written as \( f(x)\,dx = g(y)\,dy \), integrate both sides: \( \int f(x)\,dx = \int g(y)\,dy + c \). Growth under continuous compounding, \( \dfrac{dP}{dt} = kP \), separates to \( \dfrac{dP}{P} = k\,dt \), giving \( P = c\,e^{kt} \).
Homogeneous equations
\( \dfrac{dy}{dx} = \dfrac{f(x, y)}{g(x, y)} \), where \( f \) and \( g \) are homogeneous functions of the same degree, is homogeneous; it can be written as \( \dfrac{dy}{dx} = F\left(\dfrac{y}{x}\right) \). Put \( y = vx \), \( \dfrac{dy}{dx} = v + x\dfrac{dv}{dx} \); the variables \( v \) and \( x \) separate. For \( \dfrac{dx}{dy} = F\left(\dfrac{x}{y}\right) \), put \( x = vy \).
Linear equations of first order
- \( \dfrac{dy}{dx} + Py = Q \), \( P, Q \) functions of \( x \) only (or constants): I.F. \( = e^{\int P\,dx} \), solution \( y\,(\text{I.F.}) = \int Q\,(\text{I.F.})\,dx + c \).
- \( \dfrac{dx}{dy} + Px = Q \), \( P, Q \) functions of \( y \): I.F. \( = e^{\int P\,dy} \), solution \( x\,(\text{I.F.}) = \int Q\,(\text{I.F.})\,dy + c \).
- Useful: \( e^{\log f(x)} = f(x) \), so \( P = \dfrac{2x}{x^2 + 1} \) gives I.F. \( x^2 + 1 \) and \( P = -\dfrac{1}{x} \) gives I.F. \( \dfrac{1}{x} \).
- A linear equation is always of first degree, but a first degree equation need not be linear: \( \dfrac{d^2y}{dx^2} - 3\dfrac{dy}{dx} + 2y^2 = 0 \) is not linear.
4.3 Second order linear equations with constant coefficients
General form \( a\dfrac{d^2y}{dx^2} + b\dfrac{dy}{dx} + cy = f(x) \), written \( \phi(D)y = f(x) \) with \( D = \dfrac{d}{dx} \) and \( \phi(D) = aD^2 + bD + c \). Solving \( \phi(D)y = 0 \) gives the complementary function (C.F.); \( \dfrac{1}{\phi(D)}f(x) \) gives the particular integral (P.I.). General solution: \( y = \text{C.F.} + \text{P.I.} \).
| Roots of \( \phi(m) = 0 \) | Complementary function |
|---|---|
| Real and different, \( m_1 \neq m_2 \) | \( Ae^{m_1x} + Be^{m_2x} \) |
| Real and equal, \( m_1 = m_2 = m \) | \( (Ax + B)e^{mx} \) |
| Complex, \( \alpha \pm i\beta \) | \( e^{\alpha x}(A\cos \beta x + B\sin \beta x) \) |
Particular integral for \( f(x) = e^{ax} \)
- P.I. \( = \dfrac{1}{\phi(a)}e^{ax} \) if \( \phi(a) \neq 0 \).
- If \( \phi(a) = 0 \): P.I. \( = x\dfrac{1}{\phi'(a)}e^{ax} \), provided \( \phi'(a) \neq 0 \).
- If \( \phi'(a) = 0 \) too: P.I. \( = x^2\dfrac{1}{\phi''(a)}e^{ax} \).
- A constant \( k \) is \( ke^{0x} \): replace \( D \) by 0.
Market equilibrium
For market clearance put \( Q_d = Q_s \). Example: \( Q_d = 29 - 2p - 5\dfrac{dp}{dt} + \dfrac{d^2p}{dt^2} \), \( Q_s = 5 + 4p \) give \( (D^2 - 5D - 6)p = -24 \), C.F. \( Ae^{6t} + Be^{-t} \), P.I. \( = \dfrac{-24}{-6} = 4 \), so \( p = Ae^{6t} + Be^{-t} + 4 \).