Inverse Function Calculator

Find inverses of linear functions ax+b.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Enter a and b for f(x) = ax + b to get f⁻¹(x). For f(x) = 2x + 3 the inverse is (x − 3) ÷ 2.

How to use

1
Step 1
Enter a, the slope.
2
Step 2
Enter b, the intercept.
3
Step 3
Press Calculate.

How it works

Swap x and y, then solve for y. For y = 2x + 3 that gives x = 2y + 3, so y = (x − 3) ÷ 2. The graphs of f and f⁻¹ are mirror images across the line y = x.

f(x) = ax + b  →  f⁻¹(x) = (x − b) ÷ a

Worked example

Negative slope

Input
a = −4, b = 10
Output
(x − 10) / −4
Walkthrough
Solving x = −4y + 10 gives y = (x − 10) ÷ (−4). Check with x = 1: f(1) = 6, and (6 − 10) ÷ (−4) = 1.

Limitations

  • Linear functions ax + b only.
  • a = 0 is a constant function and is not invertible.

Questions

What is the inverse of 2x + 3?
(x − 3) ÷ 2.
What is the inverse of −4x + 10?
(x − 10) ÷ −4.
Why does a = 0 fail?
A constant function gives the same output for every input, so it cannot be reversed.

Features

  • Slope-intercept form
  • Detects constants
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • What are variables, expressions, and equations?

    Khan Academy

    Language of algebra before using equation solvers.

    Watch on YouTube
  • Finding mean, median, and mode

    Khan Academy

    Descriptive stats used across statistics tools.

    Watch on YouTube