Graph Transformations
This sketch shows the effects of horizontal and vertical shifting and scaling on the graph of a cubic.
The original function is f(x)=(1/12)(x+3)(x-1)(x-4). The 1/12 is to get a good picture in terms of y-values.
yshifted(x)=f(x-hshift)+vshift
yscaled(x)=vscale*f(hscale*x)
ytransformed(x)=vscale*f(hscale*(x-hshift))+vshift
Note that you can change the scale of the graph displayed by clicking and dragging the axes.