Study Guide

Separation of variables for differential equations

IB Mathematics AI HLΒ· 25 min read

1. Identifying Separable Differential Equationsβ˜…β˜…β˜†β˜†β˜†β± 8 min

A first-order differential equation is separable if it can be rearranged to isolate all terms on one side and all terms on the other.

dydx=f(x)g(y)\frac{dy}{dx} = f(x)g(y)
πŸ“˜ Definition

Separable differential equation

A first-order differential equation that can be split into two independent functions of and , allowing separate integration of each variable.

Example:

is separable, while is not.

πŸ“ Worked Example

Determine if is separable.

  1. 1

    Factor the right-hand side into products of functions of only and only:

  2. 2
    dydx=(x1+x2)Γ—y3\frac{dy}{dx} = \left(\frac{x}{1 + x^2}\right) \times y^3
  3. 3

    Since the first term depends only on and the second only on , the equation is separable.

βœ“ Quick check

Confirm your understanding:

  1. Is separable?

    • Yes

    • No

  2. Is separable?

    • Yes

    • No

    Reveal answer
    1 β€”

    This cannot be split into a product of -only and -only functions, so it is not separable.

2. Finding the General Solutionβ˜…β˜…β˜…β˜†β˜†β± 10 min

Once you confirm an equation is separable, follow these three core steps to get the general solution, which includes the arbitrary constant of integration representing the full family of solutions.

  1. Rearrange to group all terms with on one side, and all terms with on the other

  2. Integrate both sides with respect to their respective variables

  3. Simplify to express as a function of , leaving the constant of integration in place

πŸ“ Worked Example

Find the general solution of .

  1. 1

    Separate variables:

  2. 2
    1ydy=3x2dx\frac{1}{y} dy = 3x^2 dx
  3. 3

    Integrate both sides:

  4. 4
    ∫1ydy=∫3x2dx\int \frac{1}{y} dy = \int 3x^2 dx
  5. 5

    Evaluate integrals and add the constant of integration:

  6. 6
    ln⁑∣y∣=x3+C\ln|y| = x^3 + C
  7. 7

    Exponentiate to solve for , where is an arbitrary constant:

  8. 8
    y=Aex3y = A e^{x^3}

3. Finding Particular Solutions with Initial Conditionsβ˜…β˜…β˜…β˜†β˜†β± 7 min

Most exam problems give an initial condition (a point that the solution passes through) to find a single specific solution, called a particular solution.

πŸ“˜ Definition

Particular solution

A specific solution that satisfies both the differential equation and the given initial condition, with no arbitrary constants remaining.

πŸ“ Worked Example

Given with , find the particular solution.

  1. 1

    Start from the general solution found earlier:

  2. 2
    y=Aex3y = A e^{x^3}
  3. 3

    Substitute the initial condition to solve for :

  4. 4
    2=Ae03=A(1)β€…β€ŠβŸΉβ€…β€ŠA=22 = A e^{0^3} = A(1) \implies A = 2
  5. 5

    Substitute back to get the particular solution:

  6. 6
    y=2ex3y = 2 e^{x^3}

4. Applied Problems in Contextβ˜…β˜…β˜…β˜…β˜†HL only⏱ 10 min

Separation of variables is widely used to solve real-world rate problems, including population growth, radioactive decay, and cooling. You will first translate the problem description into a differential equation, then solve it using the steps above.

πŸ“ Worked Example

The rate of growth of a bacteria population is proportional to the current population at time hours. At , the population is 1000. After 2 hours, it is 3000. Find .

  1. 1

    Translate the problem into a differential equation, where is a constant of proportionality:

  2. 2
    dPdt=kP\frac{dP}{dt} = kP
  3. 3

    Separate and integrate to get the general solution:

  4. 4
    ∫1PdP=∫kdtβ€…β€ŠβŸΉβ€…β€ŠP(t)=Aekt\int \frac{1}{P} dP = \int k dt \implies P(t) = A e^{kt}
  5. 5

    Use the initial condition to find :

  6. 6
    1000=Ae0β€…β€ŠβŸΉβ€…β€ŠA=10001000 = A e^{0} \implies A = 1000
  7. 7

    Use the second condition to find :

  8. 8
    3000=1000e2kβ€…β€ŠβŸΉβ€…β€Š2k=ln⁑3β€…β€ŠβŸΉβ€…β€Šk=12ln⁑33000 = 1000 e^{2k} \implies 2k = \ln 3 \implies k = \frac{1}{2}\ln 3
  9. 9

    Write the final simplified solution:

  10. 10
    P(t)=1000(3)t2P(t) = 1000 (3)^{\frac{t}{2}}

5. Common Pitfalls

Wrong move:

Forgetting to add the constant of integration after integrating

Why:

Without the constant, you only get one arbitrary solution, not the general solution required for full marks

Correct move:

Add the constant of integration to one side immediately after integrating both sides

Wrong move:

Trying to separate non-separable differential equations

Why:

You will waste time in the exam and cannot get a correct solution with this method

Correct move:

Check if the right-hand side can be factored into before starting separation

Wrong move:

Adding separate constants to both the and sides

Why:

This creates unnecessary extra work and increases the risk of algebraic errors

Correct move:

Only add one constant to the side after integrating both sides

Wrong move:

Substituting the initial condition before integrating

Why:

You lose the information needed to correctly calculate the constant of integration

Correct move:

Find the full general solution first, then substitute the initial condition to find the constant

6. Quick Reference Cheatsheet

Step

Action

1

Check if (separable)

2

Rearrange:

3

Integrate both sides, add to one side

4

Simplify to get general solution

5

Substitute initial condition for particular solution

When this came up on past exams

AI-estimated based on syllabus patterns β€” cross-check with official past papers for accuracy. Use only as revision-focus signals.

  • 2021 Β· 2

    8-mark initial value problem

  • 2023 Β· 1

    5-mark population growth problem

What's Next

Separation of variables is the foundation for all differential equation work in IB Math AI HL, and is regularly tested in both paper 1 and paper 2, often in applied context problems worth 5-8 marks. Mastering this method will prepare you for numerical methods for differential equations and more complex population models, which are common topics in the final exam.