Skip to main content
NSWMaths Extension 1Syllabus dot point

How do we form the inverse of a relation by swapping xx and yy, when is that inverse itself a function, and how do we find and verify a rule for f1(x)f^{-1}(x)?

Form the inverse relation by reflecting y=f(x)y = f(x) in the line y=xy = x, use the horizontal line test to decide whether the inverse is a function, find the rule for f1(x)f^{-1}(x) and verify it by showing f(f1(x))=xf(f^{-1}(x)) = x, swap the domain and range, and restrict a domain so that a many-to-one function gains an inverse

The Year 11 Extension 1 dot point on inverse relations and functions. Swap x and y to get the inverse (a reflection in y = x), use the horizontal line test to decide whether it is a function, find and verify f-inverse by composition, swap the domain and range, and restrict a domain so a many-to-one function gains an inverse.

Generated by Claude Opus 4.822 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

What this dot point is asking

NESA gives you a relation, usually a function y=f(x)y = f(x), and asks you to build its inverse: the relation you get by reversing every input-output pair. Geometrically that is a single clean idea, reflect the graph in the line y=xy = x, and the rest of the topic is the consequences of that one reflection.

There are four skills bundled together here:

  • Form the inverse relation by swapping xx and yy (and solving for yy if you can).
  • Decide whether the inverse is a function using the horizontal line test on the original.
  • Find and verify the rule for f1(x)f^{-1}(x), checking it by composition: f(f1(x))=xf(f^{-1}(x)) = x.
  • Swap the domain and range, and restrict a domain when the inverse would otherwise fail to be a function.

The reflection in y=xy = x is the thread through all of it: it is why the coordinates swap, why the domain and range swap, and why "no horizontal line twice" is the test that the inverse passes the vertical line test. The same "act on the picture, feature by feature" habit that drives sketching y=f(x)y = |f(x)| and y=f(x)y = f(|x|) and sketching y=1f(x)y = \tfrac{1}{f(x)} applies here, with the line y=xy = x as the mirror. This Year 11 page is the first-contact treatment; the Year 12 page inverse functions and composite functions extends it with composition and calculus.

The answer

Forming the inverse relation: swap xx and yy

A relation is just a set of ordered pairs (x,y)(x, y). Its inverse relation is the set of all the reversed pairs (y,x)(y, x): whatever the relation sent xx to, the inverse sends back. So the way to get the equation of the inverse is to swap xx and yy everywhere in the equation (and in any restriction), then, if possible, solve for yy to get a rule.

For example, the inverse of y=2x6y = 2x - 6 is found by writing x=2y6x = 2y - 6 and solving: y=x+62y = \dfrac{x + 6}{2}. The inverse of y=x3+1y = x^3 + 1 is x=y3+1x = y^3 + 1, which solves to y=x13y = \sqrt[3]{x - 1}.

Two facts fall straight out of the definition:

  • The inverse of the inverse is the original relation (swapping twice gets you back).
  • The graph of the inverse is the reflection of the original graph in the line y=xy = x, because reflecting in y=xy = x is exactly what exchanges the first and second coordinates of every point.

A cubic and its inverse reflected in the line y equals xThe curve y equals x cubed plus one is drawn in muted and its inverse y equals the cube root of x minus one is drawn in accent. The two curves are mirror images in the dashed line y equals x. The point zero comma one on the original maps to one comma zero on the inverse.xy-3-2-1123-3-2-1123(0, 1)(1, 0)y = x³ + 1y = f⁻¹(x)y = xInverse = reflection of y = f(x) in the dashed line y = x.

Notice the two named points: (0,1)(0, 1) on the cubic maps to (1,0)(1, 0) on the inverse, the coordinates simply swapping. Every point obeys the same rule, which is why the whole curve is a mirror image in y=xy = x.

The horizontal line test: is the inverse a function?

Swapping the pairs always gives an inverse relation, but it may not be an inverse function. A function is allowed only one yy for each xx (the vertical line test). When we reflect in y=xy = x, vertical lines become horizontal lines, so the inverse passes the vertical line test exactly when the original passes a horizontal line test.

The inverse of y=f(x)y = f(x) is a function if and only if no horizontal line crosses the graph of y=f(x)y = f(x) more than once, that is, the original function is one-to-one.

