An Applet for Visual Composition of Functions

To visually see composition  of functions, h(x)=f(g(x)), it is helps to have three dimensions available.  Then we can make y=g(x) and z=f(y).

The applet has 4 windows, a control panel, an X variable window with a slider to control the value of x, and 2 windows, 2D View and 3D View,  to look at the composition of functions.  

2D View has 3 [color coded] graphs, z=f(y) [green], y=g(x) [red], and z=f(g(x)) [blue].

3D View graphs z=f(y) in the y-z-plane, and y=g(x) in the x-y-plane.  [The same green-red-blue color code is used.]  Connected to these curves we have surfaces obtained  by expanding in the unused dimension.
The intersection of the two surfaces traces out a curve for the composite function.

To compare the space curves with their two dimensional counterparts view down the appropriate axis.  [This can either be done with a selection from the view menu of the 3D View window, or by rotating that graph appropriately, or by  selecting 3D View and typing, x to view down the x axis and see the green curve, z to view down the z axes and see the red curve, or Y to view up the y axis and see the blue curve.]





Things to notice:


This applet was designed as by modifying an applet from a demo by Tom Banchoff at Brown University.  It is used with permission.   Go to the Banchoff Applet Help page.

Return to the Banchoff Applet page.
Return to the SLU Calculus Applet page.

Return to the Saint Louis University Department of Mathematics and Computer Science home page

Last updated By Mike May, S.J. ,  October 6, 2006.