Stretching a graph vertically and horizontally

Try adjusting the values of a and b below. The red graph is stretched vertically by a factor of a and horizontally by a factor of 1/b.

Sorry, the GeoGebra Applet could not be started. Please make sure that Java 1.4.2 (or later) is installed and active in your browser (Click here to install Java now)

Matt Ondrus, Created with GeoGebra