Inverse Functions
Why this matters
Imagine you and your friend Priya are building a simple game. In the game, a player's score s is converted into experience points, or "XP," using a function: XP = 10s + 50. So if you score 20 points, you get 10(20) + 50 = 250 XP. That's your function.
But what if you want to go the other way? Let's say you see a player, Marcus, has 1050 XP. How do you figure out what his original score was? You need a way to "un-do" the XP calculation. You need a function that takes XP as the input and gives you the score as the output.
This "un-doing" machine is exactly what an inverse function is. It reverses the process, letting you work backward from the result to find the starting point. Today, we'll learn how to find and use these powerful reverse-functions.
Concept overview
flowchart TD
A[Start with function y = f(x)] --> B{Is f(x) one-to-one?};
B -- No --> C[Restrict the domain of f(x)];
C --> D[New invertible function y = f(x) on restricted domain];
B -- Yes --> D;
D --> E[Swap variables: x = f(y)];
E --> F[Solve for y];
F --> G[The new equation is the inverse: y = f⁻¹(x)];
G --> H{Verify?};
H -- Yes --> I[Check that f(f⁻¹(x)) = x];
I --> J[End];
H -- No --> J;
Core explanation
Hello everyone. Let's dive into the idea of inverse functions. At its heart, this topic is about one simple idea: reversing a process.
What Makes a Function "Invertible"?
Think about a vending machine. You press button C4 (input), and out comes a bag of pretzels (output). This is a function. Each button gives you one specific item.
But what if buttons C4 and D2 both gave you pretzels? If you found a bag of pretzels on the floor, could you tell which button it came from? No.
This is the key to inverse functions. A function can only be "undone" if every output comes from one, and only one, unique input. We call this a one-to-one function.
For f(x) = x², if you plug in 2, you get 4. But if you plug in -2, you also get 4. Since the output 4 comes from two different inputs, f(x) = x² is not one-to-one on its own. We can't create a single rule to "un-do" it. If we ask, "What input gave us 4?" the answer is ambiguous: was it 2 or -2?
To fix this, we can restrict the domain. We could decide to only look at the part of f(x) = x² where x ≥ 0. On this restricted domain, every output is now unique. The output 4 only comes from the input 2. Now, we can find an inverse.
A quick way to check this visually is the Horizontal Line Test. If you can draw a horizontal line anywhere on a function's graph and it hits the curve more than once, the function is not one-to-one in that domain.
Finding the Inverse: Swapping Inputs and Outputs
Once we know a function is invertible, finding the inverse is all about swapping the roles of input and output.
If our original function f has the point (a, b)—meaning an input of a gives an output of b—then its inverse, which we write as f⁻¹, must have the point (b, a).
Let's use our example: f(x) = x² for x ≥ 0.
A point on this graph is (2, 4).
So, a point on the inverse graph must be (4, 2).
Another point on f(x) is (3, 9).
So, a point on f⁻¹(x) must be (9, 3).
Notice what happens to the domain and range:
- The domain of
f(x)(all the possible x-values,[0, ∞)) becomes the range off⁻¹(x). - The range of
f(x)(all the resulting y-values,[0, ∞)) becomes the domain off⁻¹(x).
They swap roles completely!
The Algebraic Method: "Swap and Solve"
Finding the inverse from an equation is a reliable four-step process. Let's find the inverse of f(x) = 2x + 3.
-
Rewrite
f(x)asy:y = 2x + 3 -
Swap
xandy: This is the key step where we reverse the input and output.x = 2y + 3 -
Solve for the new
y: Now, we just need to isolateyusing algebra.x - 3 = 2y(x - 3) / 2 = y -
Replace
ywithf⁻¹(x): This is proper notation for our final answer.f⁻¹(x) = (x - 3) / 2
And we're done! We've found the algebraic rule that "un-does" f(x).
Verifying Your Inverse
How can you be sure you found the correct inverse? You can use composition. If you "do" a function and then immediately "un-do" it with its inverse, you should end up right back where you started.
Mathematically, this means:
f(f⁻¹(x)) = x AND f⁻¹(f(x)) = x
Let's check for f(x) = 2x + 3 and f⁻¹(x) = (x - 3) / 2.
f(f⁻¹(x)) = 2( (x - 3) / 2 ) + 3
= (x - 3) + 3
= x
It works! This confirms we have the correct inverse.
The Graphical Relationship: A Reflection
What does this swapping of (a, b) to (b, a) look like on a graph? It creates a perfect reflection across the diagonal line y = x.
Imagine plotting the point (2, 4). Now plot (4, 2). If you draw the line y = x, you'll see that the two points are mirror images of each other across that line. The line y=x acts as a perfect mirror.
This is an incredibly useful property. If you have the graph of a function, you can sketch the graph of its inverse simply by reflecting the entire curve over the line y = x. This is what our interactive visual shows with f(x) = x² (for x ≥ 0) and its inverse, f⁻¹(x) = √x.
Context Matters
Finally, remember that in real-world problems, context can add extra restrictions. If C(t) is the cost of a phone plan after t months, the inverse C⁻¹(p) would tell you how many months you've had the plan for a given price p. If the inverse function gives you an answer of t = -2.5, that's mathematically possible but makes no sense in reality. Always check if your answer is reasonable within the context of the problem.
Worked examples
Let's walk through a few examples together to make these ideas solid.
Finding the Inverse of a Radical Function
Problem: Given the function g(x) = ³√(x - 1), find its inverse, g⁻¹(x). Then, verify your answer.
Solution:
-
Rewrite with
y:y = ³√(x - 1)This function is one-to-one (it passes the horizontal line test), so we don't need to restrict the domain. -
Swap
xandy:x = ³√(y - 1)This is the crucial inverse step—reversing the roles of input and output. -
Solve for the new
y: Our goal is to getyby itself. To undo the cube root, we'll cube both sides.x³ = (³√(y - 1))³x³ = y - 1Now, just add 1 to both sides:x³ + 1 = y -
Write in inverse notation:
g⁻¹(x) = x³ + 1
Verification:
Let's check if g(g⁻¹(x)) = x.
g(g⁻¹(x)) = ³√((x³ + 1) - 1)
= ³√(x³)
= x
It checks out! We've successfully found and verified the inverse.
Restricting a Domain to Find an Inverse
Problem: Consider the function h(x) = (x + 3)².
a) Explain why h(x) is not invertible on its natural domain.
b) Restrict the domain of h(x) so that it is invertible, and find the inverse function, h⁻¹(x).
Solution:
Part a):
The graph of h(x) = (x + 3)² is a parabola opening upwards with its vertex at (-3, 0). If you draw a horizontal line, say y = 4, it will intersect the parabola at two points (x = -1 and x = -5). Since one output (4) comes from two different inputs, the function is not one-to-one and therefore not invertible on its full domain.
Part b):
To make it invertible, we need to choose one side of the parabola. A common choice is to take the vertex and go to the right.
Restriction: Let's restrict the domain to x ≥ -3.
Now we find the inverse for this version of h(x).
-
Rewrite:
y = (x + 3)², forx ≥ -3. -
Swap:
x = (y + 3)² -
Solve for
y:√x = y + 3√x - 3 = yWe look back at our restricted domain and range.
* For `h(x)`: Domain was `x ≥ -3`, Range was `y ≥ 0`.
* For `h⁻¹(x)`: The domain and range swap. So the Domain must be `x ≥ 0` and the Range must be `y ≥ -3`.
Our potential inverse is `y = √x - 3`. Does this have the correct range? Yes, the `√x` part is always non-negative, so the smallest `y` can be is `0 - 3 = -3`. This matches our required range of `y ≥ -3`. So we use the positive square root.
- Write the final answer:
h⁻¹(x) = √x - 3
Try it yourself
Ready to try a couple on your own? Don't worry about getting it perfect on the first try; focus on the process.
Problem 1:
Let f(x) = (2x + 1) / (x - 3). Find the inverse function, f⁻¹(x).
Hint: After you swap x and y, you'll have y in two places. You'll need to do some algebra to gather the y terms on one side of the equation and then factor y out.
Problem 2:
The function V(r) = (4/3)πr³ gives the volume of a sphere with radius r.
a) Find the inverse function, V⁻¹(v).
b) What does this inverse function represent in the context of a sphere?
Hint: The inverse function will take volume as its input. What would it logically output?
Practice — 8 questions
In simple terms, inverse functions are about "un-doing" a mathematical process. If a function takes an input to an output, its inverse takes that output right back to the original input.
- 2.8.A: Determine the input-output pairs of the inverse of a function.
- 2.8.B: Determine the inverse of a function on an invertible domain.
- 2.8.A.1
- On a specified domain, a function, f, has an inverse function, or is invertible, if each output value of f is mapped from a unique input value. The domain of a function may be restricted in many ways to make the function invertible.
- 2.8.A.2
- An inverse function can be thought of as a reverse mapping of the function. An inverse function, f⁻¹, maps the output values of a function, f, on its invertible domain to their corresponding input values; that is, if f (a) = b, then f⁻¹ (b) = a. Alternately, on its invertible domain, if a function consists of input-output pairs (a, b), then the inverse function consists of input-output pairs (b, a).
- 2.8.B.1
- The composition of a function, f, and its inverse function, f⁻¹, is the identity function; that is, f(f⁻¹ (x)) = f⁻¹(f(x)) = x.
- 2.8.B.2
- On a function’s invertible domain, the function’s range and domain are the inverse function’s domain and range, respectively. The inverse of the table of values of y = f(x) can be found by reversing the input-output pairs; that is, (a, b) corresponds to (b, a).
- 2.8.B.3
- The inverse of the graph of the function y = f(x) can be found by reversing the roles of the x- and y-axes; that is, by reflecting the graph of the function over the graph of the identity function h(x) = x.
- 2.8.B.4
- The inverse of the function can be found by determining the inverse operations to reverse the mapping. One method for finding the inverse of the function f is reversing the roles of x and y in the equation y = f(x), then solving for y = f⁻¹(x).
- 2.8.B.5
- In addition to limiting the domain of a function to obtain an inverse function, contextual restrictions may also limit the applicability of an inverse function.
flowchart TD
A[Start with function y = f(x)] --> B{Is f(x) one-to-one?};
B -- No --> C[Restrict the domain of f(x)];
C --> D[New invertible function y = f(x) on restricted domain];
B -- Yes --> D;
D --> E[Swap variables: x = f(y)];
E --> F[Solve for y];
F --> G[The new equation is the inverse: y = f⁻¹(x)];
G --> H{Verify?};
H -- Yes --> I[Check that f(f⁻¹(x)) = x];
I --> J[End];
H -- No --> J;
Read what Saavi narrates
Hello everyone. I'm Saavi, and I'm glad you're here.
Have you ever created a secret code with a friend? Maybe you decide that every 'A' becomes a 'B', every 'B' becomes a 'C', and so on. That rule, the one you use to scramble the message, is a function. But what's just as important is the rule to unscramble it, so your friend can actually read the message. That unscrambling rule is the inverse function.
Today, we're learning how to find these "un-do" functions. An inverse function is like a reverse gear. It takes the outputs of your original function and tells you exactly which inputs they came from. We'll see how to find them with algebra and what they look like on a graph.
Let's try one. Imagine we have the function g of x equals the cube root of the quantity x minus 1. First, we'll rewrite it as y equals the cube root of x minus 1. Now for the most important step: we swap x and y. So we get x equals the cube root of y minus 1. This is the moment we've officially created the inverse relationship. Now, we just need to clean it up by solving for y. To get rid of the cube root, we cube both sides. That gives us x cubed equals y minus 1. Finally, add 1 to both sides, and we get y equals x cubed plus 1. So, the inverse function, g inverse of x, is x cubed plus 1.
Here's a really common mistake I see every year. Students see the little negative one in the notation for an inverse function... f inverse of x... and they think it means one divided by f of x. It does not. That little negative one is just a symbol that means "inverse function." It's about un-doing the process, not flipping it in a fraction. Remember, the inverse of putting on your shoes is taking them off, not standing on your head!
Inverse functions are a fundamental idea in math. They show up everywhere, from cryptography to science to computer programming. Once you get the hang of the process—swap and solve—you'll have a powerful new tool in your toolkit. You've got this.
The `-1` in `f⁻¹(x)` is a special notation for an inverse function, not an exponent. `f⁻¹(x)` "un-does" `f(x)`, while `1/f(x)` is the multiplicative inverse. For `f(x) = 2x`, the inverse `f⁻¹(x)` is `x/2`, but the reciprocal `1/f(x)` is `1/(2x)`. These are completely different.
When you see `f⁻¹(x)`, always think "inverse function," not "one over f of x."
If you don't restrict the domain, the "inverse" you create won't be a function because it will fail the vertical line test. An input would map to two different outputs.
Before you start finding an inverse, quickly visualize the graph or use the horizontal line test. If it fails, state a reasonable domain restriction (like `x ≥ 0` for `x²`) before you proceed.
The original function's restricted domain determines the inverse function's range. This range dictates whether you need the positive or negative root to ensure the inverse function outputs the correct values.
After swapping `x` and `y`, explicitly write down the domain and range of the original function and then swap them to find the required domain and range for the inverse. Use this to guide your choice of `+` or `-`.
The inverse graph is a reflection over the line `y = x`, not the x-axis or y-axis. Reflecting over the y-axis gives `f(-x)`, and reflecting over the x-axis gives `-f(x)`.
Always draw the dashed line `y = x` first. Then, for a few key points `(a, b)` on the original graph, plot their swapped partners `(b, a)` to guide your reflection.