Introduction to Differential Equations

Suppose we have an equation like 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.

 See About the calculus applets for operating instructions. This device cannot display Java animations. The above is a substitute static image

## 1. Derivative is a line

The initial applet shows the graph of the solution to 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? Solve this 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. Derivative is Cosine

Select the second example from the drop down menu, showing 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

## Explore

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). While you are here..

... I have a small favor to ask. Over the years we have used advertising to support the site so it can remain free for everyone. However, advertising revenue is falling and I have always hated the ads. So, would you go to Patreon and become a patron of the site? When we reach the goal I will remove all advertising from the site.

It only takes a minute and any amount would be greatly appreciated. Thank you for considering it!   – John Page

Become a patron of the site at   patreon.com/mathopenref

## Acknowledgements

Derived from the work of Thomas S. Downey under a Creative Commons Attribution 3.0 License.