Interactive Graph: Horizontal Stretching and Compression

Explore how changing the value of \(k \) affects the graph of the function \( f(x) = |k x| \). Adjust the slider to apply horizontal compression \( (|k| \gt 1) \) or stretching \( (0 \lt |k| \lt 1) \).