Solving by separating the variables
If dy/dx = g(x)·h(y), put all the y terms with dy and all the x terms with dx, then integrate both sides and add one constant.
The method
- 1Write the DE as dy/dx = g(x)·h(y). Factorise first if needed, e.g. e^(x + y) = eˣ·eʸ.
- 2Separate: dy/h(y) = g(x) dx. Every y goes with dy, every x goes with dx.
- 3Integrate both sides: ∫ dy/h(y) = ∫ g(x) dx.
- 4Add one arbitrary constant C on one side. This is the general solution.
- 5If a condition such as y(0) = 1 is given, substitute it to find C. This gives the particular solution.
Example 1: direct
Find the general solution of dy/dx = e^(3x + 2y).
- Use the law of indices: e^(3x + 2y) = e³ˣ·e²ʸ.
- So dy/dx = e³ˣ·e²ʸ. Separate: e⁻²ʸ dy = e³ˣ dx.
- Integrate both sides: ∫ e⁻²ʸ dy = ∫ e³ˣ dx.
- −(1/2)e⁻²ʸ = (1/3)e³ˣ + C
- Multiply by 6: −3e⁻²ʸ = 2e³ˣ + 6C.
- Write K = −6C: 2e³ˣ + 3e⁻²ʸ = K.
2e³ˣ + 3e⁻²ʸ = K, where K is an arbitrary constant.
Example 2: with an initial condition
Find the particular solution of (1 + x²) dy/dx = 2x(y + 1), given that y = 2 when x = 0.
- Separate: dy/(y + 1) = 2x/(1 + x²) dx.
- Integrate: ∫ dy/(y + 1) = ∫ 2x/(1 + x²) dx.
- log|y + 1| = log(1 + x²) + log|C| (writing the constant as log|C| makes the next step easy).
- So y + 1 = C(1 + x²). This is the general solution.
- Use y = 2 when x = 0: 2 + 1 = C(1 + 0), so C = 3.
- y + 1 = 3(1 + x²), so y = 3x² + 2.
- Check: dy/dx = 6x. LHS = (1 + x²)(6x) = 6x + 6x³. RHS = 2x(3x² + 3) = 6x³ + 6x.
y = 3x² + 2
Example 3: money that grows continuously
₹ 5000 is kept in a bank where it grows continuously at 4% per year. In how many years will it double? (Take logₑ 2 = 0.6931.)
- Let A be the amount after t years. dA/dt = (4/100)A = 0.04A.
- Separate: dA/A = 0.04 dt.
- Integrate: logₑ A = 0.04t + C.
- At t = 0, A = 5000, so C = logₑ 5000.
- logₑ(A/5000) = 0.04t, that is A = 5000e^(0.04t).
- To double, A = 10000: logₑ 2 = 0.04t.
- t = 0.6931/0.04 = 17.3275
About 17.33 years (rounded to 2 decimal places).
Mistakes that cost marks
- Adding a constant on both sides. One C is enough.
- Leaving an x on the dy side. Separate completely before you integrate.
- Writing log y instead of log|y| when y may be negative.
- Forgetting to use the given condition. A question that gives y(0) wants a particular solution.
The rule dN/dt = kN predicts how fast bacteria multiply in milk or cooked rice left out on a hot day. That is why food safety advice says to refrigerate leftovers quickly.
1 marks: “Find the general solution of dy/dx = y/x (x, y ≠ 0).” dy/y = dx/x, so log|y| = log|x| + log|C|. Hence y = Cx.
2 marks: “Solve dy/dx = x³e⁻ʸ.” Separate: eʸ dy = x³ dx. Integrate: eʸ = x⁴/4 + C.
3 marks: “Find the particular solution of dy/dx = 3x²(1 + y²), given y = 1 when x = 0.” dy/(1 + y²) = 3x² dx, so tan⁻¹ y = x³ + C. At x = 0, y = 1: C = tan⁻¹ 1 = π/4. So y = tan(x³ + π/4).
Separate, integrate, add one C, then use the condition.