• Foundation
  • About 20 min
  • 5 practice questions

Variables separable method

Solve first-order, first-degree equations of the form dy/dx = g(x)h(y) by separating the variables, find particular solutions and curves through given points, and model growth.

If something looks wrong, please tell us.

A first-order, first-degree differential equation can be written as dy/dx = F(x, y). The simplest case is when F(x, y) splits into a part depending only on x times a part depending only on y. Then the x's and y's can be moved to opposite sides and each side integrated separately. This is the variables separable method, and the other methods in this chapter reduce to it.

The method

Suppose dy/dx = g(x) h(y). If h(y) ≠ 0, divide by h(y) and write dy/h(y) = g(x) dx. Integrate both sides: ∫ dy/h(y) = ∫ g(x) dx, which gives H(y) = G(x) + C, where H and G are antiderivatives of 1/h(y) and g(x). One arbitrary constant on one side is enough.

Solving by separating the variables

  1. Write the equation as dy/dx = g(x) h(y)
  2. Separate: dy/h(y) = g(x) dx
  3. Integrate both sides; add one constant C
  4. Simplify; use any given condition to find C

If dy/dx = g(x) h(y), then ∫ dy/h(y) = ∫ g(x) dx + C.

Worked examples

Worked example 1: a general solution

Solve dy/dx = e^(x − y). Since e^(x − y) = eˣ · e^(−y), the variables separate: eʸ dy = eˣ dx. Integrating, eʸ = eˣ + C is the general solution. (Taking logs, y = log(eˣ + C), where eˣ + C > 0.)

Worked example 2: a particular solution

Find the particular solution of dy/dx = 2xy given y = 3 when x = 0. For y ≠ 0, dy/y = 2x dx. Integrating, log |y| = x² + C₁, so |y| = e^(C₁) e^(x²), which we write as y = A e^(x²) with A a constant. Putting x = 0, y = 3 gives A = 3. The particular solution is y = 3e^(x²).

Worked example 3: a curve from its slope

Find the curve passing through (3, 4) whose slope at any point (x, y) is −x/y. The slope of the tangent is dy/dx, so dy/dx = −x/y, i.e. y dy = −x dx. Integrating, y²/2 = −x²/2 + C₁, or x² + y² = C (with C = 2C₁). At (3, 4): 9 + 16 = C, so C = 25. The required curve is x² + y² = 25, the circle of radius 5 centred at the origin. This fits geometry: the radius to (x, y) has slope y/x, and the tangent is perpendicular to it, with slope −x/y.

Worked example 4: proportional growth

In a laboratory culture (an illustrative example), the number N of bacteria grows at a rate proportional to N, and it triples in 5 hours. How long does it take to become 9 times the starting number N₀? The model is dN/dt = kN, k > 0. Separate: dN/N = k dt, so log N = kt + C, giving N = N₀ e^(kt) (since N = N₀ at t = 0). Tripling in 5 hours means e^(5k) = 3. Nine times means e^(kt) = 9 = 3² = (e^(5k))² = e^(10k), so t = 10 hours. No calculator is needed: a quantity growing at a rate proportional to itself multiplies by the same factor in equal times.

The same model describes money when interest is added continuously. If a sum P grows at r% per year continuously, dP/dt = (r/100)P, so P = P₀ e^(rt/100). The doubling time is t = (100 log 2)/r years. With r = 8 and log 2 ≈ 0.6931 (natural logarithm), t ≈ 69.31/8 ≈ 8.66 years (an illustrative calculation, not a bank rate).

Separating some common equations
EquationSeparated formGeneral solution
dy/dx = y/xdy/y = dx/xy = Cx
dy/dx = x/yy dy = x dxy² − x² = C
dy/dx = kydy/y = k dxy = Ae^(kx)
dy/dx = (1 + y²)xdy/(1 + y²) = x dxtan⁻¹ y = x²/2 + C
dy/dx = y cos xdy/y = cos x dxy = Ae^(sin x)

Key takeaways

  • The method works when dy/dx = g(x) h(y), a product of a function of x and a function of y.
  • Separate, integrate both sides, and add one constant.
  • log |y| = f(x) + C may be rewritten as y = A e^(f(x)).
  • A curve 'through a point' or a quantity 'at time 0' fixes the constant.
  • Growth at a rate proportional to size gives exponential functions.

Check your understanding

  1. 1. What is the general solution of dy/dx = y/x?

    1. y = Cx
    2. y = x + C
    3. xy = C
    4. y = Cx²
    Show answer

    Answer: A. Separate: dy/y = dx/x. Integrating, log |y| = log |x| + log |C|, so y = Cx: straight lines through the origin.

  2. 2. What is the general solution of dy/dx = x e^(−y)?

    1. e^(−y) = x²/2 + C
    2. y = x²/2 + C
    3. eʸ = x²/2 + C
    4. eʸ = x² + C
    Show answer

    Answer: C. Multiply by eʸ: eʸ dy = x dx. Integrating, eʸ = x²/2 + C.

  3. 3. Which is the particular solution of dy/dx = y cos x with y = 1 when x = 0?

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

    Answer: B. dy/y = cos x dx gives log |y| = sin x + C, so y = A e^(sin x). At x = 0, 1 = A e⁰, so A = 1 and y = e^(sin x). (e^(cos x) would give e, not 1, at x = 0.)

  4. 4. A quantity grows at a rate proportional to itself and doubles in 3 years. In how many years does it become 8 times its starting value?

    1. 6
    2. 8
    3. 12
    4. 9
    Show answer

    Answer: D. Q = Q₀ e^(kt) with e^(3k) = 2. Then 8 = 2³ = e^(9k), so t = 9 years. Equal times multiply the quantity by equal factors: 3 years gives ×2, 6 gives ×4, 9 gives ×8.

  5. 5. Assertion (A): dy/dx = x + y can be solved by separating the variables. Reason (R): An equation dy/dx = F(x, y) is variable separable when F(x, y) can be written as g(x) h(y).

    1. Both A and R are true, and R is the correct explanation of A
    2. Both A and R are true, but R is not the correct explanation of A
    3. A is true, but R is false
    4. A is false, but R is true
    Show answer

    Answer: D. R is the correct definition. But x + y is a sum, not a product g(x) h(y), so it cannot be separated as it stands; A is false. (This equation is linear and is solved in lesson 5.)

Sign in to keep track of the lessons you finish.

Next lesson → Homogeneous differential equations

Privacy · Terms · Refunds · Delivery