Separation of Variables (DP IB Analysis & Approaches (AA): HL): Revision Note

Separation of variables

What is separation of variables?

  • Separation of variables is a method that can be used to solve certain types of first order differential equations

  • Look out for equations of the form dydx=g(x)h(y)

    • i.e. dydx is a function of x multiplied by a function of y

  • If the equation is in that form you can use separation of variables to try to solve it

    • If the equation is not in that form you will need to use another solution method

Examiner Tips and Tricks

Be careful – the ‘function of xg(x) may just be a constant!

For example dydx=6y can be solved by separation of variables using g(x)=6 and h(y)=y.

How do I solve a differential equation using separation of variables?

  • STEP 1
    Rearrange the equation into the form (1h(y))dydx=g(x)
     

  • STEP 2
    Take the integral of both sides to change the equation into the form

                                            1h(y) dy=g(x) dx
     

    • You can think of this step as ‘multiplying the dx across and integrating both sides’

      • Mathematically that’s not quite what is actually happening, but it will get you the right answer here!

  • STEP 3
    Work out the integrals on both sides of the equation to find the general solution to the differential equation

    • Don’t forget to include a constant of integration

      • Although there are two integrals, you only need to include one constant of integration

    • Look out for integrals that require you to use partial fractions to solve them

      • See the ‘Integrating with Partial Fractions’ revision note in Further Integration

  • STEP 4
    Use any boundary or initial conditions in the question to work out the value of the integration constant
     

  • STEP 5
    If necessary, rearrange the solution into the form required by the question

Examiner Tips and Tricks

Unless the question asks for it, you don’t have to change your solution into y=f(x) form. Sometimes it might be more convenient to leave your solution in another form.

Be careful with letters. The equation in an exam question may not use xand y as the variables.

Worked Example

For each of the following differential equations, either (i) solve the equation by using separation of variables giving your answer in the form y=f(x), or (ii) state why the equation may not be solved using separation of variables.

a)       dydx=ex+4x3y2.

Answer:

5-10-2-ib-aa-hl-separation-of-variables-a-we-solution

b)       dydx=4xy2ln x.

Answer:

5-10-2-ib-aa-hl-separation-of-variables-b-we-solution

c)       dydx=2y2+2y, given that y=2 when x=0.

Answer:

5-10-2-ib-aa-hl-separation-of-variables-c-we-solution

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Build on this topic

Roger B

Author: Roger B

Expertise: Development Editor

Roger's teaching experience stretches all the way back to 1992, and in that time he has taught students at all levels between Year 7 and university undergraduate. Having conducted and published postgraduate research into the mathematical theory behind quantum computing, he is more than confident in dealing with mathematics at any level the exam boards might throw at you.

Dan Finlay

Reviewer: Dan Finlay

Expertise: Portfolio Lead

Dan graduated from the University of Oxford with a First class degree in mathematics. As well as teaching maths for over 8 years, Dan has marked a range of exams for Edexcel, tutored students and taught A Level Accounting. Dan has a keen interest in statistics and probability and their real-life applications.