Move a graph around with y = a·f(x − h) + k, and mirror it to see its inverse.
A graph of a basic function as a faint dashed curve, and in rose the same function transformed as y = a times f of (x minus h), plus k. Sliders stretch or flip it with a, shift it right or left with h, and up or down with k. Buttons pick x squared, the square root, 2 to the x, or sine. A toggle draws the inverse function in amber: the transformed graph reflected in the dashed diagonal line y = x.
Shift, stretch, flip and invert
InteractiveStart from
The math, with your numbers
Subtracting h inside moves the graph right by h: the input has to be h bigger to give the same output.
Try this
Want to know why it behaves like this?
The lesson “Functions & Inverses: Running Rules Backwards” explains it step by step: How do you turn a formula around to answer the opposite question?