Graphs of Inverse Functions Advanced. This lesson goes beyond core Algebra I. You can skip it.
Learning goals
- Reflect a graph across by swapping the coordinates of any point you can read off
- Trade domain for range when the axes swap
- Turn the horizontal line test into the vertical one by reflecting
- Restrict to a one-to-one branch before inverting
The swap of coordinates is a reflection
Recall the one idea the whole inverse rests on: reverses by swapping each input with its output. Suppose . Then : the point on the graph of becomes the point on the graph of , its coordinates swapped. Plot both points and something jumps out: they sit on opposite sides of the diagonal , the line through the origin at forty-five degrees, like mirror images.
The diagram shows why: and sit exactly the same distance from the line , the set of points whose two coordinates are equal, on opposite sides, and the segment joining them meets the diagonal at a right angle. That is exactly what it means for to be the mirror between a point and its coordinate-swap.
The same swap happens at every point, not just this one. A point on the graph of records the fact that the input produces the output , that is, . Applying to both sides gives , which says the point is on the graph of . So a point is on the graph of exactly when its coordinate-swap is on the graph of .
By the same reasoning as the picture above, a line through the midpoint of a segment that meets it at a right angle is that segment’s mirror, so is always the mirror between and . A point already on the diagonal has , so its swap is itself and it does not move.
The graph of an inverse is the mirror image across y = x
Put the two halves together. Every point on the graph of corresponds to the point on the graph of . Moving from to is a reflection across the line . Apply that reflection to every point at once, and the entire graph of is carried onto the entire graph of . This is the central fact of the lesson.
The graph of is the reflection of the graph of across the line .
Nothing about the reflection depends on having a formula for : if you can draw , you can draw its reflection by hand, no algebra needed. This works whenever already exists, that is, whenever is one-to-one. (A later section shows what goes wrong, and how to fix it, when is not one-to-one.)
The figure shows it for a line. The function has a steep graph of slope ; its inverse has the gentle graph of slope . The two lines are mirror images across the dashed diagonal. The point sits on because , and its reflection sits on because .
Worked example 1 Sketch the inverse of a line from its graph
The graph of is a line through , , and . Sketch the graph of without first finding a formula for it.
By the reflection rule, each point of reflects across to a point of with its coordinates swapped. Swap the coordinates of the three known points:
Plot , , and and draw the line through them. That line is the graph of , the mirror image of across the diagonal.
As a check, find the formula the algebraic way: from , swap to , and solve for . Then
which are exactly the three reflected points. The graph and the formula agree.
Reading an inverse straight off a graph
The reflection rule turns graphing an inverse into a mechanical task: take points you can read off and swap each one’s coordinates. You never need the formula for , and often you never even need the formula for . That is what makes the graphical view so useful. As long as it is one-to-one, a function given only by a curve, with no equation at all, still has an inverse you can plot point by point.
Worked example 2 Read four points of an inverse off a graph
The graph above shows a function given only by its curve, no formula, passing through , , , and . The curve rises steadily from left to right, so it passes the horizontal line test and has an inverse. Find four points on the graph of .
Swap the coordinates of each known point, since is the reflection of across :
So passes through , , , and . Each new point is the mirror of an old one. For instance, becomes : the input and output trade roles, and no formula was needed anywhere.
Check your understanding
is one-to-one, and the point lies on its graph. Which point must lie on the graph of ?
Because is one-to-one, exists, and its graph is the reflection of the graph of across , which swaps the two coordinates of every point.
The input and output trade places, so is on . Negating a coordinate is a reflection across an axis, a different move, so the other choices are wrong.
Domain and range trade places by swapping the axes
The reflection also explains, in a single picture, why the domain and range swap when you invert. Reflecting across does more than move the curve. It swaps the two axes themselves: the horizontal axis (every point ) reflects to the vertical axis (every point ), and the reverse. So a horizontal extent of a graph becomes a vertical extent after the flip, and a vertical extent becomes horizontal.
Now recall how a graph shows domain and range. The domain is the horizontal spread of the curve, read along the -axis; the range is its vertical spread, read along the -axis. When the graph of reflects to the graph of , its horizontal spread becomes the new curve’s vertical spread. Likewise the vertical spread of becomes the new curve’s horizontal spread. In other words,
- the domain of (a horizontal spread) becomes the range of (a vertical spread), and
- the range of (a vertical spread) becomes the domain of (a horizontal spread).
This is exactly the domain-range swap you proved algebraically for inverses, now visible as the geometric fact that reflecting across trades the two axes.
Worked example 3 Track the domain and range through the reflection
The function has domain (the square root needs a nonnegative input) and range (the smallest output is ). Find the domain and range of from the reflection.
Reflecting across swaps the horizontal and vertical spreads, so the domain and range trade:
The range of was , so the domain of is . The domain of was , so the range of is .
A check against the formula agrees: from , swap to , so and for . That inverse accepts only and returns values , matching the swapped domain and range.
Check your understanding
A one-to-one function has domain and range . What are the domain and range of ?
Because is one-to-one, exists, and reflecting across trades the horizontal and vertical spreads, so the inverse swaps domain and range.
The domain of is the old range , and its range is the old domain .
Fixed points stay on the mirror
A point that already lies on the line has equal coordinates, , so swapping them changes nothing: its reflection is itself, a fixed point of the reflection. So if for some input , meaning is on the graph of , then stays put under the reflection and lands on the graph of too, giving : a value the function leaves unchanged is left unchanged by the inverse as well. This is a handy sketching shortcut: wherever the graph of meets the diagonal , mark that point, since it is shared with and does not move when you reflect.
The horizontal line test becomes the vertical line test
Back in the Inverse Functions lesson you saw that a function has an inverse only when it is one-to-one. On a graph that condition is the horizontal line test: no horizontal line may cross the graph more than once. The reflection across shows why that is exactly the right test.
Reflecting across the diagonal turns a horizontal line into a vertical line. A horizontal line is the set of points at height ; swapping coordinates sends each point to , and those make up the vertical line . So horizontal lines and vertical lines are mirror images of each other across .
Now watch what that does to the two line tests. Suppose some horizontal line crosses the graph of twice, so fails the horizontal line test and is not one-to-one. Reflect the whole picture anyway. The reflected curve is the mirror image of ‘s graph, and the offending horizontal line becomes a vertical line that crosses that reflected curve twice. A curve that some vertical line meets twice is not the graph of a function, by the vertical line test. So when fails the horizontal line test, its reflection fails the vertical line test and is not the graph of any function, meaning has no inverse function at all. The reflection is a function, namely , exactly when passed the horizontal line test to begin with. The two tests are mirror images, which is why one-to-one is precisely the condition for an inverse function to exist.
Worked example 4 Which reflections are graphs of functions?
Compare and , both reflected across .
The cube always rises: as increases, increases, so every horizontal line meets its graph exactly once and is one-to-one. Reflecting its graph across gives a curve that every vertical line meets exactly once. So that reflection is the graph of a genuine function, the inverse (the cube-root curve ). No restriction is needed.
The square is different. The horizontal line meets its graph twice, at and , because
Reflecting, those two points become and , both on the reflected curve, so the vertical line meets the reflection twice. The reflected sideways parabola is not the graph of a function, which is the picture of the fact that on all inputs has no inverse. The next section repairs it.
Check your understanding
The graph of a function is reflected across the line . The reflection is itself the graph of a function exactly when ...
Reflecting across turns each horizontal line into a vertical line, so a horizontal line meeting twice becomes a vertical line meeting the reflection twice. The reflection is a function exactly when no vertical line meets it twice, which happens exactly when passed the horizontal line test. Every function already passes the vertical line test, so that alone says nothing about the inverse.
Graphing the inverse of a restricted function
When a function fails the horizontal line test, you cannot reflect its whole graph and get a function. The fix from the Inverse Functions lesson was to shrink the domain until the rule is one-to-one, then invert that piece. Graphically, that means reflecting only the surviving branch.
Take again, and restrict it to . The graph is now just the right half of the parabola, the branch in the first quadrant. That branch passes the horizontal line test: each height is reached by a single nonnegative input. Reflect that single branch across . Because the branch lives in the first quadrant, its reflection also lives in the first quadrant, and it is the graph of . Restricting first, then reflecting, produces the square-root curve, exactly the inverse you found by algebra.
Worked example 5 Graph the inverse of on
With the domain restricted to , plot a few points on the branch and swap coordinates. Three easy points on with are
Reflect each across by swapping coordinates:
The points and sit on the diagonal, so they are fixed and do not move, while reflects to . These three points are anchors, but by themselves they do not pin down the curve: many different curves pass through the same three points. What determines the shape is reflecting the entire right branch, not just a few points on it. Mirror the whole branch across and it lands on the square-root curve, rising steeply at first and then flattening. The reflection of the restricted parabola is the square-root graph, so , matching the algebra where with solves to .
Had you tried to reflect the entire parabola instead, the left branch would have reflected to the lower half of a sideways parabola. The reflection of the whole parabola would fail the vertical line test. Restricting to one branch is what keeps the reflection a function.
Check your understanding
restricted to is the right branch of the parabola, passing through , , and . Which curve is the graph of ?
Only the points actually on 's restricted graph get reflected: , , swap to , , .
Reflecting the whole unrestricted parabola would also produce , giving two outputs for the input , which fails the vertical line test and is not a function. The left branch was never part of , since its domain is , so reflecting that branch instead is not relevant here. And is not its own inverse: , but , not .