• Practice
  • About 15 min
  • 5 practice questions

Separable equations at exam speed

Spot separable equations that are disguised (factorising, rearranging, dividing), solve them quickly, and pin down particular solutions from given conditions.

If something looks wrong, please tell us.

Separation of variables is the first method to try on any first-order equation, and in exam-style questions the equation is often written so that its separable form is not obvious. This lesson shows how to uncover the form dy/dx = f(x)g(y), how to handle the logarithms and inverse tangents that appear, and how to find a particular solution quickly from a given condition.

Uncovering the separable form

Three moves reveal most disguised cases. Factorise: 1 + x + y + xy = (1 + x)(1 + y). Rearrange differentials: an equation written as P(x)Q(y) dx + R(x)S(y) dy = 0 separates after dividing by Q(y)R(x). Use laws of exponents: e^(x + y) = eˣeʸ and e^(x − y) = eˣe^(−y). If none of these works, the equation probably needs another method, such as the homogeneous or linear methods of the next two lessons.

Factorise, rearrange, or split exponentials until dy/dx = f(x)g(y). Then ∫ dy/g(y) = ∫ f(x) dx + C, with one constant, fixed by the condition.

Worked example 1: a factorisation

Solve dy/dx = 1 + x + y + xy. Factorise: dy/dx = (1 + x)(1 + y). For 1 + y > 0, separate: dy/(1 + y) = (1 + x) dx. Integrate: ln(1 + y) = x + x²/2 + C. With y(0) = 0 we get C = 0, so y = e^(x + x²/2) − 1. Missing the factorisation and trying to integrate x + y directly is the usual mistake.

Worked example 2: a constant on the right

Solve dy/dx + y = 1 with y(0) = 3. Rewrite as dy/dx = 1 − y, which is separable. For y ≠ 1: dy/(1 − y) = dx, so −ln|1 − y| = x + C₁, and 1 − y = Ae^(−x). Hence y = 1 − Ae^(−x). From y(0) = 3: 3 = 1 − A, so A = −2 and y = 1 + 2e^(−x). Check: dy/dx = −2e^(−x) and 1 − y = −2e^(−x).

Worked example 3: differential form

Solve x(1 + y²) dx − y(1 + x²) dy = 0. Divide by (1 + x²)(1 + y²): x dx/(1 + x²) = y dy/(1 + y²). Integrate both sides: ½ ln(1 + x²) = ½ ln(1 + y²) + c. Multiply by 2 and remove logarithms: 1 + y² = C(1 + x²), where C > 0. Writing the constant as ln C, or as a multiplying constant at the end, keeps the answer tidy.

Worked example 4: inverse tangents and a condition

Solve (1 + e^(2x)) dy + (1 + y²)eˣ dx = 0 with y(0) = 1. Separate: dy/(1 + y²) = −eˣ dx/(1 + e^(2x)). With u = eˣ, the right side integrates to −tan⁻¹(eˣ). So tan⁻¹ y + tan⁻¹(eˣ) = C. At x = 0, y = 1: π/4 + π/4 = C, so tan⁻¹ y + tan⁻¹(eˣ) = π/2. Inverse tangents use principal values here.

Common traps

  • Adding a constant on both sides: one constant is enough; two separate constants merge into one.
  • Dropping the modulus in ln|y| and then losing negative solutions; writing y = Ae^(...) with A of either sign avoids this.
  • Substituting the condition before integrating: always integrate first, then use the condition to find C.

Key takeaways

Before reaching for a harder method, try to write the equation as f(x)g(y): factorising, dividing out a differential form, and splitting exponentials are the three standard moves. Integrate each side once, add one constant, and fix it with the condition. A quick derivative check of the final answer costs seconds and confirms the whole chain.

Check your understanding

  1. 1. What is the solution of dy/dx = y tan x with y(0) = 1, for −π/2 < x < π/2?

    1. y = cos x
    2. y = sec x
    3. y = tan x + 1
    4. y = sin x + 1
    Show answer

    Answer: B. dy/y = tan x dx gives ln|y| = ln|sec x| + C, so y = A sec x. y(0) = 1 gives A = 1, so y = sec x. Check: y′ = sec x tan x = y tan x.

  2. 2. What is the solution of dy/dx + y = 1 with y(0) = 0?

    1. y = 1 − e^(−x)
    2. y = 1 + e^(−x)
    3. y = e^(−x)
    4. y = 1 − eˣ
    Show answer

    Answer: A. dy/dx = 1 − y gives y = 1 − Ae^(−x). y(0) = 0 gives A = 1. Check: y′ = e^(−x) = 1 − y.

  3. 3. What is the particular solution of (1 + e^(2x)) dy + (1 + y²)eˣ dx = 0 with y(0) = 1 (principal values)?

    1. tan⁻¹ y − tan⁻¹(eˣ) = 0
    2. tan⁻¹ y + tan⁻¹(eˣ) = π/4
    3. tan⁻¹ y + tan⁻¹(eˣ) = π/2
    4. tan⁻¹ y = tan⁻¹(eˣ) + π/2
    Show answer

    Answer: C. Separating gives tan⁻¹ y + tan⁻¹(eˣ) = C. At x = 0, y = 1: C = π/4 + π/4 = π/2.

  4. 4. The general solution of dy/dx = (x + 1)/(2 − y), y ≠ 2, represents which family of curves?

    1. Circles with centre (1, −2)
    2. Circles with centre (−1, 2)
    3. Parabolas with vertex (−1, 2)
    4. Straight lines through (−1, 2)
    Show answer

    Answer: B. (2 − y) dy = (x + 1) dx gives 2y − y²/2 = x²/2 + x + C, that is x² + 2x + y² − 4y = C′, or (x + 1)² + (y − 2)² = constant: circles centred at (−1, 2).

  5. 5. If dy/dx = x e^(−y) and y(0) = 0, what is y when x = 2?

    1. ln 3
    2. ln 2
    3. 2
    4. ln 5
    Show answer

    Answer: A. eʸ dy = x dx gives eʸ = x²/2 + C. y(0) = 0 gives C = 1. At x = 2, eʸ = 2 + 1 = 3, so y = ln 3.

Privacy · Terms · Refunds · Delivery