A one-to-one function never repeats a yy-value: different inputs give different outputs. A many-to-one function repeats at least one yy-value (some horizontal line cuts twice), and when reflected those two points share an xx-value, breaking the vertical line test for the inverse.

The horizontal line test for whether an inverse is a functionLeft: the one-to-one line y equals two x minus six is cut by a horizontal line exactly once, so it passes and its inverse is a function. Right: the parabola y equals x squared minus three is cut by a horizontal line twice, so it fails and its inverse is not a function.xy-4-224-4-224meets onceone-to-one: PASSESf = 2x - 6xy-4-224-224meets twicemany-to-one: FAILSf = x² - 3No horizontal line may cut twice if the inverse is to be a function.

The line on the left is one-to-one, so its inverse is a function. The parabola on the right is many-to-one (the line y=1y = 1 meets it at x=2x = 2 and x=2x = -2), so its inverse is the two-armed relation y=±x+3y = \pm\sqrt{x + 3}, which is not a function.

Finding the rule for f1(x)f^{-1}(x) and verifying it

Once you know the inverse is a function, the recipe for its rule is the same swap, finished off by making yy the subject:

  1. Start from y=f(x)y = f(x).
  2. Swap xx and yy (and swap any restriction).
  3. Solve for yy. The result is y=f1(x)y = f^{-1}(x).
  4. Verify by composition: show f(f1(x))=xf(f^{-1}(x)) = x (substituting the inverse into ff should collapse to xx).

The verification is not optional decoration. It is the definition of "inverse" in action, and in an exam it both earns marks and catches algebra slips. If f(f1(x))f(f^{-1}(x)) does not simplify to xx, you have made an error.

For the line f(x)=2x6f(x) = 2x - 6: swap to x=2y6x = 2y - 6, solve to f1(x)=x+62f^{-1}(x) = \dfrac{x + 6}{2}, then check f(f1(x))=2x+626=(x+6)6=xf(f^{-1}(x)) = 2 \cdot \dfrac{x + 6}{2} - 6 = (x + 6) - 6 = x. It works, so the rule is right.

A rational function: ax+bcx+d\dfrac{ax + b}{cx + d}

The swap-and-solve method shines on a rational function, where the algebra is the whole task. Take f(x)=2x+3x1f(x) = \dfrac{2x + 3}{x - 1}. Swap: x=2y+3y1x = \dfrac{2y + 3}{y - 1}. Multiply out: x(y1)=2y+3x(y - 1) = 2y + 3, so xyx=2y+3xy - x = 2y + 3. Collect the yy terms: xy2y=x+3xy - 2y = x + 3, that is y(x2)=x+3y(x - 2) = x + 3. Divide: f1(x)=x+3x2f^{-1}(x) = \dfrac{x + 3}{x - 2}.

The asymptotes tell the same story as the reflection. The original has a vertical asymptote at x=1x = 1 (zero denominator) and a horizontal asymptote at y=2y = 2 (ratio of leading coefficients). Reflecting in y=xy = x swaps the roles of xx and yy, so the inverse has a vertical asymptote at x=2x = 2 and a horizontal asymptote at y=1y = 1, which is exactly what the rule x+3x2\dfrac{x + 3}{x - 2} shows.

A rational function and its inverse with swapped asymptotesThe hyperbola y equals two x plus three over x minus one has a vertical asymptote at x equals one and a horizontal asymptote at y equals two. Its inverse y equals x plus three over x minus two has the asymptotes swapped: vertical at x equals two and horizontal at y equals one. The curves are mirror images in y equals x.xy-6-4-2246-6-4-2246(0, -3)(-3, 0)x = 1y = 2Asymptotes swap: x = 1, y = 2 → x = 2, y = 1.

Domain and range swap

Because the inverse simply reverses every pair, the set of inputs and the set of outputs trade places:

  • the domain of f1f^{-1} is the range of ff;
  • the range of f1f^{-1} is the domain of ff.

This is the reflection again: the xx-extent and the yy-extent of the graph are exchanged when you flip in y=xy = x. It is also how you write down the domain of an inverse that involves a square root, where the rule alone would not tell you the full story.

