Skip to main content
Graphing Calculator
English

Learn · 3 min read

How to Graph Inverse Functions on a Graphing Calculator

The direct answer: reflect the graph across the line y = x

The inverse of a function undoes it: if a function turns 2 into 8, its inverse turns 8 back into 2. Graphically, the inverse is the mirror image of the original graph across the diagonal line y = x. So to graph an inverse on this calculator, enter the function (say x^3), enter x as a second expression to draw the mirror line, and enter the inverse formula — here cbrt(x) — as a third expression. You will see two curves that are perfect reflections of each other across the diagonal.

To get the inverse formula, swap x and y and solve for y. For y = x^3, swapping gives x = y^3, so y = cbrt(x) — enter cbrt(x). For y = 2*x + 1, swapping gives x = 2*y + 1, so y = (x - 1)/2 — enter (x - 1)/2. The calculator does the graphing; you do the one line of algebra.

Step by step in this calculator

1. Enter the original function as a cartesian expression, e.g. x^3. 2. Enter x in a new expression slot. This draws the line y = x — the mirror your eye needs to judge the reflection. 3. Enter the inverse formula: cbrt(x). Watch the two curves: pick any point on x^3, like (2, 8), and check that (8, 2) sits on cbrt(x). That coordinate swap — (a, b) becomes (b, a) — is exactly what reflection across y = x does.

For a linear example, enter 2*x + 1, then x, then (x - 1)/2. The two lines cross on the diagonal y = x and mirror each other across it. If they do not look symmetric, recheck your swapped algebra — most inverse-graphing errors are algebra errors, not calculator errors.

When a function has no inverse: the horizontal line test

A function has an inverse only if it never repeats a y-value: every horizontal line must cross its graph at most once. Enter x^2, then enter 4 as another expression to draw the horizontal line y = 4 — it crosses the parabola twice, at x = -2 and x = 2. No inverse exists for all of x^2, because undoing 4 would have to give two answers at once.

The fix is a domain restriction: keep only half the parabola and it becomes invertible. Enter the restricted half as a parametric expression — x = t, y = t^2 — with the t-range set to [0, 10], which draws only the right half. Then enter sqrt(x) as a cartesian expression. The half-parabola and sqrt(x) mirror each other cleanly across y = x.

Checking your work with the table of values

Open the table of values for both expressions and compare columns. For x^3 and cbrt(x), the table shows x^3 turning 2 into 8 while cbrt(x) turns 8 into 2 — each table is the other with its columns swapped. If your two tables do not show this swap, the formula you entered is not the inverse.

A second check is composition. Enter (cbrt(x))^3 as a test expression — it equals x, so its graph should lie exactly on top of the line y = x you already drew. If it does, your inverse is correct.

Pitfalls: domains, principal values, and the skipped swap

Three mistakes show up again and again. First, forgetting to swap: entering the original formula a second time instead of the solved-for-y version gives two copies of the same curve, not a reflection. Second, domain: sqrt(x) and log(x) are undefined for non-positive x in this calculator, so their graphs simply stop there — the missing half is correct behavior, not a bug. Third, inverse trig: asin, acos, and atan return principal values only — asin(0.5) is π/6, not every angle with sine 0.5 — so the inverse you graph covers a single branch.

Pair the reflection view with the table of values whenever a function’s domain or range is restricted, and the graph will always tell the truth.

Graphs of x^3, its inverse cbrt(x), and the diagonal line y = x, symmetric across the diagonal
x^3, cbrt(x), and the line y = x plotted together. Notice the two curves mirror each other across the diagonal — the signature look of a function and its inverse.
Graph of x^3, a strictly increasing cubic curve passing through the origin
x^3 on its own. Because it passes the horizontal line test, it has a full inverse — the reflection you see when cbrt(x) is added.

Try it in the calculator

Type any of these into the graphing calculator to see the ideas above in action:

  • x^3
  • cbrt(x)
  • x

Key takeaways

  • An inverse graph is the mirror image of the original across the line y = x.
  • Swap x and y, solve for y, and enter that formula — x^3 becomes cbrt(x).
  • Enter x as its own expression to draw the mirror line and judge the symmetry.
  • A function that fails the horizontal line test, like x^2, has no full inverse — restrict the domain first.
  • Verify with the table of values: the input and output columns should be swapped.

Frequently asked questions

Do I need to graph the line y = x too?

Not strictly — the inverse graphs fine without it. But the diagonal makes the reflection visible at a glance and helps you catch algebra mistakes in the swapped formula.

Why does my inverse graph look like only half a curve?

Domain restrictions. sqrt(x) and log(x) are undefined for non-positive x, so their graphs stop at the y-axis. That missing half is the correct graph, not an error.

Can I graph the inverse of x^2?

Not all of it — x^2 fails the horizontal line test, so no single inverse exists. Restrict the domain first: enter the right half as the parametric expression x = t, y = t^2 with t-range [0, 10], and graph its inverse sqrt(x).

Related pages