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.
Matt Ondrus, Created with GeoGebra