- Home
- English lessons
- Precalculus
- Inverse functions
// Chapter 27.6 · Precalculus · Inverse Functions
Inverse Functions: One-to-One Functions, the Horizontal Line Test, Finding f⁻¹(x) and Graphing by Reflection in y = x
If one function converts Celsius to Fahrenheit, its inverse is the formula that converts back. The idea sounds simple, but it hides a condition: converting back must give a single answer, and that is not true for every function. This page explains when a function can be reversed, how to find the inverse systematically, how to check it with composition, and how restricting the domain turns an irreversible function into a reversible one. That knowledge is the basis for logarithms on page 27.8 and for the inverse trigonometric functions on page 27.9.
- An inverse function exists when f is one-to-one: every horizontal line meets the graph at most once
- To find : write , swap x and y, solve for y
- Check: and
- · · the graphs mirror each other in
One-to-one functions and the horizontal line test
Every function gives one y for each x, but reversing it needs the opposite condition: each y must come from only one x. Functions with that property are called one-to-one (injective). On a graph, a horizontal line that meets the graph twice means two x-values share the output c, and going backwards you could not say which one to return. A function that is always increasing or always decreasing on its domain is therefore always one-to-one.
I1 One-to-one
I2 Inverse
I3 Swap & reflect
Finding an inverse step by step
The standard procedure has four steps: (1) check that f is one-to-one on its domain, (2) write and swap x and y, (3) solve for y, (4) state the domain of the inverse, which is the range of f. Step 4 is the one most often forgotten, and it matters when f involves a root, because the formula you get may look defined for every x when it is not.
I4 Finding f⁻¹
I5 Linear fractional
Swap a and d, change the signs of b and c (just like the inverse of a 2×2 matrix)
Find for with its domain
Swap: · cross-multiply:
Collect y on one side:
, domain , which is the range of f (its HA is y = 2)
Find for
f is increasing on and its range is
Swap:
The domain of is the range of f, , and it must be stated
(without it would be a whole parabola, which is not the inverse)
Find for
Swap:
By the definition of a logarithm:
: the asymptote of f becomes for the inverse
Restricting the domain
A function that is not one-to-one can still have an inverse if we use only a part of its domain on which it is increasing or decreasing. The two most important cases are on , giving , and on , giving . The interval is a choice, not a law, but it must cover the full range of the original function.
I6 Restricted domains
I7 Inverse of a composition
Socks then shoes; to undo, shoes come off first
Find the inverse of for
Complete the square: , vertex (2, −3); on f increases, range
Swap: ; take the plus sign because
(a) With , find (b) For , find
(a) is the x with
(b) h is increasing, hence one-to-one, but its inverse has no simple formula; find x with : x = 2 gives 8 + 2 = 10
(a) 2 · (b) 2: a question about only asks which input f sends to b
Reflection and horizontal line lab
The orange curve is f, the blue curve is its reflection in the dotted line . Drag the horizontal line up and down to count intersections; where it meets the graph twice the points turn red and the lab reports that the inverse is not a function. Choose “x² (all x)” and then “x², x ≥ 0” to watch restricting the domain turn the reflection into the graph of . Move t to see a point P and its reflection P′ with swapped coordinates.
Practice (with answers)
1 for
2 for
3If f is one-to-one and , find and a point on the graph of
Swap the coordinates
, point
4: find
because y must not be positive
5Is its own inverse?
Yes, (its graph is symmetric about y = x)
Read next
- 27.7 Exponential functions → 27.8 Logarithms — the most important inverse pair
- Inverse trigonometric functions — arcsin, arccos and arctan by restricting the domain
Frequently asked questions
Does f⁻¹(x) mean 1/f(x)?
No. The −1 in f⁻¹ denotes the inverse function, the function that undoes f. 1/f(x) is the reciprocal of the value. For f(x) = 2x, f⁻¹(x) = x/2 but 1/f(x) = 1/(2x), which is something else entirely.
Which functions have inverses?
Only one-to-one functions, where each y comes from exactly one x. On a graph, use the horizontal line test: if some horizontal line meets the graph twice or more, the inverse is not a function. A function that is always increasing or always decreasing on its domain always passes the test.
Why does x² have no inverse while √x works?
x² sends both 2 and −2 to 4, so going backwards from 4 is ambiguous. Restricting the domain to x ≥ 0 makes the function one-to-one, and its inverse is √x. The same idea is why arcsin returns values only between −π/2 and π/2.
Why are the graphs of f and f⁻¹ reflections in y = x?
If (a, b) is on the graph of f, then f(a) = b, which means f⁻¹(b) = a, so (b, a) is on the graph of f⁻¹. Swapping the coordinates of every point is exactly a reflection in the line y = x.