Domain and range swap between a function and its inverseThe restricted parabola y equals x squared minus three for x at least zero has domain x at least zero and range y at least minus three. Its inverse y equals the square root of x plus three has domain x at least minus three and range y at least zero: the domain and range have swapped.xy-3-2-1123-3-2-1123(0, -3)(-3, 0)f, x ≥ 0f⁻¹f: dom x ≥ 0, ran y ≥ -3 → f⁻¹: dom x ≥ -3, ran y ≥ 0The domain and range swap when you reflect in y = x.

Restricting a domain so an inverse exists

When a function is many-to-one, its inverse is not a function, but you can often restrict the domain to a piece on which the function is one-to-one, and that piece has an inverse function. The classic case is a parabola: the whole of f(x)=x23f(x) = x^2 - 3 fails the horizontal line test, but the right-hand branch x0x \ge 0 is increasing and one-to-one.

On that branch, swap y=x23y = x^2 - 3 (x0x \ge 0) to x=y23x = y^2 - 3 (y0y \ge 0); solving gives y2=x+3y^2 = x + 3, and the restriction y0y \ge 0 forces the positive root, so f1(x)=x+3f^{-1}(x) = \sqrt{x + 3}. The restriction is what makes the single square root legitimate: without it, y=±x+3y = \pm\sqrt{x + 3} is two-armed and not a function. (Choosing the left branch x0x \le 0 instead would give the other inverse, f1(x)=x+3f^{-1}(x) = -\sqrt{x + 3}.)

Restricting the domain so an inverse existsThe full parabola y equals x squared minus three is shown faint because it fails the horizontal line test. Keeping only the right branch x at least zero, drawn solid, makes it one-to-one, and its inverse the square root of x plus three is drawn in accent as the reflection in y equals x.xy-3-2-1123-3-2-1123(0, -3)(-3, 0)rejected half (x < 0)kept: x ≥ 0f⁻¹Restrict to x ≥ 0 (one-to-one); now the inverse is a function.

A quick way to spot functions that will always need restricting: any even function whose domain includes a non-zero number fails the horizontal line test, because f(a)=f(a)f(-a) = f(a) gives a repeated height. Parabolas and y=x4y = x^4 are typical. So is any polynomial with two or more distinct real linear factors, since it must turn back on itself between the roots.

A self-inverse function

A few functions are their own inverse: f1=ff^{-1} = f, equivalently f(f(x))=xf(f(x)) = x. Their graphs are unchanged by reflection in y=xy = x (they are symmetric in that line). The simplest is f(x)=6xf(x) = \dfrac{6}{x}: f(f(x))=66/x=xf(f(x)) = \dfrac{6}{6/x} = x. More generally, a rational function ax+bcx+d\dfrac{ax + b}{cx + d} is self-inverse exactly when a+d=0a + d = 0. For instance f(x)=x+3x1f(x) = \dfrac{x + 3}{x - 1} has a=1a = 1 and d=1d = -1, so a+d=0a + d = 0, and indeed substituting confirms f(f(x))=xf(f(x)) = x for every xx in the domain. Recognising this lets you state the inverse instantly, with no swap-and-solve needed.

Combining the ideas, stage by stage

The full procedure, find the rule and present the graph, is best seen as a short sequence. Take the one-to-one line f(x)=2x6f(x) = 2x - 6 and build its inverse graph step by step.

Stage 1, plot the original y=f(x)y = f(x)
Draw f(x)=2x6f(x) = 2x - 6, a line through (3,0)(3, 0) and (0,6)(0, -6) with gradient 22. It is one-to-one, so an inverse function exists.
Stage 2, draw the mirror line y=xy = x
Add the dashed line y=xy = x. This is the mirror: the inverse graph will be the reflection of the line in it.
Stage 3, reflect the key points
Pick easy points on ff and swap their coordinates: (1,4)(4,1)(1, -4) \to (-4, 1), (3,0)(0,3)(3, 0) \to (0, 3) and (5,4)(4,5)(5, 4) \to (4, 5). Each reflected point sits on the opposite side of y=xy = x, the same perpendicular distance away.
Stage 4, draw the inverse line
Join the reflected points to get y=f1(x)y = f^{-1}(x), the line through (0,3)(0, 3) and (4,1)(-4, 1). Solving algebraically confirms it: f1(x)=x+62=x2+3f^{-1}(x) = \dfrac{x + 6}{2} = \dfrac{x}{2} + 3, gradient 12\tfrac{1}{2} and yy-intercept 33, exactly the reflected line.

