Separation of Variables (College Board AP® Calculus AB)

Study Guide

Test yourself
Roger B

Written by: Roger B

Reviewed by: Dan Finlay

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 fraction numerator italic d y over denominator italic d x end fraction equals g left parenthesis x right parenthesis h left parenthesis y right parenthesis

    • I.e. fraction numerator italic d y over denominator italic d x end fraction is equal to a function of x multiplied by a function of y

    • Be careful – the ‘function of xg left parenthesis x right parenthesis may just be a constant!

      • For example in fraction numerator italic d y over denominator italic d x end fraction equals 6 y, g left parenthesis x right parenthesis equals 6 and h left parenthesis y right parenthesis equals 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 open parentheses fraction numerator 1 over denominator h left parenthesis y right parenthesis end fraction close parentheses fraction numerator italic d y over denominator italic d x end fraction equals g left parenthesis x right parenthesis

    • E.g. space fraction numerator d y over denominator d x end fraction equals negative x y cubed space space rightwards double arrow space space minus 1 over y cubed fraction numerator d y over denominator d x end fraction equals x

      • g open parentheses x close parentheses equals x comma space h open parentheses y close parentheses equals negative y cubed

  • STEP 2
    Integrate both sides with respect to x

    • This changes the equation into the form integral fraction numerator 1 over denominator h left parenthesis y right parenthesis end fraction space d y equals integral g left parenthesis x right parenthesis space d x

    • E.g.space minus 1 over y cubed fraction numerator d y over denominator d x end fraction equals x space space rightwards double arrow space space integral fraction numerator negative 1 over denominator y cubed end fraction space d y equals integral x space d x

      • You can think of this step as ‘multiplying the italic d x 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. space integral fraction numerator negative 1 over denominator y cubed end fraction space d y equals integral x space d x space space rightwards double arrow space space minus integral y to the power of negative 3 end exponent space d y equals integral x space d x space space rightwards double arrow space space 1 half y to the power of negative 2 end exponent equals 1 half x squared plus C

  • STEP 4
    Rearrange the solution

    • E.g. space 1 half y to the power of negative 2 end exponent equals 1 half x squared plus C space space rightwards double arrow space space 1 over y squared equals x squared plus 2 C space space rightwards double arrow space space y squared equals fraction numerator 1 over denominator x squared plus 2 C end fraction

    • Note that you won't always be able to rewrite the solution in y equals f open parentheses x close parentheses form

      • In this case y equals square root of fraction numerator 1 over denominator x squared plus 2 C end fraction end root is not correct, because the solutions also include the y equals negative square root of fraction numerator 1 over denominator x squared plus 2 C end fraction end root option

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

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

      • So space y squared equals fraction numerator 1 over denominator x squared plus C end fraction 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

Worked Example

Use separation of variables to solve the differential equation space fraction numerator italic d y over denominator italic d x end fraction equals fraction numerator e to the power of x plus 4 x over denominator 3 y squared end fraction.

Answer:

Separate the variables, getting all the y terms on the fraction numerator d y over denominator d x end fraction side and all the x terms on the other side

3 y squared fraction numerator d y over denominator d x end fraction equals e to the power of x plus 4 x

Integrate both sides with respect to x

integral 3 y squared space d y equals integral open parentheses e to the power of x plus 4 x close parentheses space d x

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

y cubed equals e to the power of x plus 2 x squared plus C

This can be written in y equals f open parentheses x close parentheses form by taking the cube root of both sides

y equals cube root of e to the power of x plus 2 x squared plus C end root

Last updated:

You've read 0 of your 5 free study guides this week

Sign up now. It’s free!

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

the (exam) results speak for themselves:

Did this page help you?

Roger B

Author: Roger B

Expertise: Maths

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

Author: Dan Finlay

Expertise: Maths 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.