Inverse Functions

Learning goals

  • Decide whether a function is one-to-one using repeated outputs and horizontal lines
  • Interpret inverse notation and distinguish an inverse function from a reciprocal
  • Read inverse graphs by exchanging coordinates, domains, ranges, and endpoint inclusion
  • Find inverse formulas and verify both compositions on their proper domains
  • Choose a parabola branch and justify the sign of its inverse

Can an output identify its input?

Compare two complete tables. Both describe functions because each listed input has exactly one output.

InputOutput of ffOutput of rr
−3-32222
116666
449922

For ff, output 22 identifies input −3-3, output 66 identifies 11, and output 99 identifies 44. For rr, output 22 leaves two possible original inputs. Reading that column backward would assign two outputs to one new input.

A function is one-to-one when different allowed inputs always produce different outputs. Equivalently, equal outputs must have come from the same input. A one-to-one function can be reversed on its actual range: every output has one original input, so the reversed rule is a function.

On a graph, repeated outputs appear as points at the same height. The horizontal-line test says that a function is one-to-one exactly when every horizontal line meets its entire graph at most once. Lines at heights outside the range meet it zero times, which is allowed. This test assumes the original relation is already a function; the vertical-line test answers that earlier question.

Check your understanding

Which complete set of pairs defines a one-to-one function?

Answer choices

Read the notation backward

An inverse function, written f−1f^{-1}, returns the unique input that produced each output of ff. In the table, f(−3)=2f(-3)=2 becomes f−1(2)=−3f^{-1}(2)=-3. The superscript names the inverse operation. It does not ask for a reciprocal.

Worked example 1 Read three different requests from one table

Problem. Use the complete table of ff above, with pairs (−3,2)(-3,2), (1,6)(1,6), and (4,9)(4,9).

(a) Find f−1(6)f^{-1}(6).

(b) Find 1/f(1)1/f(1).

(c) Give the domain and range of f−1f^{-1}, and decide whether f−1(5)f^{-1}(5) is defined.

Solution. (a) Find the input whose output is 66. The table gives f(1)=6f(1)=6, so f−1(6)=1f^{-1}(6)=1.

(b) First evaluate the forward function, obtaining f(1)=6f(1)=6. Its reciprocal is 1/61/6, a number different from the inverse value in part (a).

(c) Reverse every pair. The inverse has pairs (2,−3)(2,-3), (6,1)(6,1), and (9,4)(9,4). Its domain is {2,6,9}\{2,6,9\} and its range is {−3,1,4}\{-3,1,4\}. Since 55 was never an output of ff, it is not an allowed input of f−1f^{-1}.

Reverse each separate pairingThree original isolated points (-3,2), (1,6), and (4,9) reflect to (2,-3), (6,1), and (9,4). No points are connected.-4-4-2-200224466881010xyy = xfinverse
Each input-output pair changes roles. There are no connecting segments because the original domain contains only three inputs.

The domain of an inverse is the original range, and its range is the original domain. This includes any gaps or excluded endpoints. We always define an inverse on exactly the actual range of the original function.

Check your understanding

If a one-to-one function has f(8)=−5f(8)=-5, what follows?

Answer choices

Exchange the coordinates of a graph

The table figure shows the point (2,−3)(2,-3) opposite (−3,2)(-3,2) across the diagonal y=xy=x. Swapping coordinates reflects points across this line: horizontal distance becomes vertical distance and vice versa. The axes need equal unit scales for the picture to look like an ordinary mirror reflection.

For any one-to-one function, each point (a,b)(a,b) on its graph becomes (b,a)(b,a) on the inverse graph. A connected segment reflects to a connected segment; an isolated point stays isolated. An open endpoint stays open because swapping coordinates does not add a missing pair.

Worked example 2 Keep a restricted interval when finding the rule

Problem. Let f(x)=11−3xf(x)=11-3x on [−1,4)[-1,4).

(a) Find its inverse formula, domain, and range.

(b) Describe the reflected graph, including its endpoint inclusion.

(c) Verify both compositions on their proper domains.

Solution. (a) The graph decreases throughout its domain, so no output repeats. It starts at f(−1)=14f(-1)=14 and approaches −1-1 as xx approaches the excluded input 44. Its range is (−1,14](-1,14].

Use uu for a known output and solve for the original input:

u=11−3x.u=11-3x.

Subtract 1111 and divide by −3-3, giving x=(11−u)/3x=(11-u)/3. Thus

