HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
Domain, Range, Inverse and Composite Functions
  1. 1Functions, domain, range and the modulus
  2. 2Inverse functions and their graphs
  3. 3Composite functions
  1. Mathematics
  2. /Domain, Range, Inverse and Composite Functions
  3. /Inverse functions and their graphs

Course 21.1·Lesson 2 of 3

Inverse functions and their graphs

An inverse function undoes a function, but only a one-one function has an inverse. You find inverses, restrict a domain so that an inverse exists, and see that a function and its inverse are reflections of each other in the line y = x.

about 25 min1 simulation1 practice question
Lesson 2 of 3Show all lessonsHide
Domain, Range, Inverse and Composite Functions
  1. 1Functions, domain, range and the modulus
  2. 2Inverse functions and their graphs
  3. 3Composite functions

Try the code and the simulations beside the lesson.

Running a function backwards

A function fff turns an input into an output. Its inverse f−1f^{-1}f−1 turns that output back into the input. If f(3)=11f(3) = 11f(3)=11, then f−1(11)=3f^{-1}(11) = 3f−1(11)=3.

To find f−1(x)f^{-1}(x)f−1(x):

  1. Write y=f(x)y = f(x)y=f(x).
  2. Swap xxx and yyy.
  3. Solve for yyy. That yyy is f−1(x)f^{-1}(x)f−1(x).

For f(x)=3x−5f(x) = 3x - 5f(x)=3x−5: write x=3y−5x = 3y - 5x=3y−5, so y=x+53y = \dfrac{x + 5}{3}y=3x+5​. Then f−1(x)=x+53f^{-1}(x) = \dfrac{x + 5}{3}f−1(x)=3x+5​. The correct notation matters: f−1(x)f^{-1}(x)f−1(x) is not 1f(x)\dfrac{1}{f(x)}f(x)1​.

A function with a fraction needs one more step. For f(x)=2x+1x−3f(x) = \dfrac{2x + 1}{x - 3}f(x)=x−32x+1​, x≠3x \ne 3x=3:

  1. Swap: x=2y+1y−3x = \dfrac{2y + 1}{y - 3}x=y−32y+1​.
  2. Clear the fraction: xy−3x=2y+1xy - 3x = 2y + 1xy−3x=2y+1.
  3. Gather the yyy terms: xy−2y=3x+1xy - 2y = 3x + 1xy−2y=3x+1, so y(x−2)=3x+1y(x - 2) = 3x + 1y(x−2)=3x+1.
  4. Divide: f−1(x)=3x+1x−2f^{-1}(x) = \dfrac{3x + 1}{x - 2}f−1(x)=x−23x+1​, for x≠2x \ne 2x=2.

Notice that x≠2x \ne 2x=2 is the value that f(x)f(x)f(x) never takes. The domain of f−1f^{-1}f−1 is the range of fff, and the range of f−1f^{-1}f−1 is the domain of fff.

Why some functions have no inverse

The function f(x)=x2f(x) = x^2f(x)=x2 for all real xxx is many-one. The output 999 comes from x=3x = 3x=3 and from x=−3x = -3x=−3. If we tried to run it backwards, 999 would need two answers. An inverse must give exactly one answer, so only a one-one function has an inverse. In words: f(x)=x2f(x) = x^2f(x)=x2 has no inverse because two different inputs give the same output.

We can often restrict the domain to make a function one-one. The function f(x)=x2f(x) = x^2f(x)=x2 for x≥0x \ge 0x≥0 is one-one, and its inverse is f−1(x)=xf^{-1}(x) = \sqrt{x}f−1(x)=x​.

For a quadratic, the domain must stay on one side of the turning point. The function f(x)=(x−2)2+3f(x) = (x - 2)^2 + 3f(x)=(x−2)2+3 for x≥2x \ge 2x≥2 is one-one. Its range is f(x)≥3f(x) \ge 3f(x)≥3, so the inverse is f−1(x)=2+x−3f^{-1}(x) = 2 + \sqrt{x - 3}f−1(x)=2+x−3​ for x≥3x \ge 3x≥3. We take the plus sign because the range of f−1f^{-1}f−1 is the domain of fff, which is x≥2x \ge 2x≥2.

The graph of an inverse

The graph of y=f−1(x)y = f^{-1}(x)y=f−1(x) is the reflection of the graph of y=f(x)y = f(x)y=f(x) in the line y=xy = xy=x. A point (a,b)(a, b)(a,b) on fff becomes the point (b,a)(b, a)(b,a) on f−1f^{-1}f−1. The two graphs meet on the line y=xy = xy=x, if they meet at all.

