When an inverse cannot exist
An inverse takes an output of f and returns the input it came from. That only works if each output came from exactly one input.
fails this: 4 comes from both x = −2 and x = 2, so an inverse given 4 would have two answers. On the graph, the horizontal line y = 4 meets the curve twice.
One-to-one
A function is one-to-one when every output comes from a single input. The graph shows it directly: every horizontal line meets the curve at most once. This is the horizontal-line test.
A function that is not one-to-one can be made so by restricting its domain. For , keep only . The right half of the parabola only rises, so no horizontal line meets it twice.
Keeping would work too. A domain is a choice, and the inverse depends on which half was kept.
The inverse on that half
On , gives , taking the positive root because x is not negative. Writing x for the input, .
Its graph is the kept half reflected in the line y = x. The two curves meet on that line, where : at (0, 0) and (1, 1).
Cutting at the vertex
For the vertex is at (2, 1). Either side of x = 2 the curve only rises or only falls, so the largest domain of the form is .
Solve for x: , so , positive because . Then , and .
The inverse takes the outputs of f, so its domain is the range of f. On the lowest output is f(2) = 1, so is defined for . A check: f(3) = 2, and .
The other half
completes the square to , with its vertex at (3, −4). Keep this time.
Then , negative because , so for . A check: g(1) = 0, and .
The usual slips
Cutting at the height of the vertex instead of its position: for the cut is at x = h, and k is where the range starts.
Keeping out of habit from . The cut belongs at this curve’s own vertex.
Taking the wrong root: on the inverse adds the square root; on it subtracts it.
Undoing the steps in their original order. f subtracts h, squares, then adds k, so subtracts k, takes the root, then adds h.
Giving the domain of f as the domain of . The inverse’s domain is f’s range.