Finding the inverse of a line stage by stageFour panels. First the line y equals two x minus six is plotted. Then the mirror line y equals x is added. Then three points are reflected across it. Finally the whole inverse line y equals x over two plus three is drawn as the reflection.xy-2246-4241. Plot y = 2x - 6xy-2246-4242. Add mirror y = xxy-2246-4243. Reflect key pointsxy-2246-4244. Draw inverse linef⁻¹Reflect the line in y = x to get f⁻¹(x) = x/2 + 3.

How exam questions ask about inverses

The wording tells you which skill to use.

  • "Find the inverse function f1(x)f^{-1}(x)." Swap xx and yy, solve for yy, and (if asked) verify by composition. State the domain if a root or restriction is involved.
  • "Show that the inverse is / is not a function." Apply the horizontal line test to y=f(x)y = f(x): name a horizontal line that cuts once (it is) or twice (it is not).
  • "Verify that f(f1(x))=xf(f^{-1}(x)) = x." Substitute your f1(x)f^{-1}(x) into ff and simplify; it must collapse to xx.
  • "State the domain (or range) of f1f^{-1}." The domain of f1f^{-1} is the range of ff, and the range of f1f^{-1} is the domain of ff.
  • "Restrict the domain of ff so that an inverse function exists." Choose a largest interval on which ff is one-to-one (e.g. xx \ge the turning-point value for a parabola), then invert on that piece.
  • "Sketch y=f(x)y = f(x) and y=f1(x)y = f^{-1}(x) on the same axes." Draw y=xy = x dashed, reflect a few key points, and draw the smooth reflection.
  • "Show that ff is its own inverse." Compute f(f(x))f(f(x)) and show it equals xx (or, for a rational ax+bcx+d\tfrac{ax+b}{cx+d}, check a+d=0a + d = 0).
  • "Describe the geometric relationship between the graphs." They are reflections of each other in the line y=xy = x.

Exam-style practice questions

Practice questions written in the style of NESA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

HSC-style4 marksThe function f(x)=2x6f(x) = 2x - 6 is defined for all real xx. (i) Find the rule for the inverse function f1(x)f^{-1}(x). (ii) Verify your answer by showing that f(f1(x))=xf(f^{-1}(x)) = x. (iii) State the geometric relationship between the graphs of y=f(x)y = f(x) and y=f1(x)y = f^{-1}(x).
Show worked answer →

This is the standard three-part inverse question: find the rule, verify by composition, name the geometry.

Part (i): find the inverse
Write y=2x6y = 2x - 6, then swap xx and yy to get the inverse relation x=2y6x = 2y - 6. Solve for yy: add 66 to both sides to get x+6=2yx + 6 = 2y, then divide by 22, giving y=x+62y = \dfrac{x + 6}{2}. So f1(x)=x+62f^{-1}(x) = \dfrac{x + 6}{2}, which can also be written f1(x)=x2+3f^{-1}(x) = \dfrac{x}{2} + 3.
Part (ii): verify by composition
Substitute f1(x)f^{-1}(x) into ff: f(f1(x))=2x+626=(x+6)6=xf(f^{-1}(x)) = 2 \cdot \dfrac{x + 6}{2} - 6 = (x + 6) - 6 = x. Because composing the two functions returns the input unchanged, f1f^{-1} really is the inverse. (Checking the other order, f1(f(x))=(2x6)+62=2x2=xf^{-1}(f(x)) = \dfrac{(2x - 6) + 6}{2} = \dfrac{2x}{2} = x, confirms it both ways.)
Part (iii): the geometry
The graph of y=f1(x)y = f^{-1}(x) is the reflection of the graph of y=f(x)y = f(x) in the line y=xy = x. Each point (a,b)(a, b) on y=f(x)y = f(x) corresponds to the point (b,a)(b, a) on y=f1(x)y = f^{-1}(x).

