Separable Differential Equations
What You’ll Learn
Section titled “What You’ll Learn”In this lesson you’ll learn how to solve separable differential equations, the most approachable class of first-order DEs. If you can integrate, you can solve these.
The Concept
Section titled “The Concept”A first-order differential equation is separable if you can write it in the form
The key idea: get all the y stuff on one side and all the x stuff on the other, then integrate both sides independently.
After integrating, solve for y if possible and include the constant of integration. If you have an initial condition like y(0) = 3, plug it in to find the specific constant.
Worked Examples
Section titled “Worked Examples”Example 1: Basic separable equation
Solve dy/dx = 2xy.
Separate the variables by dividing both sides by y
Integrate both sides
Exponentiate both sides to solve for y
where A = ±e^C is an arbitrary constant. The slope field below shows this equation with three solution curves for different values of A.
The curves grow rapidly away from x = 0 because the slope 2xy gets larger as both x and y increase. Near x = 0 the slopes are nearly flat, which matches the horizontal segments in the field.
Example 2: Initial value problem
Solve dy/dx = y² with y(0) = 2.
Separate variables
Integrate both sides
Apply the initial condition y(0) = 2
So the specific solution is
Solve for y
This solution has a vertical asymptote at x = 1/2. The function blows up to infinity there, which makes sense: the slope y² grows faster and faster as y increases, creating a runaway effect.
The solid blue curve is the actual solution starting from (0, 2). It shoots up toward infinity as x approaches 1/2 from the left. The faded branch on the right side of the asymptote is the other piece of the function, but it’s not part of our solution since we can’t cross the asymptote.
Example 3: Newton’s Law of Cooling
A cup of coffee at 90°C is placed in a room at 20°C. The temperature T satisfies
where k is a positive constant. Separate variables by letting u = T - 20, so du = dT
Substituting back
At t = 0, T = 90, so A = 70. The temperature decays exponentially toward the room temperature of 20°C, never quite reaching it.
Real-World Application
Section titled “Real-World Application”Separable DEs model tons of real-world processes:
- Population growth and radioactive decay (exponential models)
- Newton’s Law of Cooling (temperature equilibration)
- Drug concentration in the bloodstream over time
- Charging and discharging capacitors in circuits
- Game design: health regeneration, resource decay, and difficulty scaling over time