Topic 1 of 6
Step 20: Differential equations
Separable and first-order linear equations
Step 20 · Differential equations topics
Solve first-order equations by separating the variables or with an integrating factor, and use them to model growth, cooling and mixing.
Separable equations
A differential equation links an unknown function with its derivatives, and a solution is a function that makes it true. In a separable equation, , move every y to one side and every x to the other, then integrate both sides.
Example: Exponential growth
Solve with y(0) = 50.
- Separate: .
- Integrate: , so .
- y(0) = 50 gives A = 50.
Answer
Example: A product
Solve with y(0) = 1.
- Separate: .
- Integrate: , and y(0) = 1 gives C = −1.
- So .
Answer
Integrating factors
A first-order linear equation has the form y′ + p(x)y = q(x). Multiply through by the integrating factor . The left side becomes the derivative of μy, and one integration finishes the job.
Example: A constant coefficient
Solve y′ + 2y = 6 with y(0) = 1.
- μ = , and the equation becomes .
- Integrate: , so .
- y(0) = 1 gives C = −2.
Answer
Example: A varying coefficient
Solve for x > 0.
- , so (xy)′ = x².
- Integrate: .
Answer
Modeling with first-order equations
| Situation | Equation | Behavior |
|---|---|---|
| Growth or decay | Exponential | |
| Cooling | Approaches the surroundings | |
| Logistic growth | Levels off at K | |
| Mixing tank | Rate in minus rate out | Approaches a steady level |
Example: Cooling coffee
Coffee at 90°C sits in a 20°C room and cools to 60°C in 10 minutes. Find its temperature t minutes in.
- T − 20 decays exponentially: .
- At t = 10: , so , about 0.056.
Answer
Example: A mixing tank
A 100 L tank of pure water has brine with 2 g of salt per liter flowing in at 5 L/min, and the mixture drains at 5 L/min. How much salt is there after a long time?
- The salt S changes at : 10 g a minute in, and 5% of the salt out each minute.
- The steady level is where S′ = 0: S = 200.
AnswerClose to 200 g: the tank ends up at 2 g a liter, like the brine
Try it yourself
Work each one on paper first, then open the answer to check.
Solve with y(0) = 8.
Show answer
Solve with y(0) = 2.
Show answer
Find the integrating factor for y′ + 3y = x.
Show answer
Solve y′ + y = 4 with y(0) = 0.
Show answer
A substance has a half-life of 5 years. What is k in ?
Show answer
ln 2 ÷ 5, about 0.139
In , what level does P approach?
Show answer
500