Markers reward the swap-and-solve in part (i), the substitution that simplifies to xx in part (ii), and the words "reflection in the line y=xy = x" in part (iii).

HSC-style5 marksLet f(x)=x23f(x) = x^2 - 3. (i) Show that ff does not have an inverse function by referring to the horizontal line test. (ii) The domain of ff is now restricted to x0x \ge 0. Find the rule for the inverse function of this restricted function, and state its domain. (iii) Verify that f(f1(x))=xf(f^{-1}(x)) = x for the restricted function.
Show worked answer →

The contrast between the unrestricted (fails) and restricted (works) cases is the heart of this dot point.

Part (i): the horizontal line test
A function has an inverse function exactly when no horizontal line meets its graph more than once. The parabola f(x)=x23f(x) = x^2 - 3 is symmetric in the yy-axis, so the horizontal line y=1y = 1 meets it where x23=1x^2 - 3 = 1, that is x2=4x^2 = 4, so x=2x = 2 and x=2x = -2: two points. Because a horizontal line cuts the graph twice, ff is many-to-one and its inverse is not a function.
Part (ii): restrict and invert
With x0x \ge 0 the graph is only the right-hand half of the parabola, which is one-to-one (each height occurs once), so an inverse function exists. Write y=x23y = x^2 - 3 with x0x \ge 0, then swap: x=y23x = y^2 - 3 with y0y \ge 0. Solve for yy: y2=x+3y^2 = x + 3, and since y0y \ge 0 we take the positive root, y=x+3y = \sqrt{x + 3}. So f1(x)=x+3f^{-1}(x) = \sqrt{x + 3}. Its domain is the range of the original function: the restricted ff has range y3y \ge -3, so the domain of f1f^{-1} is x3x \ge -3.
Part (iii): verify
Substitute: f(f1(x))=(x+3)23=(x+3)3=xf(f^{-1}(x)) = \left(\sqrt{x + 3}\right)^2 - 3 = (x + 3) - 3 = x, valid for x3x \ge -3. The composition returns the input, confirming the inverse.

Markers reward naming the line that cuts twice in part (i), keeping the restriction y0y \ge 0 that selects the positive root in part (ii), and the clean simplification to xx in part (iii). A common error is to drop the ±\pm discussion and forget that the restriction is what makes the single root legitimate.

Practice questions

Original practice questions graded from foundation to exam level, each with a full worked solution. Try them before revealing the solution.

foundation3 marksFind the rule for the inverse function of f(x)=3x+12f(x) = 3x + 12, and verify your answer by showing that f1(f(x))=xf^{-1}(f(x)) = x.
Show worked solution →
Swap and solve
Write y=3x+12y = 3x + 12, then swap xx and yy: x=3y+12x = 3y + 12. Subtract 1212: x12=3yx - 12 = 3y. Divide by 33: y=x123y = \dfrac{x - 12}{3}. So f1(x)=x123f^{-1}(x) = \dfrac{x - 12}{3}.
Verify by composition
Substitute f(x)=3x+12f(x) = 3x + 12 into f1f^{-1}: f1(f(x))=(3x+12)123=3x3=xf^{-1}(f(x)) = \dfrac{(3x + 12) - 12}{3} = \dfrac{3x}{3} = x. Because the composition returns the input, the rule is correct.
Answer
f1(x)=x123f^{-1}(x) = \dfrac{x - 12}{3}, and f1(f(x))=xf^{-1}(f(x)) = x as required.
foundation3 marksThe function g(x)=x38g(x) = x^3 - 8 is one-to-one. Find g1(x)g^{-1}(x), and state the coordinates of the point on y=g1(x)y = g^{-1}(x) that corresponds to the point (2,0)(2, 0) on y=g(x)y = g(x).
Show worked solution →
Swap and solve
Write y=x38y = x^3 - 8, then swap: x=y38x = y^3 - 8. Add 88: x+8=y3x + 8 = y^3. Take the cube root (defined for every real number, so no restriction is needed): y=x+83y = \sqrt[3]{x + 8}. So g1(x)=x+83g^{-1}(x) = \sqrt[3]{x + 8}.
Find the corresponding point
A point (a,b)(a, b) on y=g(x)y = g(x) maps to (b,a)(b, a) on the inverse. Here g(2)=238=0g(2) = 2^3 - 8 = 0, so (2,0)(2, 0) lies on y=g(x)y = g(x); swapping the coordinates gives (0,2)(0, 2) on y=g1(x)y = g^{-1}(x). Checking: g1(0)=0+83=83=2g^{-1}(0) = \sqrt[3]{0 + 8} = \sqrt[3]{8} = 2, confirming (0,2)(0, 2).
Answer
g1(x)=x+83g^{-1}(x) = \sqrt[3]{x + 8}, and the point (2,0)(2, 0) on gg corresponds to (0,2)(0, 2) on g1g^{-1}.
core4 marksFind the rule for the inverse function of h(x)=3x1x+2h(x) = \dfrac{3x - 1}{x + 2}, and state the equations of the vertical and horizontal asymptotes of y=h1(x)y = h^{-1}(x).
Show worked solution →

