Calculator Algebra and functions
Inverse of a linear function
In one sentence
Finds f⁻¹(x) for f(x) = ax + b.
Last checked Source: uk-dfe-alevel-maths-subject-content Source: Department for Education, GCE AS and A level subject content for mathematics (topics derived; every example and value computed here), uk-dfe-alevel-maths-subject-content www.gov.uk (opens in a new tab)
Key facts
Inverse of a linear function
- Formula ref
- f⁻¹(x) = (x − b)/a
- Topic
- Algebra and functions
Inputs
- a, b: coefficients, a ≠ 0
Worked input
- Input f(x) = 4x − 7.
- f⁻¹(x) = (x + 7)/4.
- Check f⁻¹(5) = 3, and f(3) = 5.
- Take f(x) = 3x + 5, an increasing function with a positive gradient. Solving y = ax + b for x gives an inverse with gradient 1/3 and intercept −5/3, so f⁻¹(x) = (1/3)x + (−5/3). An increasing linear function has an inverse that is also increasing, and the pair of graphs is symmetric in the line y equals x, which is a quick way to sketch the inverse from the original. Check: f⁻¹(11) = 2 and f(2) = 11, so the pair of functions undo each other.
- Take f(x) = −2x + 6, a decreasing function, so the inverse also has a negative gradient. Solving y = ax + b for x gives an inverse with gradient −1/2 and intercept 3, so f⁻¹(x) = (−1/2)x + (3). A negative gradient gives an inverse with a negative gradient too, and the unusual case of a function that is its own inverse occurs when the gradient is minus one. Check: f⁻¹(0) = 3 and f(3) = 0, and the graph of the inverse is the mirror image of f in the line y = x.
- Take f(x) = x/2 − 3, a function with a fractional gradient, so the inverse gradient is a whole number. Solving y = ax + b for x gives an inverse with gradient 2 and intercept 6, so f⁻¹(x) = (2)x + (6). A fractional gradient inverts to its reciprocal, so a gentle line turns into a steep one, and checking a single point on both graphs confirms the swap of the coordinates. Check: the gradients ½ and 2 are reciprocals, which is always true for a linear function and its inverse.
How to use it
- Enter a and b.
- Check f(f⁻¹(x)) = x.
- The graphs are mirror images in y = x.
Inverse of a linear function for your study of A-level maths, with its source.
See also Distance between two points calculator, Line through two points calculator, Gradient calculator and Graph transformation tracker.
Study brief
- In mathematics, a function f maps an element x to an element y. The inverse function, denoted as f-1, represents the inverse of the original function f. When working with specific mathematical models, such as the exponential model, understanding inverse relationships is essential. For example, the function ln x serves as the inverse function of e^x. To solve equations like e^(ax + b) = p or ln(ax + b) = q, one must utilize these inverse properties. Additionally, the definition of log_a x as the inverse of a^x applies where a is positive and x is greater than or equal to 0. Other functional concepts include the composite function gf, which is defined by g(f(x)). While different processes like integration by substitution and integration by parts can be viewed as inverse processes to the chain and product rules, the core concept of an inverse involves reversing the mapping of a function.
Practise for free
Test yourself with exam-style questions and see why each answer is right or wrong.
More from Algebra and functions
-
Completing the square calculator
Writes ax² + bx + c as a(x + p)² + q and gives the turning point.
-
Cubic factoriser
Tests integer roots with the factor theorem and factorises a cubic.
-
Discriminant calculator
Evaluates b² − 4ac and classifies the quadratic as having two real roots, one repeated root or none.
-
Graph transformation tracker
Applies a stretch, translation and reflection to a point of a curve.
-
Line and circle intersection
Finds where y = mx + c meets x² + y² = r².
-
Modulus equation solver
Solves |ax + b| = c for x.
-
Partial fractions calculator
Splits (px + q)/((x − a)(x − b)) into A/(x − a) + B/(x − b).
-
Polynomial long division calculator
Divides a polynomial by a linear factor and returns quotient and remainder.