Free for students · Ad-free · WCAG 2.1 AA Compliant · Accessibility

Inverse Functions

Lesson ~12 min read 8 MCQs

In simple terms: 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.

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.

The XP function maps score to experience points, showing a direct relationship.

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;
This flowchart diagram shows the step-by-step process for finding the inverse of a function. It begins by checking if the function is one-to-one, shows the step of restricting the domain if it is not, then proceeds to swapping variables, solving, and verifying the result.

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.

The Horizontal Line Test distinguishes one-to-one functions from those that are not.

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 of f⁻¹(x).
  • The range of f(x) (all the resulting y-values, [0, ∞)) becomes the domain of f⁻¹(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.

  1. Rewrite f(x) as y: y = 2x + 3

  2. Swap x and y: This is the key step where we reverse the input and output. x = 2y + 3

  3. Solve for the new y: Now, we just need to isolate y using algebra. x - 3 = 2y (x - 3) / 2 = y

  4. Replace y with f⁻¹(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.

An inverse function reflects the original function across the line y=x.

Worked examples

Let's walk through a few examples together to make these ideas solid.

Example 1

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:

  1. 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.

  2. Swap x and y: x = ³√(y - 1) This is the crucial inverse step—reversing the roles of input and output.

  3. Solve for the new y: Our goal is to get y by itself. To undo the cube root, we'll cube both sides. x³ = (³√(y - 1))³ x³ = y - 1 Now, just add 1 to both sides: x³ + 1 = y

  4. 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.


Example 2

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).

  1. Rewrite: y = (x + 3)², for x ≥ -3.

  2. Swap: x = (y + 3)²

  3. Solve for y: √x = y + 3 √x - 3 = y

    We look back at our restricted domain and range.

Restricting the domain of h(x)=(x+3)² to x ≥ -3 makes it invertible, yielding h⁻¹(x)=√x - 3.
*   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.
  1. Write the final answer: h⁻¹(x) = √x - 3
The cube root function is one-to-one, allowing for a direct inverse without domain restriction.

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?

The inverse of a rational function often involves a swap of variables and algebraic manipulation.