A horizontal compression happens when the graph of a function is squashed horizontally. Think of compressing a spring sideways to make it narrower.
This occurs when you multiply the input, or \(x\)-value, by a number greater than 1 before applying the function.
For example, in the transformation \(y = f(4x)\), if the original function \(f(x)\) provided an output \(y\) for an input \(x\), now the function takes \(4x\) as the input.
- If \(f(1) = y\), then \(f(4 \times 1) = y \)
- If \(f(3) = y\), then \(f(4 \times 3) = y\)
Hence, each point on the graph moves horizontally towards the y-axis, making the graph look narrower by a factor of 4. Keep in mind:
- A horizontal compression changes the width of the graph but retains its overall shape.
- It affects the x-values, not the y-values.