Inverse Functions: Definition, Formula, Graphs, Tables, and Examples
An inverse function reverses the action of an original function. If a function \(f\) takes an input \(a\) and produces an output \(b\), then the inverse function \(f^{-1}\) takes the output \(b\) and returns the original input \(a\). In symbols, if \(f(a)=b\), then \(f^{-1}(b)=a\).
Inverse functions are essential in AP Precalculus because they connect algebra, graphs, tables, composition, domain restrictions, and one-to-one behavior. They also prepare students for logarithms, inverse trigonometric functions, transformations, equation solving, and calculus concepts involving inverse relationships.
Quick Rule
Inverse functions swap inputs and outputs.
What Is an Inverse Function?
An inverse function is a function that undoes another function. If the original function performs a sequence of operations, the inverse performs the opposite operations in the opposite order. For example, if \(f(x)=2x+3\), the function first multiplies by \(2\), then adds \(3\). The inverse must undo those steps by subtracting \(3\), then dividing by \(2\). Therefore, the inverse is \(f^{-1}(x)=\frac{x-3}{2}\).
\[ f(a)=b \quad \Longleftrightarrow \quad f^{-1}(b)=a \]The notation \(f^{-1}(x)\) means “the inverse function of \(f\).” It does not mean the reciprocal of \(f(x)\). This is one of the most common mistakes students make. In function notation, \(f^{-1}(x)\) is the function that reverses \(f(x)\), while \(\frac{1}{f(x)}\) is the reciprocal of the output of \(f\).
\[ f^{-1}(x) \neq \frac{1}{f(x)} \]The strongest way to understand inverse functions is to think about input-output reversal. A regular function answers the question, “What output comes from this input?” An inverse function answers the reverse question, “What input produced this output?” This is why inverse functions are so useful for solving equations. They allow you to work backward from a result to an original value.
Simple meaning: \(f\) sends \(x\) forward. \(f^{-1}\) brings it back.
Interactive Inverse Function Checker
Use this tool to explore simple linear inverse functions. Enter a function in the form \(f(x)=mx+b\), choose an input value, and see how the inverse reverses the output.
The Inverse Function Identity
The composition identity is the formal test for inverse functions. If two functions are true inverses, then composing them in either order gives the identity function. The identity function simply returns the original input.
\[ f(f^{-1}(x))=x \quad\text{and}\quad f^{-1}(f(x))=x \]This identity means that \(f^{-1}\) undoes \(f\), and \(f\) undoes \(f^{-1}\). The order matters in the work, but the final result is the same original input. For example, if \(f(x)=2x+3\) and \(f^{-1}(x)=\frac{x-3}{2}\), then:
\[ f(f^{-1}(x)) = f\left(\frac{x-3}{2}\right) = 2\left(\frac{x-3}{2}\right)+3 = x-3+3 = x \] \[ f^{-1}(f(x)) = f^{-1}(2x+3) = \frac{(2x+3)-3}{2} = \frac{2x}{2} = x \]This composition check is powerful because it verifies that your inverse formula is correct. On an AP-style problem, you may be asked to prove that two functions are inverses. In that case, show both compositions when possible. For some restricted-domain functions, you may also need to mention the domain on which the inverse relationship is valid.
How to Find an Inverse Function Algebraically
The standard algebraic method for finding an inverse function is based on the idea of swapping inputs and outputs. Since \(x\) represents the input and \(y\) represents the output, reversing the function means switching \(x\) and \(y\), then solving for the new \(y\).
- Write the function as \(y=f(x)\). Replace \(f(x)\) with \(y\).
- Swap \(x\) and \(y\). This reverses the input-output relationship.
- Solve for \(y\). Isolate \(y\) using algebra.
- Rename \(y\) as \(f^{-1}(x)\). This gives the inverse function.
- Check the result. Verify using \(f(f^{-1}(x))=x\) or \(f^{-1}(f(x))=x\).
This process works cleanly when the original function is one-to-one and when solving for \(y\) produces a single output for each input. If solving produces two possible values, such as \(y=\pm\sqrt{x}\), then the inverse relation is not a function unless the original domain is restricted.
Memory rule: Swap \(x\) and \(y\), then solve for \(y\).
Worked Example 1: Linear Inverse Function
Problem: Find the inverse of \(f(x)=2x+3\).
Step 1: Replace \(f(x)\) with \(y\).
\[ y=2x+3 \]Step 2: Swap \(x\) and \(y\).
\[ x=2y+3 \]Step 3: Solve for \(y\).
\[ x-3=2y \quad\Rightarrow\quad y=\frac{x-3}{2} \]Step 4: Rename \(y\) as \(f^{-1}(x)\).
\[ f^{-1}(x)=\frac{x-3}{2} \]This answer makes sense because \(f\) multiplies by \(2\) and adds \(3\), while \(f^{-1}\) subtracts \(3\) and divides by \(2\). The inverse performs the opposite operations in the opposite order.
Worked Example 2: Rational Inverse Function
Problem: Find the inverse of \(f(x)=\frac{3x+1}{x-2}\).
Start by writing \(y=\frac{3x+1}{x-2}\). Then swap \(x\) and \(y\):
\[ x=\frac{3y+1}{y-2} \]Now solve for \(y\). Multiply both sides by \(y-2\):
\[ x(y-2)=3y+1 \]Distribute and collect the \(y\)-terms on one side:
\[ xy-2x=3y+1 \quad\Rightarrow\quad xy-3y=2x+1 \]Factor out \(y\):
\[ y(x-3)=2x+1 \]Divide by \(x-3\):
\[ y=\frac{2x+1}{x-3} \]Therefore:
\[ f^{-1}(x)=\frac{2x+1}{x-3} \]Rational inverse problems require careful algebra. The most common mistake is failing to collect all \(y\)-terms before factoring. When both \(x\) and \(y\) appear in products like \(xy\), move every term containing \(y\) to one side, factor \(y\), and then divide.
Worked Example 3: Cube and Cube Root Inverses
Problem: Find the inverse of \(f(x)=x^3-5\).
Write the function using \(y\):
\[ y=x^3-5 \]Swap \(x\) and \(y\):
\[ x=y^3-5 \]Solve for \(y\):
\[ x+5=y^3 \quad\Rightarrow\quad y=\sqrt[3]{x+5} \]Therefore:
\[ f^{-1}(x)=\sqrt[3]{x+5} \]Cubic functions such as \(x^3\) are one-to-one over all real numbers, so their inverses are functions without needing a domain restriction. This is different from quadratic functions such as \(x^2\), which are not one-to-one over all real numbers.
Inverse Functions from Tables
Tables make inverse functions very easy to understand. A table lists input-output pairs. To read inverse values from a table, reverse the direction. Instead of starting with an input and finding the output, start with the output and find the input that produced it.
\[ \text{If } f(a)=b,\text{ then }f^{-1}(b)=a. \]Consider the following table:
| \(x\) | \(f(x)\) | Inverse Reading |
|---|---|---|
| \(1\) | \(5\) | Since \(f(1)=5\), \(f^{-1}(5)=1\). |
| \(2\) | \(6\) | Since \(f(2)=6\), \(f^{-1}(6)=2\). |
| \(3\) | \(8\) | Since \(f(3)=8\), \(f^{-1}(8)=3\). |
| \(4\) | \(9\) | Since \(f(4)=9\), \(f^{-1}(9)=4\). |
| \(5\) | \(12\) | Since \(f(5)=12\), \(f^{-1}(12)=5\). |
To build a complete inverse table, swap the columns. The original \(f(x)\) column becomes the new input column, and the original \(x\) column becomes the new output column for \(f^{-1}(x)\). This is the table version of reflecting a graph over \(y=x\).
A table can also reveal whether an inverse is a function. If two different \(x\)-values produce the same \(f(x)\)-value, then the original function is not one-to-one. For example, if \(f(2)=7\) and \(f(5)=7\), then \(f^{-1}(7)\) would have to equal both \(2\) and \(5\), which is impossible for a function.
Inverse Functions from Graphs
Graphically, inverse functions are reflections across the line \(y=x\). This happens because inverse functions swap \(x\)-coordinates and \(y\)-coordinates. If a point \((a,b)\) lies on the graph of \(f\), then \((b,a)\) lies on the graph of \(f^{-1}\).
\[ (a,b)\in f \quad\Longleftrightarrow\quad (b,a)\in f^{-1} \]The line \(y=x\) works like a mirror. Points on one graph are reflected across this diagonal line to produce points on the inverse graph. For example, if \(f\) passes through \((2,7)\), then \(f^{-1}\) passes through \((7,2)\). If \(f\) passes through \((-1,4)\), then \(f^{-1}\) passes through \((4,-1)\).
When sketching an inverse graph, do not try to guess the shape first. Instead, choose several clear points on the original graph, swap their coordinates, plot the new points, and then connect them with the reflected shape. If the original graph is increasing, the inverse graph is also increasing. If the original graph is decreasing and one-to-one, the inverse graph is also decreasing.
The Horizontal Line Test
A function has an inverse function only if it is one-to-one. A one-to-one function never gives the same output for two different inputs. Algebraically, this means if \(f(a)=f(b)\), then \(a=b\). Graphically, this is tested with the horizontal line test.
\[ f \text{ is one-to-one if } f(a)=f(b)\Rightarrow a=b. \]The horizontal line test says that a function is one-to-one if no horizontal line crosses its graph more than once. If a horizontal line crosses the graph at two or more points, then the function gives the same output for multiple inputs. In that case, its inverse relation would assign one input to multiple outputs, so the inverse would fail the vertical line test and would not be a function.
Horizontal line test: If every horizontal line intersects the graph at most once, the function has an inverse function.
For example, \(f(x)=x^3\) passes the horizontal line test because it is always increasing. Its inverse \(f^{-1}(x)=\sqrt[3]{x}\) is a function. But \(f(x)=x^2\) over all real numbers fails the horizontal line test because \(f(2)=4\) and \(f(-2)=4\). Its inverse relation is \(y=\pm\sqrt{x}\), which is not a function unless the original domain is restricted.
Domain and Range of Inverse Functions
Inverse functions swap domain and range. The domain of the original function becomes the range of the inverse. The range of the original function becomes the domain of the inverse. This is a natural consequence of swapping inputs and outputs.
\[ \text{Domain of } f = \text{Range of } f^{-1} \] \[ \text{Range of } f = \text{Domain of } f^{-1} \]This matters especially for restricted-domain functions. Suppose \(f(x)=x^2\) is restricted to \(x\ge0\). Then the domain of \(f\) is \([0,\infty)\), and the range of \(f\) is also \([0,\infty)\). Its inverse is \(f^{-1}(x)=\sqrt{x}\), with domain \([0,\infty)\) and range \([0,\infty)\).
If instead \(f(x)=x^2\) is restricted to \(x\le0\), then the inverse is \(f^{-1}(x)=-\sqrt{x}\). The domain of the inverse is still \([0,\infty)\), but the range is \((-\infty,0]\). The chosen domain restriction changes which branch of the inverse is used.
Common AP mistake: Students often find the inverse formula but forget to state the correct domain and range. For restricted functions, the domain and range are part of the answer.
Inverse Relations vs Inverse Functions
Every relation has an inverse relation. To create an inverse relation, swap every ordered pair. However, not every inverse relation is a function. The inverse is a function only when the original relation is one-to-one.
Consider the function \(f(x)=x^2\) over all real numbers. Its ordered pairs include \((2,4)\) and \((-2,4)\). When we swap those points, the inverse relation includes \((4,2)\) and \((4,-2)\). This means the input \(4\) has two outputs, \(2\) and \(-2\). That fails the definition of a function.
\[ y=x^2 \quad\Rightarrow\quad x=y^2 \quad\Rightarrow\quad y=\pm\sqrt{x} \]The expression \(y=\pm\sqrt{x}\) is not a function because most positive inputs have two outputs. To make a true inverse function, we restrict the original domain. If \(f(x)=x^2\) for \(x\ge0\), then the inverse is \(f^{-1}(x)=\sqrt{x}\). If \(f(x)=x^2\) for \(x\le0\), then the inverse is \(f^{-1}(x)=-\sqrt{x}\).
Common Parent Functions and Their Inverses
| Original Function | Restriction Needed? | Inverse Function | Key Idea |
|---|---|---|---|
| \(f(x)=x+b\) | No | \(f^{-1}(x)=x-b\) | Addition is undone by subtraction. |
| \(f(x)=mx+b,\;m\ne0\) | No | \(f^{-1}(x)=\frac{x-b}{m}\) | Undo addition, then multiplication. |
| \(f(x)=x^3\) | No | \(f^{-1}(x)=\sqrt[3]{x}\) | Cubing is undone by cube root. |
| \(f(x)=x^2\) | Yes | \(\sqrt{x}\) or \(-\sqrt{x}\) | Choose a branch using a domain restriction. |
| \(f(x)=e^x\) | No | \(f^{-1}(x)=\ln x\) | Exponential and logarithmic functions are inverses. |
| \(f(x)=\log_b x\) | No, with \(x>0\) | \(f^{-1}(x)=b^x\) | Logarithms undo exponentials. |
How Inverse Functions Connect to Logarithms
One of the most important uses of inverse functions is understanding logarithms. A logarithm is the inverse of an exponential function. If \(f(x)=b^x\), then the inverse function is \(f^{-1}(x)=\log_b x\), where \(b>0\) and \(b\ne1\).
\[ y=b^x \quad\Longleftrightarrow\quad x=\log_b(y) \]This relationship means that logarithms answer exponent questions. The expression \(\log_b(y)\) asks, “What exponent on \(b\) gives \(y\)?” For example, since \(2^3=8\), we know \(\log_2(8)=3\). This is exactly the inverse function idea: the original function sends \(3\) to \(8\), and the inverse sends \(8\) back to \(3\).
\[ 2^3=8 \quad\Longleftrightarrow\quad \log_2(8)=3 \]Exponential functions are one-to-one, so their inverses are functions. Their graphs reflect over \(y=x\). The domain of \(b^x\) is all real numbers, and its range is \((0,\infty)\). Therefore, the domain of \(\log_b x\) is \((0,\infty)\), and its range is all real numbers.
How Inverse Functions Connect to Inverse Trigonometric Functions
Inverse trigonometric functions require special care because basic trigonometric functions like sine, cosine, and tangent are not one-to-one over their full natural domains. For example, many different angles have the same sine value. Therefore, to define inverse sine, inverse cosine, and inverse tangent as functions, mathematicians restrict the domains of the original trigonometric functions.
For example, \(y=\sin x\) is restricted to \(\left[-\frac{\pi}{2},\frac{\pi}{2}\right]\) so that it becomes one-to-one. Then its inverse is \(y=\sin^{-1}x\), also written \(y=\arcsin x\). This inverse returns the angle in the restricted interval whose sine is \(x\).
\[ \sin^{-1}(x)=\arcsin(x) \]Again, the notation warning is important. \(\sin^{-1}(x)\) means inverse sine, not \(\frac{1}{\sin x}\). The reciprocal of sine is cosecant, written \(\csc x\). This distinction becomes very important in precalculus and calculus.
\[ \sin^{-1}(x)\neq\frac{1}{\sin x} \quad\text{and}\quad \frac{1}{\sin x}=\csc x \]AP Precalculus Skills for Inverse Functions
- Identify inverse relationships. Recognize that inverse functions reverse input and output.
- Use composition to verify inverses. Show \(f(f^{-1}(x))=x\) and \(f^{-1}(f(x))=x\).
- Find inverse formulas algebraically. Swap \(x\) and \(y\), then solve for \(y\).
- Read inverses from tables. Search the output column of \(f\) to find inputs for \(f^{-1}\).
- Interpret inverse graphs. Reflect points across the line \(y=x\).
- Apply the horizontal line test. Determine whether the inverse is a function.
- Use domain restrictions. Restrict non-one-to-one functions to create inverse functions.
- Avoid notation errors. Remember that \(f^{-1}(x)\) is not the reciprocal of \(f(x)\).
Common Mistakes with Inverse Functions
| Mistake | Why It Is Wrong | Correct Thinking |
|---|---|---|
| Thinking \(f^{-1}(x)=\frac{1}{f(x)}\) | The \(-1\) means inverse function, not reciprocal. | Use \(f^{-1}\) to undo \(f\). |
| Forgetting to swap \(x\) and \(y\) | The inverse reverses inputs and outputs. | Write \(y=f(x)\), swap, then solve. |
| Ignoring the horizontal line test | Not every function has an inverse function. | Check that the function is one-to-one. |
| Forgetting domain restrictions | Functions like \(x^2\) need restrictions to have inverse functions. | Choose a branch such as \(x\ge0\) or \(x\le0\). |
| Giving only the inverse formula | Domain and range may be required. | State the inverse function with its valid domain and range. |
| Misreading tables | Students often search the wrong column. | To find \(f^{-1}(b)\), find \(b\) in the \(f(x)\) column. |
Practice Problems
Try these before opening the answers.
1. Find the inverse of \(f(x)=5x-10\).
Write \(y=5x-10\). Swap: \(x=5y-10\). Solve: \(x+10=5y\), so \(y=\frac{x+10}{5}\). Therefore, \(f^{-1}(x)=\frac{x+10}{5}\).
2. If \(f(7)=12\), what is \(f^{-1}(12)\)?
\(f^{-1}(12)=7\), because the inverse reverses the input-output pair.
3. If a graph of \(f\) contains \((3,-4)\), what point is on \(f^{-1}\)?
The inverse graph contains \((-4,3)\), because inverse functions swap coordinates.
4. Does \(f(x)=x^2\) over all real numbers have an inverse function?
No. It fails the horizontal line test because \(f(2)=4\) and \(f(-2)=4\). It needs a domain restriction, such as \(x\ge0\) or \(x\le0\), to have an inverse function.
5. Verify that \(f(x)=3x+1\) and \(g(x)=\frac{x-1}{3}\) are inverses.
\(f(g(x))=3\left(\frac{x-1}{3}\right)+1=x-1+1=x\). Also, \(g(f(x))=\frac{(3x+1)-1}{3}=\frac{3x}{3}=x\). Therefore, the functions are inverses.
Quick Reference Summary
| Concept | Must Remember |
|---|---|
| Inverse function | A function that reverses another function’s input-output relationship. |
| Notation | \(f^{-1}(x)\) means inverse function, not reciprocal. |
| Composition test | \(f(f^{-1}(x))=x\) and \(f^{-1}(f(x))=x\). |
| Algebraic method | Write \(y=f(x)\), swap \(x\) and \(y\), solve for \(y\). |
| Graph method | Reflect the graph across \(y=x\). |
| Table method | Swap input and output columns. |
| Existence test | The original function must be one-to-one. |
| Domain and range | The domain of \(f\) becomes the range of \(f^{-1}\), and the range of \(f\) becomes the domain of \(f^{-1}\). |
FAQ: Inverse Functions
What is an inverse function?
An inverse function reverses another function. If \(f(a)=b\), then \(f^{-1}(b)=a\). It swaps the input and output relationship.
How do you find an inverse function algebraically?
Write the function as \(y=f(x)\), swap \(x\) and \(y\), solve for \(y\), and then rename \(y\) as \(f^{-1}(x)\).
Is \(f^{-1}(x)\) the same as \(\frac{1}{f(x)}\)?
No. \(f^{-1}(x)\) means the inverse function of \(f\), while \(\frac{1}{f(x)}\) means the reciprocal of the function value.
How do you know if a function has an inverse function?
A function has an inverse function if it is one-to-one. Graphically, it must pass the horizontal line test.
What happens to domain and range in an inverse function?
The domain of the original function becomes the range of the inverse, and the range of the original function becomes the domain of the inverse.
Why does \(x^2\) need a domain restriction to have an inverse?
Over all real numbers, \(x^2\) is not one-to-one because different inputs can produce the same output. Restricting the domain to \(x\ge0\) or \(x\le0\) makes it one-to-one and allows an inverse function.