You are here: Home Mathematics Elements of Calculus I Calculus Applets Website Intro. to Differential Equations

Intro. to Differential Equations

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.

Suppose we have an equation like dy/dx = 2x and want to find a solution. Equations with derivatives are called differential equations and solving them means finding a function that satisfies the equation. In this case, y = f (x) = x² + C provides the family of solutions. If we also knew that y = 3 when x = 0, then we'd know that y = x² + 3 is the specific solution. This applet explores solutions to differential equations.

Try the following:

  1. The applet shows a graph of the solution to dy/dx = 2x. The gray curve shows the solution that passes through the point (0,0), while the magenta curve shows the solution through the point (0,3), which is the example cited above. You can change the point (called the initial condition) which determines the specific member of the family of solutions by typing into the x and y boxes, moving the sliders, or click-dragging the magenta point on the graph. In particular, set x = 0 and move the y slider, noticing what happens to the graph. Is this what you expect? Now set y = 0 and move the x slider. What happens to the graph? You might have expected the graph to move right and left, but in fact it moves up and down. This is because the family of solutions are all just vertically displaced parabolas; moving the initial condition point horizontally picks out a different vertically-displaced parabola. In particular, set x = 1 and y = -1. What is the equation for the resulting solution? We can figure this out by plugging the coordinates of the point into the general solution to find C: -1 = (1)² + C, so C = -2. Note: on this graph, zooming with the mouse is disabled, to prevent accidental zooms when trying to click/drag the point. Panning with the mouse is supported (with right click on Windows/Linux systems and option-click on Macintosh systems).

  2. Select the second example from the drop down menu, showing dy/dx = cos x. Move the sliders or drag the point to see various specific solutions. As above, if we have a specific x,y pair that we want the solution to pass through, we just substitute those values into the general solution, y = sin x + C, and solve for C.

  3. You can type in your own right-hand side for the differential equations and press Enter to graph the solution. Note that functions with vertical asymptotes will cause problems, partly due to the specific algorithms that the software uses to graph the solution, but also due to the infinities that can result from such asymptotes (we'll see more about this later). Note that if you zoom out, you might see that the curves abruptly stop; this is an artifact of the algorithm used to draw the solutions (the curves actually should keep going).

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