You are here: Home Mathematics Elements of Calculus I Calculus Applets Website Separation of Variables

Separation of Variables

Document Actions
  • Content View
  • Bookmarks
This file is part of a distribution of the Calculus Applets website (http://www.calculusapplets.com) (v1.1) which has been reformatted for the needs of this OpenCourseware course.

Many differential equations are not solvable except by either numerical methods or by guess-and-check. Some, however, can be solved by separating the x's and y's, then integrating.

Try the following:

  1. The applet shows the slope field for dy/dx = y. The solution appears to be an exponential function. In fact, if we guess that y = ex and plug that in, we find that it works (i.e., dy/dx = e^x = y). We can be more methodical by using a technique called separation of variables. You start with the differential equation and use algebra to move the y's to the left-hand side and the x's to the right-hand side. You also treat dy and dx as if they were objects and move them, using algebra, to the appropriate sides. Then integrate both sides and simplify. For this example, it looks like sep vars. In the first step, we divide both sides by y, then multiply both sides by dx. Integrating both sides by their respective variables yields the result. Note that, since both C's are just arbitrary constants, we can subtract either one of them from both sides and then combine them into a new arbitrary constant to get sep vars. Exponentiating both sides gives sep vars, where we converted eC to a new arbitrary constant A>0. Getting rid of the absolute value just allows A to also be negative. Can A be 0? We need to check this case, because when we initially divided by y on both sides, we might have lost the solution y = 0. In fact, this is a solution, so we wind up with exponential as the family of solutions for this differential equation, where A can be any real number.

    Separation of variables only works if we can move the y's to the left-hand side using multiplication or division, not addition or subtraction. So something like dy/dx = x + y is not separable, but dy/dx = y + xy is separable, because we can factor the y out of the terms on the right-hand side, then divide both sides by y. An equation like dy/dx = (x + 3)/(y - 2) is also separable, because we can multiply both sides by (y - 2); it is ok to move constants to either side. Your calculus textbook may have other examples of separable differential equations that you can type in to this applet and see what the graph looks like (remembering that if the solution isn't a function of x, the graphing algorithm may mess up).

For more information on rights and downloading, refer to http://www.calculusapplets.com/download.html.

© Copyright 2001 David J. Eck

© Copyright 2007 Thomas S. Downey

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

You must cause any files that you modify to carry prominent notices stating that you changed the files and the date of any change, and modified files must be put into a Java package different from edu.hws.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Reuse Course
Download IMS package
Study Group