Differential equations · Grade 12
In Grade 12 you learn: separating variables.
A differential equation links a quantity to its rate of change. Think of a population growing in proportion to its size, or tea cooling faster when it is hotter. Solving one means finding the function itself. A starting value usually fixes the constant.
Key facts
- dy/dx = f(x): integrate directly. Then use a known point to find the constant.
- Separable dy/dx = f(x)g(y): rearrange to ∫ 1/(g(y)) dy = ∫ f(x) dx.
- dy/dt = ky gives y = y₀e^(kt). This is growth if k > 0 and decay if k < 0. The half-life is (ln 2)/(|k|).
- Newton’s law of cooling: dT/dt = −k(T − R), where R is the room temperature. It gives T = R + (T₀ − R)e^(−kt).
- Linear first order dy/dx + P(x)y = Q(x): multiply through by the integrating factor e^(∫P dx).
- ay″ + by′ + cy = 0: solve am² + bm + c = 0. Distinct roots give Ae^(m₁x) + Be^(m₂x). A repeated root gives (A + Bx)e^(mx). Roots p ± qi give e^(px)(A cos qx + B sin qx).
Worked examples
Example 1
Solve dy/dx = 6x^2 − 2, given that y = 4 when x = 1.
Answer: y = 2x³ − 2x + 4
Example 2
Bacteria grow so that dP/dt = 0.3P (t in hours), with P = 200 at t = 0. Find P after 5 hours, and when P reaches 1,000.
Answer: About 896 after 5 hours. P reaches 1,000 after about 5.36 hours.
Example 3
Solve y″ − 5y′ + 6y = 0 with y(0) = 2 and y′(0) = 5.
Answer: y = e^(2x) + e^(3x)
Example 4
Solve dy/dx = 2x, given that y = 5 when x = 0.
Answer: y = x² + 5