Finding the Inverse of a Function

April 12, 2026

Problem

Find the inverse of f(x) = (2x+3)/(x−1). Swap x and y, solve for y.

Explanation

How to find the inverse of a function

The inverse function f1(x)f^{-1}(x) "undoes" f(x)f(x). If ff takes input aa and gives output bb, then f1f^{-1} takes input bb and returns aa. The process: swap xx and yy, then solve for yy.

Step-by-step solution: Find the inverse of f(x)=2x+3x1f(x) = \dfrac{2x + 3}{x - 1}

Step 1 — Replace f(x)f(x) with yy:

y=2x+3x1y = \frac{2x + 3}{x - 1}

Step 2 — Swap xx and yy (this is the key step — every input becomes an output and vice versa):

x=2y+3y1x = \frac{2y + 3}{y - 1}

Step 3 — Solve for yy. Multiply both sides by (y1)(y - 1):

x(y1)=2y+3x(y - 1) = 2y + 3

Expand:

xyx=2y+3xy - x = 2y + 3

Collect all yy-terms on one side:

xy2y=x+3xy - 2y = x + 3

Factor out yy:

y(x2)=x+3y(x - 2) = x + 3

Divide:

y=x+3x2y = \frac{x + 3}{x - 2}

Step 4 — Write the answer: f1(x)=x+3x2f^{-1}(x) = \dfrac{x + 3}{x - 2}

Step 5 — Verify by checking f(f1(x))=xf(f^{-1}(x)) = x:

f(x+3x2)=2x+3x2+3x+3x21=2x+6+3x6x2x+3x+2x2=5x5=xf\left(\frac{x+3}{x-2}\right) = \frac{2 \cdot \frac{x+3}{x-2} + 3}{\frac{x+3}{x-2} - 1} = \frac{\frac{2x+6+3x-6}{x-2}}{\frac{x+3-x+2}{x-2}} = \frac{5x}{5} = x \checkmark

Graphical check

The graph of f1f^{-1} is the reflection of ff across the line y=xy = x. Every point (a,b)(a, b) on ff corresponds to (b,a)(b, a) on f1f^{-1}.

Common mistakes

  • Forgetting to swap xx and yy. If you just solve y=2x+3x1y = \frac{2x+3}{x-1} for xx, you get xx as a function of yy — but then you need to relabel yxy \to x for the inverse.
  • Domain restrictions. ff has domain x1x \neq 1; f1f^{-1} has domain x2x \neq 2. The domain of f1f^{-1} equals the range of ff.

Try it in the visualization

Both f(x)f(x) and f1(x)f^{-1}(x) are graphed with the y=xy = x mirror line. Point pairs (a,b)(b,a)(a, b) \leftrightarrow (b, a) are connected by dashed lines. Drag the test point to verify f(f1(x))=xf(f^{-1}(x)) = x.

Interactive Visualization

Parameters

3.00
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
Finding the Inverse of a Function | MathSpin