Intro to Differential Equations
📘 Introduction to Differential Equations
A differential equation (DE) is an equation that involves an unknown function and one or more of its derivatives. More simply, it is any equation that contains at least one derivative.
Mathematical models often take the form of differential equations because many real-world problems involve rates of change — and rates of change are derivatives. These rates are used to predict future behavior.
Examples of Differential Equations
All differential equations have an equal sign and at least one derivative:
dxdy=cos(2x)−4x — contains a first derivative
y′′−3y′−4y=0 — contains a second derivative y′′ and a first derivative y′
dt2d2y+y=0 — second-order
dtdp=1.5p(1−2000p) — first-order
v′=t2+1 — first-order
Order of a Differential Equation
The order of a differential equation is the highest order derivative that appears in the equation.
Equations with only dxdy or v′ (first derivatives) are first-order differential equations.
Equations containing y′′ (second derivative) are second-order differential equations.
Solutions of Differential Equations
A function f is called a solution of a differential equation if the equation is satisfied when y=f(x) and its derivatives are substituted into the equation.
Verifying a Solution
Example: Verify that y=2e−x is a solution to y′′−3y′−4y=0.
Find derivatives:
y=2e−x
y′=−2e−x
y′′=2e−x
Substitute into the DE: $$y'' - 3y' - 4y = 2e^{-x} - 3(-2e^{-x}) - 4(2e^{-x})$$ $$= 2e^{-x} + 6e^{-x} - 8e^{-x} = 8e^{-x} - 8e^{-x} = 0$$
The left side equals zero, so y=2e−x is a solution.
Solving First-Order Differential Equations
First-order DEs contain only first derivatives. They can often be written in the form:
A general solution to a DE is a family of solutions containing arbitrary constants (often +C).
Direct Integration — When dxdy=f(x)
If the derivative is given as a function of x only, the solution is found by integrating:
Example: Find the general solution to dxdy=cos(2x)−4x.
This is a family of curves, all differing by a constant.
Particular Solutions and Initial Conditions
A particular solution is a single solution obtained by determining the constants in the general solution.
An initial condition is a given value of the function (or its derivative) used to determine those constants.
When a differential equation is given together with an initial condition, it is called an initial value problem (IVP).
Example: General Solution → Particular Solution
Solve dxdy=x2+91 with y(3)=0.
Find the general solution by integrating: $$y = \int \frac{1}{x^2 + 9} dx = \frac{1}{3}\arctan\left(\frac{x}{3}\right) + C$$
Apply the initial condition y(3)=0: $$0 = \frac{1}{3}\arctan\left(\frac{3}{3}\right) + C = \frac{1}{3} \cdot \frac{\pi}{4} + C = \frac{\pi}{12} + C$$ $$C = -\frac{\pi}{12}$$
The particular solution is: $$y = \frac{1}{3}\arctan\left(\frac{x}{3}\right) - \frac{\pi}{12}$$
Common mistake: Answering with just C=−12π — the answer to a DE must be a function, not just a constant.
Verifying a Solution to an IVP
Determine if y=xlnx+2x satisfies xdxdy−y=x with y(1)=2.
Find dxdy using the product rule: $$\frac{dy}{dx} = x \cdot \frac{1}{x} + \ln x \cdot 1 + 2 = 1 + \ln x + 2 = 3 + \ln x$$
Substitute into the DE: $$x(3 + \ln x) - (x \ln x + 2x) = 3x + x \ln x - x \ln x - 2x = x$$ The DE is satisfied.
Check the initial condition: $$y(1) = 1 \cdot \ln 1 + 2 \cdot 1 = 0 + 2 = 2$$ The initial condition is satisfied.
Thus y=xlnx+2x is a solution to the IVP.
Solving an IVP with u-Substitution
Solve dxdy=3x2+12x with y(0)=1.
Integrate: $$y = \int \frac{2x}{3x^2 + 1} dx$$
Let u=3x2+1, du=6xdx, so 31du=2xdx: $$y = \int \frac{1}{3} \cdot \frac{du}{u} = \frac{1}{3}\ln|u| + C = \frac{1}{3}\ln(3x^2 + 1) + C$(Absolutevaluenotneededsince3x^2 + 1 > 0$.)
Apply y(0)=1: $$1 = \frac{1}{3}\ln(1) + C = 0 + C \quad \Rightarrow \quad C = 1$$
Particular solution: $$y = \frac{1}{3}\ln(3x^2 + 1) + 1$$
Constant Solutions and Qualitative Analysis
Sometimes DEs are difficult or impossible to solve explicitly. In such cases, we can still learn about the behavior of solutions by analyzing the DE itself.
Finding Constant Solutions
A constant solution y(t)=a satisfies dtdy=0. Set dtdy=0 and solve for y.
Example: dtdy=y4−6y3+5y2
Set derivative to zero: $$0 = y^4 - 6y^3 + 5y^2 = y^2(y^2 - 6y + 5) = y^2(y-5)(y-1)$$
Zero product property: $$y = 0, \quad y = 1, \quad y = 5$$
These are the constant solutions. If the initial condition equals one of these numbers, the solution remains at that value forever.
Determining Where Solutions Increase or Decrease
Recall from calculus:
y is increasing when dtdy>0
y is decreasing when dtdy<0
Use a sign chart (number line) with the critical points (where dtdy=0). Select test values in each interval.
Example (continued): For dtdy=y2(y−5)(y−1):
Critical points: y=0,1,5
Interval | Test value | Sign of y2 | Sign of (y−5) | Sign of (y−1) | Sign of dtdy |
|---|---|---|---|---|---|
(−∞,0) | −1 | + | − | − | + |
(0,1) | 0.5 | + | − | − | + |
(1,5) | 2 | + | − | + | − |
(5,∞) | 6 | + | + | + | + |
Result:
y is increasing on (−∞,0), (0,1), and (5,∞).
y is decreasing on (1,5).
Note: Endpoints where derivative is zero are not included.
Application: Population Growth and Logistic Model
Differential equations model many real-world phenomena. A classic example is population modeling.
The Logistic Differential Equation
p = population
k = growth rate (positive constant)
K = carrying capacity — the maximum population the environment can sustain
Constant (Equilibrium) Solutions
Set dtdp=0:
Solutions:
p=0 (extinction)
p=K (carrying capacity)
These are called equilibrium solutions.
Example: dtdp=1.5p(1−2000p)
Equilibrium solutions: p=0 and p=2000.
Increasing/Decreasing in Context
For population, p≥0. Critical points are 0 and 2000.
On (0,2000): dtdp>0 → population increasing
On (2000,∞): dtdp<0 → population decreasing
Interpretation:
From 0 up to the carrying capacity (2000), the population grows.
If the population exceeds the carrying capacity, it begins to decline, because the environment cannot support that many individuals.
The logistic model accurately captures constrained growth: initial rapid growth that slows as the population approaches the carrying capacity.
Summary
Concept | Definition |
|---|---|
Differential equation | An equation involving an unknown function and its derivatives |
Order | Highest order derivative in the equation |
Solution | A function that satisfies the DE when substituted |
General solution | Family of solutions with arbitrary constant(s) |
Particular solution | A specific solution found using initial conditions |
Initial value problem (IVP) | DE + initial condition(s) |
Constant solution | Solution where derivative is identically zero |
Equilibrium solution | Constant solution in a population model (carrying capacity) |
Logistic DE | dtdp=kp(1−Kp) models population with carrying capacity K |
Differential equations are a powerful tool for modeling rates of change in fields ranging from physics and engineering to biology and economics. Even when explicit solutions are impossible, qualitative analysis (constant solutions, increasing/decreasing behavior) provides valuable insight into the dynamics of the system.

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