Composite Functions

Topic:
Functions
Drag M along the curve y=f(x). What is the path being traced out by Q?
What insights does this graphical approach provide into the links between domains and ranges of the functions f(x), g(x) and gf(x)?  What does it show about turning points of the functions?