Introduction to differential equations
Section titled “Introduction to differential equations”A differential equation usually does not tell you the value of a function directly. Instead, it tells you how the function changes. That is why differential equations show up whenever the important information is a rate: population growth, cooling, radioactive decay, motion, spread of a disease, charging a capacitor, or any situation where the future depends on the current state.
For example, saying
does not give the population immediately. It says the population grows at a rate proportional to how much population is already present. Solving the differential equation turns that rate rule into an actual population model.
For
the slope at a point depends on the coordinates of that point. A solution curve is a function whose tangent slope matches the differential equation everywhere it passes through.
However, a solution to a differential equation may be valid only on an interval, even if the algebraic expression looks broader. Restrictions can come from:
- division by zero during separation,
- logarithms introduced while integrating,
- initial conditions that choose one branch,
- points where the differential equation itself is undefined.
When solving an initial value problem, the interval of validity is usually the largest interval containing the initial input where the solution and differential equation both make sense.
Slope fields
Section titled “Slope fields”A slope field shows small line segments representing at many points.
In a slope field, each small segment represents the slope assigned by the differential equation at that point. Solution curves should follow the little segments smoothly. They should not cross each other for the same initial value problem because one input-output point should determine one local direction.
To sketch a solution curve through an initial condition, start at the given point and move in the direction of the nearby line segments. Do not connect the segments with sharp corners; the solution should be a smooth curve whose tangent direction matches the field. You can reason about the solution without solving the differential equation by asking where slopes are positive, negative, zero, steep, or shallow.
Euler’s method (BC-only)
Section titled “Euler’s method (BC-only)”Euler’s method is repeated linear approximation. At each step, use the current slope to move forward:
Starting from with step size :
where
Also keep track of the input:
The approximation improves when the step size is smaller, but AP questions usually care more about setting up the method correctly than about perfect numerical accuracy.
Euler’s method is like repeatedly using a tangent line for a short time. At , the differential equation gives the slope . If the step size is , then the tangent-line estimate says
So the next point is
The important detail is that each step uses the slope at the old point, not at the new point. After taking the step, you recalculate the slope using the new estimated point.
Example. Given with , use Euler’s method with step size to approximate in two steps.
At each step the new is the old plus times the slope at the current point. Start at .
Step 1. The slope at is , so
Step 2. The slope at is , so
Collecting the steps in a table:
So Euler’s method gives the approximation .
Separable differential equations
Section titled “Separable differential equations”A separable equation has the variables separated into an part and a part.
If
rewrite as
and integrate both sides.
The constant of integration belongs after integration, and an initial condition turns the general solution into a particular solution.
A general solution contains an arbitrary constant and represents a whole family of possible solution curves. A particular solution uses an initial condition to choose exactly one curve from that family.
For example, after separating variables you might get
That is a general solution because different values of give different curves. If the problem also says , then you substitute that point to find , giving the particular solution
Example. Solve with the initial condition .
Separate the variables, moving all factors with and all factors with :
Integrate both sides:
Multiplying by and renaming the constant gives the general solution
Apply the initial condition :
Since , take the positive square root to get the particular solution
First-order linear differential equations
Section titled “First-order linear differential equations”A first-order linear differential equation has the form
The standard method of solving is to multiply by an integrating factor
Then the left side becomes the derivative of a product:
After that, integrate both sides and solve for .
Example. Solve
with .
Here
The integrating factor is
Multiply the differential equation by :
The left side is
So
Integrate both sides:
Divide by :
Use :
Therefore the particular solution is
Second derivative from a differential equation
Section titled “Second derivative from a differential equation”If
then
often comes from differentiating implicitly:
When differentiating, remember that depends on . After finding , use its sign to describe whether solution curves are concave up or concave down.
Example. For solutions of
find in terms of and , then determine the concavity at the point .
Differentiate both sides with respect to :
Since depends on ,
Substitute :
At ,
The solution curve has zero second derivative at that point, so this test alone says the curve is an inflection point of the curve.
Exponential growth and decay
Section titled “Exponential growth and decay”If the rate of change is proportional to the amount present:
then
Proof (Exponential model equation). If
then the relative rate of change is constant:
Integrating gives
Exponentiating both sides gives
So exponentials are the natural functions whose rate of change stays proportional to their current value.
Example. A radioactive sample decays according to and has a half-life of years. Find the decay constant , and determine how much of an initial -gram sample remains after years.
The solution has the form , where is the initial amount. A half-life of years means that after the amount is half of :
Take the natural log of both sides and solve for :
With , the amount after years is
So grams remain. This matches the intuition that years is exactly three half-lives, leaving of the original.
Equilibrium solutions and stability
Section titled “Equilibrium solutions and stability”Equilibrium solutions are constant solutions where . For an autonomous differential equation
an equilibrium solution occurs when
At those -values, the slope is zero for every , so the solution can remain constant.
Stability:
- stable if nearby solutions move toward it,
- unstable if nearby solutions move away,
- semistable if nearby solutions move toward it from one side and away from it on the other.
For autonomous equations , a sign chart on is an efficient way to classify equilibria.
Example. Classify the equilibrium solutions of
Set the right side equal to zero:
Thus the equilibrium solutions are
Test the sign of on the intervals determined by and :
- If , then , so solutions move downward.
- If , then , so solutions move upward.
- If , then , so solutions move downward.
Solutions move away from , so is unstable. Solutions move toward from both sides, so is stable.
Logistic differential equation (BC-only)
Section titled “Logistic differential equation (BC-only)”The logistic model is
where is the carrying capacity.
Behavior:
- equilibrium solutions at and ,
- growth is fastest near ,
- solutions below increase toward .
Example. A population is modeled by . State the carrying capacity, the population at which growth is fastest, and the value of at that population.
Comparing with the standard form , we read off and . The carrying capacity is therefore
Growth is fastest at half the carrying capacity:
At , the rate of change is
So the population grows fastest, at individuals per unit time, when it reaches .
Tips for the exam
Section titled “Tips for the exam”Differential equation questions often move among four representations:
- a formula for ,
- a slope field,
- a particular solution through an initial condition,
- a verbal model of growth, decay, or limiting behavior.