Swap the variables. Write y=3x1x+2y = \dfrac{3x - 1}{x + 2}, then swap xx and yy: x=3y1y+2x = \dfrac{3y - 1}{y + 2}.

Clear the fraction and collect yy. Multiply both sides by (y+2)(y + 2): x(y+2)=3y1x(y + 2) = 3y - 1, so xy+2x=3y1xy + 2x = 3y - 1. Gather the yy terms on one side: xy3y=12xxy - 3y = -1 - 2x, that is y(x3)=(2x+1)y(x - 3) = -(2x + 1). Divide by (x3)(x - 3): y=(2x+1)x3=2x+13xy = \dfrac{-(2x + 1)}{x - 3} = \dfrac{2x + 1}{3 - x}.

So h1(x)=2x+13xh^{-1}(x) = \dfrac{2x + 1}{3 - x}.

Read the asymptotes. The original hh has a vertical asymptote at x=2x = -2 (zero denominator) and a horizontal asymptote at y=3y = 3 (ratio of leading coefficients). The inverse swaps these roles, so y=h1(x)y = h^{-1}(x) has a vertical asymptote at x=3x = 3 and a horizontal asymptote at y=2y = -2. This matches the rule 2x+13x\dfrac{2x + 1}{3 - x} directly: the denominator 3x3 - x is zero at x=3x = 3, and for large xx the value tends to 2xx=2\dfrac{2x}{-x} = -2.

Answer: h1(x)=2x+13xh^{-1}(x) = \dfrac{2x + 1}{3 - x}, with vertical asymptote x=3x = 3 and horizontal asymptote y=2y = -2.

