Transforming the graph of a function by shrinking or stretching