f−1(u)=11−u3.f^{-1}(u)=\frac{11-u}{3}.

Its domain is (−1,14](-1,14] and its range is [−1,4)[-1,4). The letter uu is a placeholder; writing f−1(x)=(11−x)/3f^{-1}(x)=(11-x)/3 gives the same inverse rule.

(b) The original closed endpoint (−1,14)(-1,14) becomes (14,−1)(14,-1); the open endpoint (4,−1)(4,-1) becomes (−1,4)(-1,4). Join the reflected endpoints with a straight segment, keeping the latter point open.

Endpoint inclusion survives reflectionThe original segment joins closed (-1,14) to open (4,-1). Its inverse joins open (-1,4) to closed (14,-1).0033669912121515xyy = xfinverse
The closed point and open point each keep their status when their coordinates swap. Both axes use the same scale.

(c) Starting with any x∈[−1,4)x\in[-1,4), the value f(x)f(x) lies in (−1,14](-1,14], where the inverse is defined:

f−1(f(x))=11−(11−3x)3.f^{-1}(f(x))=\frac{11-(11-3x)}3.

The numerator simplifies to 3x3x, so the composition equals xx.

Starting with any u∈(−1,14]u\in(-1,14], the value (11−u)/3(11-u)/3 lies in [−1,4)[-1,4), where ff is defined:

f(f−1(u))=11−3(11−u3).f(f^{-1}(u))=11-3\left(\frac{11-u}{3}\right).

This simplifies to 11−(11−u)11-(11-u), which is uu. Each order returns its own starting input on the required domain.

Check your understanding

A one-to-one function has domain (−6,2](-6,2] and range [3,10)[3,10). What is its inverse's domain?

Answer choices

Check the whole round trip

An algebraic inverse is found by solving for the old input in terms of the old output. The equation supplies a candidate rule; the sets and the two compositions confirm what that rule actually reverses.

For example, f(x)=11−3xf(x)=11-3x takes input 22 to output 55, and its inverse takes 55 back to 22. Going the other way, the inverse takes 88 to 11, and ff takes 11 back to 88. Example 2’s calculations extend both trips to every allowed input.

In general, if ff has domain DD and range RR, a candidate gg must map RR back to DD and satisfy

g(f(x))=xfor every x∈D,g(f(x))=x\quad\text{for every }x\in D,

and, in the other direction,

f(g(u))=ufor every u∈R.f(g(u))=u\quad\text{for every }u\in R.

Checking a few values can expose an error, but passing a few checks does not establish these identities everywhere. Simplification also cannot restore an input that was excluded before the calculation.

Check your understanding

For a function ff with domain DD and range RR, which check completes a verification after g(f(x))=xg(f(x))=x has been shown for every xx in DD?

Answer choices

Select a branch before reversing a parabola

Squaring on all real inputs loses the sign. The points (−2,4)(-2,4) and (2,4)(2,4) reflect to (4,−2)(4,-2) and (4,2)(4,2). The reflected relation then assigns two outputs to input 44, so it is not a function.

Repeated heights become repeated inputsThe full parabola y equals x squared is reflected across y equals x to a sideways relation. The original points (-2,4) and (2,4) become (4,-2) and (4,2).-4-4-2-200224466xyy = xsquaringreversed relation
The horizontal test line through two original points becomes a vertical test line through two reflected points. The curves continue beyond this window.

Restricting the original domain chooses which input to keep for each repeated output. This creates a different function with the same formula. Both nonnegative and nonpositive inputs can work for squaring, but they lead to different inverse functions.

Worked example 3 Why the nonnegative branch reverses correctly

Problem. Let s(x)=x2s(x)=x^2 with domain [0,∞)[0,\infty).

(a) Find its inverse and give the inverse’s domain and range.

(b) Verify both compositions on their proper domains.

(c) Explain why the same proposed inverse fails for squaring on all real inputs.

Solution. (a) Every nonnegative output uu comes from exactly one nonnegative input, u\sqrt{u}. Thus s−1(u)=us^{-1}(u)=\sqrt{u} with domain and range both [0,∞)[0,\infty).

(b) For any u≥0u\ge0, squaring its nonnegative square root returns uu:

s(s−1(u))=(u)2=u.s(s^{-1}(u))=(\sqrt{u})^2=u.

For the other order, remember what a square root means. At input −5-5, (−5)2=5\sqrt{(-5)^2}=5, not −5-5. In general, the nonnegative number whose square is x2x^2 is ∣x∣\lvert x\rvert, so

