You are here: Home Mathematics Elements of Calculus I Calculus Applets Website Sum and Difference

Sum and Difference

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.

What is the derivative of the sum of two functions? Of their difference? This page begins to explore the derivative of function combinations. Note that the applet on this page does not have a limit control panel, in order to make room for all three graphs (but it does have zoom buttons).

Try the following:

  1. The example shows three graphs: f (x) = x, g (x) = x2, and h (x) = f (x) + g (x). There is also a tangent line on each graph, the position of which is controlled by the x slider. Text at the bottom of each graph shows the value of the function at the current x position. Note that the value of h (x) is just the sum of the values of f (x) and g (x), as you can verify by adding the f and g values. Now, look in the top right corner of each graph, which shows the slope of the tangent line. The slope for the tangent line of f is constant, since f is a straight line, but the slope of g changes as you change x. What is the slope of the tangent line for h? How does it relate to the slopes for f and g?

  2. Select the second example, showing a parabola and a sine curve. How is the slope of h's tangent line related to the slopes of f and g? It appears that the slope of h is just the sum of the slopes of f and g. You can try some more examples by typing different functions in for f and g. You can even create your own graph by clicking one or both of the "Use Mouse" check boxes. The graph now shows a straight line with some small squares. Click and drag one of these squares to change the shape of the function. You can move them up and down to create a really curvy graph! Then, move the slider and see if the slope of h is still the sum of the slopes of f and g. The general rule is (d/dx)(f(x)+g(x))=f'(x)+g'(x)or, in other words, the derivative of a sum is the sum of the derivatives.

  3. Select the third example. This is just like the second example, but now h is defined as the difference between f and g. How is the slope of h related to those of f and g? If you play with the slider and maybe try some of your own function definitions for f and g, you should find that the derivative of a difference is just the difference of the derivatives, or (d/dx)(f(x)-g(x))=f'(x)-g'(x).

  4. Select the fourth example, showing the product of f and g. Is the slope of h the product of the slopes of f and g? It doesn't look like it. You can really see something isn't right if you set x = 0.5. Here the slope of f is 1, but the slope of h is not the same as the slope of g! So the derivative of a product of two functions isn't the product of the derivatives, but something more complex (which we will see later). If you edit the definition of h to be f (x) / g (x), you will quickly see that the derivative of the quotient of two functions is also not so simple. Lastly, try making h (x) = f (g (x)) and play around; you will notice that function composition is also more complex than sums and differences.

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