Changing the Shape
Unlike translations, stretches and compressions change the shape of a graph.
They make it taller, shorter, wider, or narrower.
Vertical Stretch and Compression
Multiply the output by a constant.
- → stretch vertically (taller)
- → compress vertically (shorter)
Example:
- → twice as tall
- → half as tall
Every y-value gets multiplied by .
Horizontal Stretch and Compression
Multiply the input by a constant.
- → compress horizontally (narrower)
- → stretch horizontally (wider)
Warning: This is backwards again!
makes the graph narrower, not wider.
makes the graph wider, not narrower.
Why is it backwards?
For , the point is on the graph.
For , we need .
The point moved from to . The graph got narrower.
Combining with Reflections
If or is negative, you also get a reflection:
- → vertical stretch/compress and reflect across x-axis
- → horizontal stretch/compress and reflect across y-axis
Example: stretches vertically by 2 and flips upside down.