Inverse functions

An inverse undoes a function, so it swaps inputs and outputs and its graph is the original's reflection in the line $y = x$, and it exists only when no output is reached twice.

From Algebra 2.