Allday Education

Inverse Relations & Functions

A function is a machine: put in an input, get out an output. The inverse function is the same machine run in reverse — it takes the output and hands back the original input. If f(4)=7f(4) = 7, then the inverse, written f1f^{-1}, satisfies f1(7)=4f^{-1}(7) = 4. Every input-output pair just trades places.

Inverses matter because most real questions come at a function backwards. A conversion formula turns Celsius into Fahrenheit — but you're handed Fahrenheit and want Celsius. A growth model turns time into population — but you know the population and want the time. Finding the inverse turns "solve for the input every single time" into a formula you use directly.

What an inverse function is

Formally, f1f^{-1} is the function that reverses ff: whenever f(a)=bf(a) = b, it's also true that f1(b)=af^{-1}(b) = a. Every point (a,b)(a, b) on the graph of ff becomes the point (b,a)(b, a) on the graph of f1f^{-1}. Inputs and outputs swap — that's the entire definition.

That coordinate swap has a visual consequence: the graph of f1f^{-1} is the graph of ff reflected across the line y=xy = x. Fold the plane along that diagonal and the two curves land on each other. Below, a line (blue) and its inverse (red) are mirror images across the dashed line y=xy = x.

One caution on notation: the 1-1 in f1(x)f^{-1}(x) is not an exponent. f1(x)f^{-1}(x) means "the inverse function of ff," not 1f(x)\dfrac{1}{f(x)}. The inverse of f(x)=x+4f(x) = x + 4 is f1(x)=x4f^{-1}(x) = x - 4, which is nothing like 1x+4\dfrac{1}{x + 4}.

-5-4-3-2-112345-5-4-3-2-112345xy

How to find an inverse: swap and solve

The procedure is two moves. First, write the function as y=y = \ldots and swap xx and yy — that's the input-output trade built into the definition. Second, solve the new equation for yy. What you get is f1(x)f^{-1}(x).

For f(x)=2x+6f(x) = 2x + 6: write y=2x+6y = 2x + 6, swap to get x=2y+6x = 2y + 6, then solve — subtract 66 to get x6=2yx - 6 = 2y, divide by 22 to get y=x23y = \dfrac{x}{2} - 3. So f1(x)=x23f^{-1}(x) = \dfrac{x}{2} - 3.

Notice what the inverse does operation by operation: ff multiplies by 22 and then adds 66; f1f^{-1} subtracts 66 and then divides by 22. The inverse applies the opposite of each operation, in reverse order — the same way you take off shoes before socks.

The mapping below shows f(x)=2x+6f(x) = 2x + 6 sending each input to its output. The inverse simply reverses every arrow: it reads the diagram right-to-left, sending 818 \to 1, 10210 \to 2, and 12312 \to 3.

Input xOutput f(x)12381012

How to check your inverse

Two functions are inverses exactly when composing them gets you back where you started: f(f1(x))=xf(f^{-1}(x)) = x and f1(f(x))=xf^{-1}(f(x)) = x. Run any number through one machine and then the other, and it must come out unchanged. Check both directions — on a test, verifying composition is often the whole problem.

A faster spot-check: pick an easy input. If f(1)=8f(1) = 8, then f1(8)f^{-1}(8) had better be 11. If it isn't, something went wrong in the swap-and-solve algebra.

One more wrinkle: not every function has an inverse that's a function. If ff sends two different inputs to the same output — like f(x)=x2f(x) = x^2 sending both 22 and 2-2 to 44 — the reverse machine can't decide which input to return. Only one-to-one functions (graphs that pass the horizontal line test) have true inverse functions; that's why x2x^2 only gets an inverse after restricting it to x0x \geq 0.

Worked examples

Example 1: a linear function

Find the inverse of f(x)=3x5f(x) = 3x - 5.

Write with yyy=3x5y = 3x - 5
Swap xx and yyx=3y5x = 3y - 5
Add 55 to both sidesx+5=3yx + 5 = 3y
Divide by 33y=x+53y = \dfrac{x + 5}{3}

Answer: f1(x)=x+53f^{-1}(x) = \dfrac{x + 5}{3} — check: f(4)=7f(4) = 7 and f1(7)=123=4f^{-1}(7) = \dfrac{12}{3} = 4

Example 2: the variable is divided

Find the inverse of f(x)=x2+1f(x) = \dfrac{x}{2} + 1.

Write with yyy=x2+1y = \dfrac{x}{2} + 1
Swap xx and yyx=y2+1x = \dfrac{y}{2} + 1
Subtract 11 from both sidesx1=y2x - 1 = \dfrac{y}{2}
Multiply both sides by 22y=2x2y = 2x - 2

Answer: f1(x)=2x2f^{-1}(x) = 2x - 2 — check: f(6)=4f(6) = 4 and f1(4)=6f^{-1}(4) = 6

Example 3: verify two functions are inverses

Show that f(x)=2x+6f(x) = 2x + 6 and g(x)=x23g(x) = \dfrac{x}{2} - 3 are inverses.

Compose one direction: substitute gg into fff(g(x))=2(x23)+6f(g(x)) = 2\left(\dfrac{x}{2} - 3\right) + 6
Distribute and simplify=x6+6=x= x - 6 + 6 = x
Compose the other direction: substitute ff into ggg(f(x))=2x+623g(f(x)) = \dfrac{2x + 6}{2} - 3
Simplify=x+33=x= x + 3 - 3 = x

Answer: Both compositions return xx, so ff and gg are inverses.

Example 4: a cubic function

Find the inverse of f(x)=x3+1f(x) = x^3 + 1.

Write with yy and swapx=y3+1x = y^3 + 1
Subtract 11 from both sidesx1=y3x - 1 = y^3
Take the cube root of both sidesy=x13y = \sqrt[3]{x - 1}
Check with a point: f(2)=9f(2) = 9, and f1(9)=83=2f^{-1}(9) = \sqrt[3]{8} = 2

Answer: f1(x)=x13f^{-1}(x) = \sqrt[3]{x - 1}

Try one yourself

Common questions

Does f1(x)f^{-1}(x) mean 1f(x)\dfrac{1}{f(x)}?

No — this is the most common notation mistake with inverses. The 1-1 names the inverse function, not a reciprocal. The inverse of f(x)=x+4f(x) = x + 4 is f1(x)=x4f^{-1}(x) = x - 4; the reciprocal 1x+4\dfrac{1}{x + 4} is a completely different function.

Does every function have an inverse?

Every function can be reversed as a relation, but the result is only a function when the original is one-to-one — each output comes from exactly one input. Graphically, that's the horizontal line test. f(x)=x2f(x) = x^2 fails it (both 22 and 2-2 give 44), so it only has an inverse function after you restrict its domain.

How are the graphs of ff and f1f^{-1} related?

They're reflections of each other across the line y=xy = x. Every point (a,b)(a, b) on ff corresponds to the point (b,a)(b, a) on f1f^{-1}. So if ff passes through (2,3)(2, 3), then f1f^{-1} must pass through (3,2)(3, 2).

Want the video version?

Allday Everyday Math has video lessons, practice, and an AI tutor for every topic, Pre-Algebra through Algebra 2.

Try it for $1