‹ Class 12 · Ch 9
Differential Equations · Principle 5 of 9

Separate and integrate

If dy/dx = g(x) h(y), put the y’s with dy and the x’s with dx, then integrate.

Stuck? Ask Guru

NCERT: 9.4.1 Differential equations with variables separable

Think

A product of two parts

Example 8: the slope of the tangent to a curve at any point (x, y) is 2x/y². So dy/dx = 2x · (1y²): a function of x times a function of y.

What can we do with dy/dx = 2x · (1y²)?

What this lesson covers

The idea

If dy/dx = g(x)h(y), separate the variables as dy/h(y) = g(x) dx (h(y) ≠ 0) and integrate both sides: H(y) = G(x) + C.

A product of two parts

Example 8: the slope of the tangent to a curve at any point (x, y) is 2x/y². So dy/dx = 2x · (1/y²): a function of x times a function of y.

What can we do with dy/dx = 2x · (1/y²)?

  • put the y terms with dy and the x terms with dx
  • integrate both sides with respect to x at once
  • nothing: it has y in it

Follow the slopes

Separating gives y² dy = 2x dx, so y³/3 = x² + C. Every curve follows the slope marks. Place the point and read C.

Variables separable

If dy/dx = g(x) h(y), the variables are separable. For h(y) ≠ 0 write dy / h(y) = g(x) dx and integrate both sides: H(y) = G(x) + C, where H and G are anti derivatives of 1/h(y) and g(x).

Example 8: y² dy = 2x dx gives y³/3 = x² + C. Through (−2, 3): 9 = 4 + C, so C = 5 and y³/3 = x² + 5, i.e. y = (3x² + 15)^(1/3).

Example 9: money grows continuously at 5% a year, dP/dt = P/20. Separating, dP/P = dt/20, so log P = t/20 + C₁ and P = 1000 eᵗᐟ²⁰ for Rs 1000. It doubles when t = 20 log 2 ≈ 13.9 years.

Notes

dy/dx = g(x) h(y): separate, dy/h(y) = g(x) dx, and integrate both sides: H(y) = G(x) + C. A given point then fixes C.

Check yourself

Example 4: dy/dx = (x + 1)/(2 − y). After separating the variables:

Example 6: dy/dx = −4xy², and y = 1 when x = 0. The general solution is y = 1/(2x² − C). Find C.

Answer: -1

1 = 1/(−C) gives C = −1, so the particular solution is y = 1/(2x² + 1).

Exercise 9.3, Q23: the general solution of dy/dx = eˣ⁺ʸ is …

Example 9: P = 1000 eᵗᐟ²⁰. After how many years is the money doubled? (log 2 ≈ 0.6931; decimals are fine)

Answer: 13.86

t/20 = log 2, so t = 20 log 2 ≈ 13.86 years.

  • (2 − y) dy = (x + 1) dx — correct. Yes! Multiply both sides by (2 − y) dx. Integrating gives x² + y² + 2x − 4y + C = 0.
  • dy/(2 − y) = (x + 1) dx. Multiply by (2 − y): it goes on top, beside dy.
  • (x + 1) dy = (2 − y) dx. The x terms must go with dx and the y terms with dy.
  • eˣ + eʸ = C. ∫ e⁻ʸ dy = −e⁻ʸ, not eʸ.
  • e⁻ˣ + e⁻ʸ = C. ∫ eˣ dx = eˣ: the x side keeps eˣ.
  • eˣ + e⁻ʸ = C — correct. Yes! e⁻ʸ dy = eˣ dx gives −e⁻ʸ = eˣ + c, that is eˣ + e⁻ʸ = C.
  • e⁻ˣ + eʸ = C. Both signs are the wrong way round.