# Chain Rule with Lines

- Author:
- Dr. Doug Davis, 3D

## Description

This is an illustration of the Chain Rule of Differentiation using two straight lines. The chain rule allows you to take the derivative of composite functions. In this case two lines are shown representing the linear functions . The composite function can be easily calculated as . The slope of the composite function can be seen to be the product of the slopes of the component functions. This follows the chain rule
value can be changed by dragging the diamond point.
The equations for the lines can be edited to change the slope and -intercepts in the text entries.
When "Show " is checked a slider for value which is passed through both functions. A shaded region is used to show how the rise varies when the run is changed. For example if the rise is twice as wide as the run.
When "Show f(g(x))" is checked the single equivalent composite function is shown. This is the calculated function for shown above. The data path of the data is also shown with dotted lines.

**Using the Applet**The applet also shows the path of the values from the abscissa (independent variable) to the ordinate( dependent variable) through both functions. The*h*can be used to adjust a change in the**Things to Do**Move the x diamond to see how the data flows through both functions. Change the slope and