Worked Example · Functions · Paper 2 · 4 marks

Inverse of a Rational Function

Rig, founder of IGCSE Add Math Malaysia

Written by Rig, our founder

8 years teaching IGCSE & SPM maths · Updated 16 August 2026

Inverting a rational function needs one extra move beyond the usual swap-and-rearrange: after clearing the fraction, xx appears in two places, so you must collect the xx-terms and factor before you can isolate it.

The function ff is defined by f(x)=2x+1x3f(x) = \dfrac{2x + 1}{x - 3} for x3x \neq 3. Find f1(x)f^{-1}(x). [4]

The working

Step 1, set y=f(x)y = f(x) and clear the fraction: y=2x+1x3    y(x3)=2x+1(M1)y = \frac{2x + 1}{x - 3} \;\Rightarrow\; y(x - 3) = 2x + 1 \quad \text{(M1)}

Step 2, expand and gather xx-terms on one side: yx3y=2x+1    yx2x=3y+1(M1)yx - 3y = 2x + 1 \;\Rightarrow\; yx - 2x = 3y + 1 \quad \text{(M1)}

Step 3, factor out xx and divide: x(y2)=3y+1    x=3y+1y2(A1)x(y - 2) = 3y + 1 \;\Rightarrow\; x = \frac{3y + 1}{y - 2} \quad \text{(A1)}

Step 4, rename (yxy \to x): f1(x)=3x+1x2(A1)f^{-1}(x) = \frac{3x + 1}{x - 2} \quad \text{(A1)}

Where the marks are won and lost

  • Collect all xx-terms on one side (yx2xyx - 2x) and everything else on the other (3y+13y + 1). This is the step that makes isolating xx possible.
  • Factor out xx: x(y2)x(y - 2). Without factoring, you can’t divide to isolate it.
  • Rename at the end, leaving the answer in terms of yy is incomplete.

Common mistakes

  • Failing to gather the xx-terms, so xx can’t be isolated.
  • Sign errors moving 2x2x and 3y3y across.
  • Forgetting to rename yxy \to x for the final inverse.

Full method: Inverse Functions notes. See also Self-Inverse Function. Topic home: Functions pillar.

Common questions

How do I make x the subject of a rational function?
Multiply both sides by the denominator to clear the fraction, expand, then gather every term containing x on one side and everything else on the other. Factor out x, and divide. The collect-and-factor step is the key: x appears in two places after expanding, so you can't isolate it until you've grouped its terms and factored it out. This is the standard method for inverting any rational function.

Keep going

See the teaching work on your own child. Then decide.

Every student starts with a 1-hour trial class taught by the vetted tutor your child would actually have. Real teaching, a diagnostic on real exam questions, and a straight answer on the gap to target. One hour at your tutor's rate (RM80–90/hr), no package and no deposit, and you decide afterwards whether to book a weekly slot. Online anywhere in Malaysia.