A graph with equal scales. The blue curve is y equals x squared for x at least 0, rising from the origin. The green curve is its inverse, y equals the square root of x, the mirror image of the blue curve in the dashed line y equals x. The point (2, 4) on the blue curve and its mirror image (4, 2) on the green curve are marked in red.

The functions exe^xex and ln⁡x\ln xlnx are inverses of each other. So the inverse of f(x)=e2xf(x) = e^{2x}f(x)=e2x is f−1(x)=12ln⁡xf^{-1}(x) = \tfrac{1}{2}\ln xf−1(x)=21​lnx. You study them in the third course of this chapter.

Practise with new numbers

Try it in Python

The program checks that the inverse of f(x)=(x−3)2+2f(x) = (x - 3)^2 + 2f(x)=(x−3)2+2 undoes fff for x≥3x \ge 3x≥3, and shows what happens outside the restricted domain.

Read it first. Then run it. Which inputs come back unchanged?

1. Change the list to [3, 5, 8] and check the pattern.

2. Try f_inverse(f(1)). Which number do you get, and why is it not 111?

Common mistakes

  • Taking f−1(x)f^{-1}(x)f−1(x) as 1f(x)\dfrac{1}{f(x)}f(x)1​. The notation −1-1−1 means the inverse function.
  • Forgetting to restrict the domain. A many-one function has no inverse until the domain is restricted.
  • Choosing the wrong square-root sign. Use the sign that matches the restricted domain.
  • Swapping the domain and range. The domain of f−1f^{-1}f−1 is the range of fff.
  • Dropping the excluded value from the inverse of a fraction.

Remember these

  • To find f−1(x)f^{-1}(x)f−1(x): write y=f(x)y = f(x)y=f(x), swap xxx and yyy, solve for yyy.
  • Only a one-one function has an inverse. Restrict the domain if you need to.
  • Domain of f−1f^{-1}f−1 = range of fff. Range of f−1f^{-1}f−1 = domain of fff.
  • The graph of f−1f^{-1}f−1 is the reflection of the graph of fff in y=xy = xy=x.

Check yourself

Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.

  1. Find f−1(x)f^{-1}(x)f−1(x) when f(x)=4x+9f(x) = 4x + 9f(x)=4x+9.
  1. Explain in words why g(x)=x2−4g(x) = x^2 - 4g(x)=x2−4 for all real xxx has no inverse.
  1. The function f(x)=(x−1)2+5f(x) = (x - 1)^2 + 5f(x)=(x−1)2+5 has the domain x≥1x \ge 1x≥1. Find f−1(x)f^{-1}(x)f−1(x) and state its domain.
  1. A point on the graph of fff is (2,7)(2, 7)(2,7). Which point is on the graph of f−1f^{-1}f−1?
  1. The inverse of f(x)=e2xf(x) = e^{2x}f(x)=e2x is f−1(x)=12ln⁡xf^{-1}(x) = \tfrac{1}{2}\ln xf−1(x)=21​lnx. Use your calculator to find f−1(20)f^{-1}(20)f−1(20) to 2 decimal places.

References

  • Cambridge International, IGCSE Additional Mathematics 0606 syllabus (2025, 2026 and 2027), unit 1 Functions.
  • OpenStax, Precalculus 2e, chapter 1 Functions, the section on inverse functions.

Enroll free in Domain, Range, Inverse and Composite Functions

Every lesson is open to read. Enrolling also lets you:

  • Mark lessons done and carry on where you stopped.
  • Take the tests of this lesson and its course.
  • Count the course towards the certificate for its chapter.
No payment. You can leave at any time.

Problems (4)

A machine multiplies its input by 3 and then subtracts 4…Easy · High School (9–10) · by StemPy Lab
A rule divides one linear expression by another, and Priya wants the reverse rule and the inputs it…Medium · High School (9–10) · by StemPy Lab
Samir wants to run a quadratic rule backwards, so the domain must be cut on one side of the turning…Medium · High School (9–10) · by StemPy Lab
Next: lesson 3Composite functions
← Domain, Range, Inverse and Composite Functions
← Functions, domain, range and the modulusComposite functions →

Discussion (0)

Log in to join the discussion.

Loading…

1 Python program
5 questions to check yourself

This lesson is free to read. Enroll free to keep your place and take the tests.

Some rules are their own reverse: running them twice returns the starting input, whatever it was…Hard · High School (9–10) · by StemPy Lab