core4 marksThe function f(x)=(x2)2f(x) = (x - 2)^2 is restricted to the domain x2x \ge 2. Find f1(x)f^{-1}(x), state its domain and range, and verify that f(f1(x))=xf(f^{-1}(x)) = x.
Show worked solution →
Check it is one-to-one
With x2x \ge 2 the graph is the right-hand half of the parabola with vertex (2,0)(2, 0), which is increasing, so it is one-to-one and an inverse function exists.
Swap and solve
Write y=(x2)2y = (x - 2)^2 with x2x \ge 2, then swap: x=(y2)2x = (y - 2)^2 with y2y \ge 2. Take the square root: y2=±xy - 2 = \pm\sqrt{x}, and because the restriction forces y2y \ge 2, we keep the positive root y2=xy - 2 = \sqrt{x}, so y=2+xy = 2 + \sqrt{x}. Thus f1(x)=2+xf^{-1}(x) = 2 + \sqrt{x}.
State domain and range
The restricted ff has domain x2x \ge 2 and range y0y \ge 0 (the smallest value is f(2)=0f(2) = 0). Swapping gives the inverse domain x0x \ge 0 and inverse range y2y \ge 2.
Verify by composition
f(f1(x))=((2+x)2)2=(x)2=xf(f^{-1}(x)) = \left((2 + \sqrt{x}) - 2\right)^2 = \left(\sqrt{x}\right)^2 = x, valid for x0x \ge 0.
Answer
f1(x)=2+xf^{-1}(x) = 2 + \sqrt{x}, domain x0x \ge 0, range y2y \ge 2, and f(f1(x))=xf(f^{-1}(x)) = x as required.
exam4 marksShow that the function f(x)=2x+1x2f(x) = \dfrac{2x + 1}{x - 2}, defined for x2x \ne 2, is its own inverse, that is f(f(x))=xf(f(x)) = x.
Show worked solution →
Set up the composition
A function is its own inverse when f(f(x))=xf(f(x)) = x. Compute f(f(x))f(f(x)) by substituting f(x)=2x+1x2f(x) = \dfrac{2x + 1}{x - 2} wherever xx appears in the rule:
f(f(x))=22x+1x2+12x+1x22.f(f(x)) = \frac{2 \cdot \dfrac{2x + 1}{x - 2} + 1}{\dfrac{2x + 1}{x - 2} - 2}.
Clear the inner fractions
Multiply the top and bottom of the large fraction by (x2)(x - 2). The numerator becomes 2(2x+1)+1(x2)=4x+2+x2=5x2(2x + 1) + 1 \cdot (x - 2) = 4x + 2 + x - 2 = 5x. The denominator becomes (2x+1)2(x2)=2x+12x+4=5(2x + 1) - 2(x - 2) = 2x + 1 - 2x + 4 = 5.
Simplify
So f(f(x))=5x5=xf(f(x)) = \dfrac{5x}{5} = x.
Interpret
Because f(f(x))=xf(f(x)) = x, the function ff is its own inverse; equivalently, reflecting its graph in the line y=xy = x produces the same curve. (This is the general pattern for ax+bcx+d\dfrac{ax + b}{cx + d}: it is self-inverse exactly when a+d=0a + d = 0, and here a=2a = 2, d=2d = -2, so a+d=0a + d = 0.)
Answer
f(f(x))=xf(f(x)) = x, so ff is its own inverse.
exam5 marksConsider f(x)=x2+1f(x) = x^2 + 1. (i) Explain why ff does not have an inverse function over its natural domain. (ii) The domain is restricted to x0x \le 0. Find the rule for the inverse function and state its domain. (iii) Verify that f1(f(x))=xf^{-1}(f(x)) = x for this restricted domain.
Show worked solution →
Part (i): why there is no inverse
A function has an inverse function only if it is one-to-one, that is, no horizontal line meets the graph more than once. The parabola f(x)=x2+1f(x) = x^2 + 1 is symmetric in the yy-axis, so for instance the horizontal line y=2y = 2 meets it where x2+1=2x^2 + 1 = 2, giving x2=1x^2 = 1 and x=1x = 1 or x=1x = -1: two points. The graph fails the horizontal line test, so ff is many-to-one and has no inverse function.
Part (ii): restrict and invert
With x0x \le 0 the graph is the left-hand half of the parabola, which is decreasing and therefore one-to-one. Write y=x2+1y = x^2 + 1 with x0x \le 0, then swap: x=y2+1x = y^2 + 1 with y0y \le 0. Solve: y2=x1y^2 = x - 1, so y=±x1y = \pm\sqrt{x - 1}, and because the restriction forces y0y \le 0 we take the negative root, y=x1y = -\sqrt{x - 1}. So f1(x)=x1f^{-1}(x) = -\sqrt{x - 1}. Its domain is the range of the restricted ff: the smallest value is f(0)=1f(0) = 1, so the range is y1y \ge 1 and the inverse domain is x1x \ge 1.
Part (iii): verify
For x0x \le 0, f(x)=x2+11f(x) = x^2 + 1 \ge 1, so it lies in the domain of f1f^{-1}. Then f1(f(x))=(x2+1)1=x2=xf^{-1}(f(x)) = -\sqrt{(x^2 + 1) - 1} = -\sqrt{x^2} = -|x|. Since x0x \le 0, x=x|x| = -x, so x=(x)=x-|x| = -(-x) = x. The composition returns the input.
Answer
(i) it fails the horizontal line test (e.g. y=2y = 2 cuts twice); (ii) f1(x)=x1f^{-1}(x) = -\sqrt{x - 1}, domain x1x \ge 1; (iii) f1(f(x))=x2=x=xf^{-1}(f(x)) = -\sqrt{x^2} = -|x| = x because x0x \le 0.

Related dot points