Life Calculator
MAKE THE FORMULA CLEAR

Inverse of a linear or linear-fractional function

Enter integer coefficients of (ax + b)/(cx + d) to find the inverse and excluded values.

Start with your own numbers

Editable example

An example is filled in. Replace it with your own data to calculate.

Write the function as (ax + b)/(cx + d), then enter the integer coefficients.

Loading calculator…

Enter the integer multiplying x in the numerator; use zero if absent.
Enter the numerator constant.
Use zero for a linear function; otherwise enter the denominator x coefficient.
Enter the denominator constant; a linear function may use one.

Results update when inputs are complete. A plan is kept only when you save it. Inputs and results are not uploaded.

Saved plans →

Saved in this browser. Before changing devices, export a backup from My tools.

Example result

Inverse function f⁻¹(x)

(x − 3) / (−x + 2)

The result shows the inverse and the excluded input of each function.

Original function excluded x-1
Inverse function excluded x2

Worked steps

  1. Set y = (ax + b)/(cx + d), then swap x and y.
  2. Rearrange the xy terms and solve for y to obtain (dx − b)/(a − cx).
  3. The inverse domain is the original range; retain values excluded by a zero denominator.

Only f(x) = (ax + b)/(cx + d) with integer coefficients from −1,000,000 to 1,000,000 is supported. Use c = 0 and d = 1 for a linear function. The denominator cannot be identically zero, and ad − bc must be nonzero for a one-to-one inverse. For c ≠ 0 the original excludes x = −d/c and the inverse excludes x = a/c; fractions are reduced. The inverse swaps inputs and outputs; it is not 1/f(x). Quadratic, radical, exponential and other arbitrary functions are outside scope; assess custom restricted domains separately.

Method and scope

Only (ax + b)/(cx + d) with bounded integer coefficients is supported. The denominator cannot be identically zero and ad − bc must be nonzero.

For c ≠ 0, the original excludes x = −d/c and the inverse excludes x = a/c. An inverse swaps inputs and outputs; it is not 1/f(x).

References:OpenStax: inverse functions and domains、OpenStax: inverse rational functions

Purpose

Find the inverse formula of a linear or linear-fractional function and its excluded values.

Inputs

Write the function as (ax + b)/(cx + d) and enter the four integer coefficients.

Formula

Swap x and y and solve for y to obtain (dx − b)/(a − cx), provided ad − bc is nonzero.

Example

For (2x + 3)/(x + 1), the inverse is (x − 3)/(2 − x); the original excludes −1 and the inverse excludes 2.

Reading the result

The original and inverse exclusion values apply to their respective input domains.

Limits

Constants do not have an inverse on their original domain. Quadratic, radical and arbitrary functions are not supported.

Keep it handy for next time

Add Inverse of a linear or linear-fractional function to your home screen

This icon opens this tool. Confirm installation in your browser.

  1. iPhone: Open in Safari, tap Share → Add to Home Screen, then confirm.
  2. Android: Open in Chrome and choose Install app or Add to Home screen from the menu.
  3. In an in-app browser such as LINE or Facebook, use its menu to open the page in Safari or Chrome first.

Browser options vary. A shortcut does not provide cross-device synchronization, and an installed app may have separate storage. Export a backup from My tools first. The first load requires a connection.

Checking offline data.