Separation of Variables (College Board AP® Calculus AB): Revision Note

Roger B

Written by: Roger B

Reviewed by: Dan Finlay

Updated on

Separation of variables

What is separation of variables?

  • Separation of variables 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 equal to a function of x multiplied by a function of y

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

      • For example in dydx=6y, g(x)=6 and h(y)=y

  • If the equation is in that form

    • then you can use separation of variables to try to solve it

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

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

    • E.g.  dydx=xy3    1y3dy=xdx

      • g(x)=x, h(y)=y3

  • STEP 2
    Integrate both sides with respect to x

    • This changes the equation into the form 1h(y)dy=g(x)dx

    • E.g. 1y3dy=xdx    1y3 dy=x dx

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

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

  • STEP 3
    Work out the integrals on both sides of the equation

    • Don’t forget to include a constant of integration

      • You only need one constant of integration, even though there are two integrals

    • E.g.  1y3 dy=x dx    y3 dy=x dx    12y2=12x2+C

  • STEP 4
    Rearrange the solution

    • E.g.  12y2=12x2+C    1y2=x2+2C    y2=1x2+2C

    • Note that you won't always be able to rewrite the solution in y=f(x) form

      • In this case y=1x2+2C is not correct, because the solutions also include the y=1x2+2C option

      • If an exam question requires the answer in a particular form, be sure to rearrange into that form

    • Also note that 2C is just another arbitrary integration constant

      • So  y2=1x2+C would be a 'neater' way to write the solution

  • This method gives the general solution to the differential equation

    • For finding the particular solution, see the 'Particular Solutions' study guide

Examiner Tips and Tricks

Just because a separated equation has a fraction in it doesn't guarantee a logarithm in the answer. Students sometimes incorrectly assume that logarithms will be used if a fraction is involved. However, this is not the case. For example, 1y3dy=12y2+C.

Worked Example

Use separation of variables to solve the differential equation  dydx=ex+4x3y2.

Answer:

Separate the variables, getting all the y terms on one side and all the x terms on the other side

3y2dy=(ex+4x)dx

Integrate both sides with respect to x

3y2 dy=(ex+4x) dx

Integrate (and don't forget a constant of integration!)

y3=ex+2x2+C

This can be written in y=f(x) form by taking the cube root of both sides

y=ex+2x2+C3

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.