Graphs of Inverse Functions
Learning goals
- Reflect a graph across to draw its inverse
- Swap the coordinates of any point you can read off
- Trade domain for range when the axes swap
- Recognize a fixed point where the graph meets the diagonal
- 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. On a graph that swap has a precise meaning. A point on the graph of records the single fact that the input produces the output , that is, . The inverse reverses that fact: it takes the input back to the output , which is the point on the graph of . So each point of has a partner on with the two coordinates switched.
Written as a chain of equivalent statements, the correspondence is exact:
The middle step is just the definition of the inverse: says exactly the same thing as , because applying to both sides of gives . Read end to end, the chain says a point is on the graph of exactly when its coordinate-swap is on the graph of .
That leaves one geometric question: what does switching the two coordinates of a point do to its position in the plane? It reflects the point across the line . The line is the set of points whose two coordinates are equal, the perfect diagonal through the origin at forty-five degrees. Swapping the coordinates of a point that is not on that line carries it to the mirror-image spot on the other side, the same distance away.
Swapping coordinates reflects a point across #
Take a point with , so is not on the diagonal, and let be its coordinate-swap. To show the line is the mirror that sends to , it is enough to show that line is the perpendicular bisector of the segment . The perpendicular bisector is the line that meets at a right angle through its midpoint.
First, the midpoint of is
whose two coordinates are equal, so the midpoint lies on .
Second, the segment runs from to , so its slope is
while the line has slope . Two slopes whose product is mark perpendicular lines, and , so crosses at a right angle.
The diagonal passes through the midpoint of and is perpendicular to it, so it is the perpendicular bisector of . Reflecting across therefore lands exactly on . A point already on the diagonal has , so its swap is itself and it does not move. Either way, switching the coordinates of a point is the same as reflecting it across .
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 . Whatever the shape of , its inverse is the same shape flipped across the diagonal. If you can draw , you can draw : reflect it across .
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. 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
A function is given only by its graph, a curve 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
The point lies on the graph of . Which point must lie on the graph of ?
The graph of 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 function has domain and range . What are the domain and range of ?
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. Such a point is called a fixed point of the reflection. This has a handy consequence for sketching. Wherever the graph of crosses the diagonal , that crossing point is shared with the graph of . That is because a point on the mirror is its own image.
Concretely, suppose for some input , so that is on the graph of . Reflecting fixes that point, so is on the graph of as well, meaning . A value the function leaves unchanged is left unchanged by the inverse too. When you sketch an inverse, marking where meets gives you anchor points that do not move, which pins down the reflected curve.
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. The graph of becomes the graph of , and the offending horizontal line becomes a vertical line that crosses the 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 cannot be a function. The reflection is a function 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 . Draw a smooth curve through , , and : it rises steeply at first and then flattens, the shape of . 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.