Why does a function need to be one-to-one to have an inverse function?
Quick answer
An inverse swaps a function’s inputs and outputs. If two different inputs share one output, swapping them would make that output correspond to two inverse outputs, so the inverse would not be a function. A function is one-to-one when each output comes from at most one input. The horizontal line test checks this: if any horizontal line crosses more than once, the function is not one-to-one on the domain shown.
The question, the details, the next step.
A practical checklist
Record the original function and its stated domain.
Look for two distinct allowed inputs with the same output.
Use the horizontal line test on the graph over that domain.
If permitted, restrict the domain so each output comes from at most one input.
Swap x and y, solve, and check the inverse’s domain and outputs.
A few more useful answers
Can a function that is not one-to-one have an inverse relation?
Yes. Swapping its inputs and outputs still makes a relation, but repeated original outputs become inputs with multiple inverse outputs. That relation is not an inverse function unless the original domain is restricted appropriately.
Does the horizontal line test apply to a specific domain restriction?
Yes. Check only the part of the graph belonging to the domain in question. A function may fail the test on its full domain but pass after a restriction, as x² does on x ≥ 0.
Does passing the horizontal line test tell me the inverse formula?
No. It tells you the function is one-to-one on the domain shown, so its inverse is a function. To find the formula, swap x and y and solve for y, keeping track of the relevant domains.
Sources
References used for this guide.
- [S1] OpenStax Precalculus: Inverse Functions openstax.org · Checked
