Intro to Differential Equations
Differential Equations: An Introduction
What is an Ordinary Differential Equation?
An ordinary differential equation (ODE) is an equation that relates a function to some of its derivatives. For example, an equation might involve y, y′, and y′′ together. The function depends on one single independent variable — in contrast to partial differential equations, where the function depends on multiple independent variables (e.g., space and time).
Key Terminology
Solution: A function (e.g., y=cosx+x2) that makes the differential equation true when substituted into it.
Order: The highest-level derivative that appears in the equation. If y′′ is the highest derivative, the equation is second-order.
Autonomous vs. Non-autonomous:
Autonomous: The independent variable does not appear explicitly in the equation (only the dependent variable and its derivatives).
Non-autonomous: The independent variable appears somewhere in the equation (e.g., an x on the right-hand side).
Initial Value Problem (IVP): An ODE together with additional information about the value of the function (and possibly its derivatives) at a specific point in the domain. The number of conditions needed equals the order of the ODE.
Parameters: Constants in the ODE that may vary across different scientific contexts (e.g., birth rate k, half-life). They look like variables (letters such as k or n) but are fixed constants for a given situation.
Equilibrium Solution: A constant solution to the ODE — one that does not change over time. If y(t) is constant, then its derivative(s) are zero.
Definition: An ordinary differential equation relates a function of one independent variable to its derivatives. A solution is a function that satisfies the equation. The order is the highest derivative present. An autonomous ODE has no explicit dependence on the independent variable; a non-autonomous ODE does. An initial value problem pairs an ODE with enough initial conditions to determine a unique solution. Parameters are constants that adjust the equation to different settings. An equilibrium solution is a constant solution.
Examples of Differential Equations
Example 1: First-Order Non-Autonomous ODE
Order: First (only dy/dx appears).
Autonomous? No — the independent variable x appears explicitly on the right-hand side. This makes it non-autonomous.
Independent variable: x; dependent variable: y (a function of x).
Verifying a Solution
Show that y=−5ex−x−1 is a solution.
Compute the left-hand side: dxdy=−5ex−1.
Compute the right-hand side: x+y=x+(−5ex−x−1)=−5ex−1.
Both sides match, so the function satisfies the ODE.
General Solution
The family of solutions is y=Cex−x−1, where C is an arbitrary constant. The particular solution above corresponds to C=−5.
Example 2: Second-Order Autonomous ODE
Order: Second (contains y′′).
Autonomous? Yes — the independent variable (name not important, could be x or t) does not appear.
Independent variable: x; dependent variable: y(x).
Verifying a Solution
Show that y=cos(2x) is a solution.
y′=−2sin(2x).
y′′=−4cos(2x).
But y=cos(2x), so y′′=−4y. The equation holds.
Similarly, y=sin(2x) and y=5cos(2x) also work.
General Solution
where A and B are arbitrary constants.
Equilibrium Solution
y=0 is a constant solution: y′′=0 and −4y=0, so it satisfies the ODE. This is an equilibrium solution.
Example 3: Exponential Growth/Decay
Order: First.
Autonomous? Yes — no t appears.
Independent variable: t; dependent variable: y(t).
Parameter: k (a constant that determines growth rate if positive, decay rate if negative).
Equilibrium Solution
Set dtdy=0 and solve ky=0. The only constant solution is y=0.
Interpretation: For bacterial growth, y=0 means no bacteria; the population stays at zero forever. For positive y, the population changes over time.
Example 4: Logistic Population Model
Order: First.
Autonomous? Yes — independent variable t does not appear.
Independent variable: t; dependent variable: P(t).
Parameters: k and N (positive constants that adjust for different populations).
Finding Equilibrium Solutions
Write the right-hand side as a function of P: f(P)=k(1−NP)P. For equilibrium, we need f(P)=0.
P=0 makes the factor P zero.
P=N makes 1−NP=0.
Thus the equilibrium solutions are P=0 and P=N.
Interpretation: P=0 means no population; P=N is the carrying capacity — the population size that the environment can sustain indefinitely.
Example 5: Pendulum Equation
Order: Second (contains θ′′).
Autonomous? Yes — no t appears.
Independent variable: t (time); dependent variable: θ(t) (angle from vertical).
Parameters: L (length of pendulum) and g (gravitational constant). Together they form one parameter Lg.
Equilibrium Solutions
For a constant angle, θ′′=0, so the equation reduces to sinθ=0. Solutions are θ=kπ for integer k.
Even multiples of π (θ=0,±2π,…) correspond to the pendulum hanging straight down.
Odd multiples of π (θ=±π,±3π,…) correspond to the pendulum pointing straight up.
Physical interpretation: The pendulum can remain stationary at the bottom (stable equilibrium) or perfectly balanced at the top (unstable equilibrium).
Example 6: Lotka-Volterra Predator-Prey Equations
This is a system of two coupled first-order ODEs:
Order: Each equation is first-order; the system is called a pair of coupled first-order ODEs.
Autonomous? Yes — time t does not appear explicitly.
Independent variable: t; dependent variables: R(t) (prey, e.g., rabbits) and F(t) (predator, e.g., foxes). Solutions are two functions of time taken together.
Parameters: α,β,γ,δ (positive constants representing growth, death, and interaction rates).
Equilibrium Solutions
Set dtdR=0 and dtdF=0, then factor:
Case 1: R=0. Then the second equation becomes 0=−γF, so F=0. This gives the trivial equilibrium (R,F)=(0,0) — no rabbits, no foxes forever.
Case 2: α−βF=0 (i.e., F=α/β). Substitute into the second equation: 0=F(−γ+δR). Since F>0, we need −γ+δR=0, so R=γ/δ. This gives the nontrivial equilibrium (R,F)=(γ/δ,α/β).
Interpretation: (0,0) is extinction. The other equilibrium represents a sustainable balance — the rabbit population stays at γ/δ and the fox population stays at α/β, both constant over time. The predator and prey coexist in harmony.
Solving Initial Value Problems
An initial value problem (IVP) combines an ODE with initial conditions. To solve it, we use the general solution and then determine the constants using the given conditions.
IVP for Example 1
Consider dxdy=x+y with y(0)=1. General solution: y=Cex−x−1.
Plug x=0, y=1:
Thus the solution to the IVP is y=2ex−x−1.
IVP for Example 2
Consider y′′=−4y with y(0)=0, y′(0)=1. General solution: y=Acos(2x)+Bsin(2x).
y(0)=0: 0=Acos0+Bsin0=A. So A=0.
y′(x)=−2Asin(2x)+2Bcos(2x). Then y′(0)=1 gives 1=2Bcos0=2B. So B=21.
The solution is y=21sin(2x).
Key idea: For a first-order ODE, one initial condition determines one constant. For a second-order ODE, two conditions determine two constants. The number of conditions always matches the order.
Summary of Classifications
When analyzing any ODE, identify the following:
Order (highest derivative)
Autonomous or non-autonomous (independent variable appears?)
Dependent and independent variables
Parameters (constants that vary by context)
Equilibrium solutions (set derivative(s) to zero, solve for constant functions)
General solution (family of solutions with arbitrary constants)
Particular solution (specific constants from initial or boundary conditions)
Not all ODEs can be solved explicitly, but these concepts provide the foundation for further analysis.

Ask anything
We've read this whole study set, so questions about it get the best answers.