x2=∣x∣.\sqrt{x^2}=\lvert x\rvert.

Consequently s−1(s(x))=∣x∣s^{-1}(s(x))=\lvert x\rvert. On the chosen domain x≥0x\ge0, this equals xx, completing the verification.

(c) If the original domain were all real inputs, the reverse composition would still give ∣x∣\lvert x\rvert. It would fail to return xx whenever x<0x<0, including the input −5-5 above.

Keeping one branch makes reversal single-valuedThe nonnegative branch of the square function reflects to the square-root graph. Marked pairs (0,0), (1,1), and (2,4) correspond to (0,0), (1,1), and (4,2).00112233445566xyy = xnonnegative squaresquare root
Each height on the retained branch identifies one input. Both curves continue upward or rightward beyond the window.

The restriction determines the sign to use after taking a square root. For squaring on x≤0x\le0, the inverse is −u-\sqrt{u} for u≥0u\ge0. It returns a nonpositive input, and −∣x∣=x-\lvert x\rvert=x on that original domain.

Worked example 4 Use the specified side of a shifted parabola

Problem. Let p(x)=6−(x+1)2p(x)=6-(x+1)^2 with domain x≤−1x\le-1.

(a) Find its inverse and state the inverse’s domain and range.

(b) Verify both compositions on their proper domains.

Solution. (a) On this branch the outputs rise from arbitrarily negative values to 66. Each output occurs once, so the range is (−∞,6](-\infty,6] and an inverse exists on that set.

From u=6−(x+1)2u=6-(x+1)^2, we obtain (x+1)2=6−u(x+1)^2=6-u. Since x≤−1x\le-1, the quantity x+1x+1 is nonpositive. We therefore choose

x+1=−6−u.x+1=-\sqrt{6-u}.

The inverse is p−1(u)=−1−6−up^{-1}(u)=-1-\sqrt{6-u}, with domain (−∞,6](-\infty,6] and range (−∞,−1](-\infty,-1]. The plus-root choice would recover inputs on the other branch.

A chosen branch determines the root signThe branch of y equals 6 minus (x plus 1) squared for x at most -1 reflects to its inverse. The included vertex (-1,6) becomes (6,-1), and (-3,2) becomes (2,-3).-4-4-2-200224466xyy = xleft branchinverse
The inverse outputs stay at or below -1, matching the selected original inputs. The curves continue beyond the lower and left edges.

(b) For x≤−1x\le-1, substitution gives p−1(p(x))=−1−(x+1)2p^{-1}(p(x))=-1-\sqrt{(x+1)^2}. This is −1−∣x+1∣-1-\lvert x+1\rvert. Because x+1≤0x+1\le0, replace the absolute value by −(x+1)-(x+1), leaving −1+(x+1)=x-1+(x+1)=x.

For u≤6u\le6, the inverse output is at most −1-1 and so is allowed in pp. Substitution gives

p(p−1(u))=6−(−6−u)2.p(p^{-1}(u))=6-\left(-\sqrt{6-u}\right)^2.

The squared term is 6−u6-u, leaving 6−(6−u)=u6-(6-u)=u. Both checks respect their input restrictions.

For a one-to-one piecewise function, solve each piece separately. The inverse condition uses that piece’s outputs. For example, the piece y=x−2y=x-2 for x<3x<3 produces exactly the outputs y<1y<1. Reversing that piece gives x=y+2x=y+2 for y<1y<1. Check each piece’s output set before assigning the inverse conditions.

Check your understanding

For q(x)=(x−5)2q(x)=(x-5)^2 restricted to x≤5x\le5, which inverse rule returns only allowed original inputs?

Answer choices

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Core practice

Practice problems at the level of the course, to be worked out on paper. Hints one at a time, then the answer or the full worked solution, with your progress kept in this browser.

Core practice Work it out on paper 10 problems Start →
More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (optional)

In the nineteenth century, Uranus was not moving quite as astronomers’ calculations predicted. The discrepancy offered a clue: perhaps the gravity of an unseen planet was disturbing its orbit. Urbain Le Verrier in France and John Couch Adams in England used that effect to predict where another planet might be.

Le Verrier sent his prediction to Johann Galle at the Berlin Observatory. In 1846, Galle found Neptune near the predicted position. The search began with the motion of a planet people could see and led to a planet they had not yet identified. NASA’s Jet Propulsion Laboratory recounts the discovery.

Your progress

See all your progress →