Skip to content
Study Hall
Lesson 5 of 12Characteristics of Functions
Unit 1 · Lesson 5 of 12

Inverse Functions

The inverse of a function reverses inputs and outputs; it's found algebraically by swapping x and y, and graphically it's a reflection in the line .

6 min read11 practice questionsAsk AI about this →

Key things to remember

  1. 1To find algebraically: replace with , swap and , then solve for .
  2. 2 and are reflections of each other in the line ; if is on , then is on .
  3. 3 is notation for the inverse function, not .
  4. 4The inverse of is a function only if passes the horizontal line test (i.e., is one-to-one).
  5. 5Restricting the domain of a many-to-one function (like ) can make its inverse a function.
  6. 6Domain of = range of , and range of = domain of ; verify with .

If a function is a machine that turns inputs into outputs, its inverse is the machine run backwards — it takes the original outputs and hands back the original inputs. If , then . Inverses show up constantly: converting Celsius to Fahrenheit and back, encrypting and decrypting a message, or finding "how many hours to reach a distance" from "distance as a function of hours." Whenever a question gives you the output and asks for the input over and over, the inverse function answers all of those questions at once.

Finding an inverse algebraically

  1. Replace with .
  2. Swap and everywhere in the equation.
  3. Solve the new equation for .
  4. Replace with (read " inverse of " — this is notation, not an exponent ).
The inverse is not the reciprocal
The in is inverse-function notation, borrowed from exponent notation but meaning something completely different. It never means "take the reciprocal of ." For : , while — two unrelated functions.

Why does swapping work? The graph of is the set of points . The inverse should contain the same pairs with the roles reversed, — and swapping and in the equation does exactly that. There is also a second way to see it: an inverse undoes the steps in reverse order, like taking off your shoes before your socks. means "multiply by 2, then subtract 3." Undoing it means "add 3, then divide by 2," which is . Both methods always agree; the reverse-steps view is a quick mental check.

Reflection in y = x

Swapping and is exactly the algebraic version of reflecting the graph across the line . Every point on becomes the point on — so the graphs of and are always mirror images of each other across . This gives a fast way to sketch an inverse without any algebra: draw the dashed line , take three or four easy points on , swap each point's coordinates, and join the new points. For , the points , and become , and on . Notice the slopes: has slope and has slope — a linear function's inverse always has the reciprocal slope, because rise and run trade places.

y = xf(x) = ½x + 1f⁻¹(x) = 2x - 2(a, b)(b, a)
Fig 1f(x) and its inverse f⁻¹(x) are reflections of each other in the line y = x.

Three consequences follow. First, the domain and range swap: the domain of is the range of , and the range of is the domain of . Second, any point where meets the line (like on ) lies on both graphs, since swapping its coordinates changes nothing. Third, applying a function and then its inverse returns you to the start: and . That last fact is the standard way to verify an inverse — substitute one into the other and check that everything simplifies to .

VideoJensenMath's MCR3U lesson on inverses: switching x and y to find the inverse equation, and graphing the inverse as a reflection of the original in the line y = x.Watch on YouTube

When is the inverse a function?

Swapping and always produces a valid relation, but not always a valid function. Since the inverse relation is the reflection of , the vertical line test on the inverse is equivalent to a horizontal line test on the original: if any horizontal line crosses 's graph more than once, then fails the vertical line test and is not a function.

This is exactly what happens with — it's a parabola, so a horizontal line like crosses it twice (at and ). Run backwards, the output would have to return two inputs, which a function can't do. To fix this, we restrict the domain of the original function (e.g. to ) so that it passes the horizontal line test, which guarantees the inverse is a genuine function. For a parabola the natural cut is at the vertex: keep either the right half or the left half, and choose the matching sign of the square root.

FunctionRestricted domainInverseInverse domain
none needed
The inverse's domain is always the original function's range.
Picking the sign of the root
When you take a square root while solving for , the sign is decided by the original domain, because that domain becomes the inverse's range. If the original used (the right half of the parabola), the inverse's outputs must be , so use . If it used , use .
VideoAn MCR3U example on finding the domain and range of an inverse, which links to this section's question of when an inverse is a function and when the domain must be restricted.Watch on YouTube

Inverses in context

In applications the variables have meanings, so it often makes more sense to solve for the original input than to literally swap letters. Temperature in Fahrenheit is . Solving for gives the inverse, , which converts the other way: °F becomes °C. A taxi fare (in dollars, for kilometres) has inverse , which tells you how far a given budget will take you. Keep the variable names — swapping and would mix up the units. Context also explains when an inverse fails. A ball's height rises and then falls, so a height of m happens twice — once going up and once coming down. Asking "at what time is the height 10 m?" has two answers, so the inverse is not a function unless you restrict to the rising part (before the vertex) or the falling part (after it). That is the horizontal line test in real-world clothing.

Worked examples

Reveal one step at a time and try to beat it to the next line.

Example 1
Find the inverse of , and verify it.
Example 2
Find the inverse of for , and state its domain.
Example 3
Find the inverse of .
Example 4
Let with domain . Find , state its domain and range, and check with a value.

Where marks get lost

  • Confusing with — they are unrelated.
  • Forgetting to swap and before solving — just solving the original equation for instead.
  • Taking only the positive square root without checking whether the original domain restriction actually calls for it (sometimes the negative root is the correct branch).
  • Assuming every function has an inverse function without first checking the horizontal line test.
  • Giving the inverse's domain from its own formula alone. For , the inverse has domain — which is the range of ; always swap the original domain and range.

Flashcards 9

Inverse function notation
Steps to find an inverse
Graphical relationship
Horizontal line test
+ 5 more

Practice

1
Find for .
2
If , what is ?
3
The graph of f⁻¹ is always the graph of f reflected across which line?
4
Why must have its domain restricted before its inverse is a function?
5
Which test on the ORIGINAL graph tells you whether its inverse will be a function?
6
Find for .
7
For , evaluate .
8
Order the steps to find the inverse of :
  1. 1Add 9 to both sides: x + 9 = 4y
  2. 2Write as f⁻¹(x) = (x+9)/4
  3. 3Divide both sides by 4: y = (x+9)/4
  4. 4Swap x and y: x = 4y − 9
9
Temperature converts by . Use the inverse to convert 50 °F to Celsius.
°C
10
has domain and range . What is the domain of ?
11
Match each function with its inverse.
  1. A.
  2. B.
  3. C.
  4. D.

Spot a mistake on this page? Let us know