College Algebra • Functions & Graphs

Finding and Verifying Inverse Functions Algebraically

Master the algebraic techniques for reversing functions and confirming their validity through composition.

An algebraic variable with a radical and plotted line.
Inside this lesson 10 sections 5 questions 9 figures

SECTION 1

Historical Context & Motivation

The concept of an inverse function is deeply woven into the history of mathematics, arising naturally whenever mathematicians sought to "undo" a known operation. Long before the formal language of functions existed, ancient scholars recognized that certain processes could be reversed—addition undone by subtraction, squaring undone by root extraction. The desire to formalize these reversals drove centuries of mathematical development, ultimately culminating in the rigorous theory of inverse functions that underpins modern algebra, calculus, and applied science.

Understanding how to find and verify inverse functions algebraically answers a fundamental question: given a rule that maps inputs to outputs, can we construct a rule that reliably recovers the original input from any output? This question is not merely academic. Cryptographic algorithms depend on the difficulty of inverting certain functions, sensor calibration requires inverting measurement models, and solving equations—from the simplest linear case to complex transcendental equations—is, at its core, the act of applying an inverse.

~300 BCE • Euclid & Geometric Reversals

Euclid's Elements demonstrated geometric constructions that implicitly relied on reversible operations, such as constructing a square of given area (a geometric "square root"). These problems planted early seeds for the idea of inverse operations.

1694 • Leibniz Introduces Function Notation

Gottfried Wilhelm Leibniz coined the term "function" to describe a quantity varying according to a rule. His notation and conceptual framework made it possible to discuss the reversal of a function as a mathematical object in its own right, rather than as a loose procedural idea.

1748 • Euler Formalizes Inverse Trigonometric Functions

Leonhard Euler, in Introductio in Analysin Infinitorum, systematically studied inverse trigonometric and logarithmic functions, establishing them as standard objects of analysis and articulating the requirement that a function must be one-to-one on a given interval to possess an inverse.

1837 • Dirichlet's Modern Function Definition

Peter Gustav Lejeune Dirichlet proposed the modern definition of a function as an arbitrary correspondence between domains and ranges. This abstraction clarified when inverses exist: a function must be a bijection (one-to-one and onto) on its specified domain and codomain to guarantee an inverse function.

20th C. • Set-Theoretic & Computational Applications

With the rise of set theory and computer science, inverse functions became central to cryptography (e.g., RSA encryption relies on the difficulty of inverting modular exponentiation), data transformations, and numerical analysis. Verifying inverses via composition became a standard algebraic proof technique taught in every algebra curriculum.

The central question this lesson addresses is both elegant and practical: given a function f, how do we algebraically construct its inverse f−1, and how do we rigorously verify that our result is correct? The answer lies in a systematic process of swapping variables, solving, and confirming through function composition.

SECTION 2

Core Principles & Definitions

Before diving into the mechanics of finding inverses, it is essential to establish the foundational principles that govern when an inverse exists and what it means for two functions to be inverses of each other. These principles serve as both the theoretical justification for our algebraic procedures and the criteria by which we judge whether a proposed inverse is valid.

1

One-to-One (Injective) Functions

A function f is one-to-one if distinct inputs always produce distinct outputs: whenever a ≠ b, then f(a) ≠ f(b). Equivalently, if f(a) = f(b), then a = b. Only one-to-one functions possess inverses over their entire domain.
2

The Horizontal Line Test

A graphical criterion for injectivity: a function is one-to-one if and only if every horizontal line intersects its graph at most once. This is the visual counterpart of the algebraic definition above and provides a quick check before attempting to find an inverse.
3

Domain Restriction

When a function is not one-to-one on its natural domain (e.g., f(x) = x²), we can restrict its domain to an interval on which it is one-to-one, thereby enabling an inverse. The choice of restriction affects the resulting inverse function.
4

Inverse Function Definition

If f is one-to-one with domain A and range B, then its inverse f−1 is the unique function with domain B and range A such that f⁻¹(f(x)) = x for all x in A, and f(f⁻¹(y)) = y for all y in B.
5

Verification by Composition

Two functions f and g are inverses of each other if and only if both compositions yield the identity: f(g(x)) = x and g(f(x)) = x. Checking only one composition is insufficient.
✦

KEY TAKEAWAY

Think of a function and its inverse as a pair of encoding and decoding machines. If f encodes a message, then f−1 decodes it, perfectly recovering the original. For this to work, the encoding must be unambiguous—each message must produce a unique code (one-to-one). Verification by composition is like encoding a message and then decoding it, confirming you get the original back, and vice versa.
⚠

Notation Warning

The notation f−1(x) denotes the inverse function, not the reciprocal 1/f(x). In this context, the superscript −1 is a label, not an exponent. The reciprocal would be written as [f(x)]⁻¹ or 1/f(x) to avoid ambiguity.

SECTION 3

Visual Explanation: The Symmetry of Inverses

One of the most illuminating properties of inverse functions is their graphical relationship: the graph of f−1 is the reflection of the graph of f across the line y = x. This symmetry arises because if the point (a, b) lies on the graph of f, then the point (b, a) lies on the graph of f−1. The following diagram illustrates this relationship with a concrete example.

Graph of f(x), f⁻¹(x), and the Line y = xxy123456781234567y = xf(x) = 2x − 1f⁻¹(x) = (x+1)/2(3, 5)(5, 3)
The violet curve represents f(x) = 2x − 1, while the cyan curve represents its inverse f⁻¹(x) = (x + 1)/2. Notice how the point (3, 5) on f maps to (5, 3) on f⁻¹, demonstrating the reflection across the dashed amber line y = x.

The diagram above makes a crucial algebraic fact geometrically visible. If you pick any point on the violet curve—say (3, 5)—and swap the coordinates to get (5, 3), the resulting point lies on the cyan curve. This coordinate swap is precisely the algebraic maneuver at the heart of finding an inverse: we replace y with x and x with y, then solve for the new y. The line y = x serves as the mirror axis, and the entire graph of f−1 is determined by this reflection.

SECTION 4

Mathematical Framework

We now formalize the algebraic procedure for finding an inverse function and state the composition-based verification conditions. These form the core mathematical toolkit for this topic.

The Algebraic Procedure

  1. Step 1: Write the function as y = f(x).
  2. Step 2: Interchange x and y (swap the roles of input and output).
  3. Step 3: Solve the resulting equation for y. The expression you obtain is f⁻¹(x).
  4. Step 4: State the domain and range of f⁻¹, which are the range and domain of f, respectively.
  5. Step 5: Verify by showing both compositions equal x.

INVERSE FUNCTION DEFINITION

f−1(y)=x⟺f(x)=yf⁻¹(y) = x ⟺ f(x) = y

This biconditional states that f−1 maps an output y back to its unique input x. The swap of x and y in the algebraic procedure is a direct implementation of this equivalence.

COMPOSITION VERIFICATION — CONDITION 1

f(f−1(x))=xforallxinthedomainoff−1f(f⁻¹(x)) = x for all x in the domain of f⁻¹

Applying f after f⁻¹ returns the identity. This confirms that f⁻¹ correctly feeds inputs to f that recover the original value.

COMPOSITION VERIFICATION — CONDITION 2

f−1(f(x))=xforallxinthedomainofff⁻¹(f(x)) = x for all x in the domain of f

Applying f⁻¹ after f also returns the identity. Both conditions must hold; verifying only one can produce false positives when domains differ.

DOMAIN–RANGE EXCHANGE

Domain(f−1)=Range(f)andRange(f−1)=Domain(f)Domain(f⁻¹) = Range(f) and Range(f⁻¹) = Domain(f)

The domain and range swap between a function and its inverse. This is critical when dealing with restricted domains, as the inverse inherits its domain from the original function's range.

💡

Why Both Compositions?

Consider f(x) = x² and g(x) = √x on the reals. Then f(g(x)) = f(√x) = (√x)² = x for x ≥ 0, which looks like an identity. But g(f(x)) = g(x²) = √(x²) = |x|, which equals x only when x ≥ 0. Without checking both directions, you might incorrectly conclude that g is the inverse of f on all of ℝ. Both compositions must reduce to x on the appropriate domains.

SECTION 5

Detailed Techniques & Common Function Types

Different algebraic forms require different solving strategies when the variables are swapped. The table below catalogs the most common function types encountered in college algebra, along with the key algebraic move required to isolate y after interchanging variables. Recognizing the function type before beginning the algebra saves considerable time and reduces errors.

Function TypeExample f(x)Key Solving MoveInverse f⁻¹(x)
Linear3x + 7Subtract constant, divide by coefficient(x − 7)/3
Rational (simple)(2x + 1)/(x − 3)Cross-multiply, collect y-terms, factor out y(3x + 1)/(x − 2)
Quadratic (restricted)x², x ≥ 0Take ± square root, choose branch matching domain√x
Radical∛(x − 4)Raise both sides to the reciprocal powerx³ + 4
Exponential2ˣApply logarithm to both sideslog₂(x)
Logarithmicln(x − 1)Exponentiate both sideseˣ + 1

Common function types and their inverse-finding strategies

Algebraic Procedure Flowchart: Finding f⁻¹(x)Step 1Replace f(x) with yStep 2Swap x and yStep 3Solve for y algebraicallyStep 4Replace y with f⁻¹(x); state domainStep 5 — VerifyCheck f(f⁻¹(x)) = x AND f⁻¹(f(x)) = xy = 2x − 1 → x = 2y − 1x = 2y − 1y = (x + 1)/2f⁻¹(x) = (x + 1)/2f(f⁻¹(x)) = 2·(x+1)/2 − 1 = x ✓
The five-step algebraic procedure for finding f⁻¹(x), illustrated with the running example f(x) = 2x − 1. Each colored box corresponds to a step, with the right column showing the concrete algebra at that stage.

When dealing with rational functions, the swap-and-solve step is more involved because the variable y appears in both the numerator and denominator. The standard technique is to cross-multiply to clear the fraction, collect all terms containing y on one side, factor y out, and then divide. Similarly, for restricted quadratics, you must choose the correct branch of the square root (positive or negative) based on the domain restriction of the original function. Failing to honor the domain restriction is one of the most common errors students make.

SECTION 6

Worked Example: A Rational Function

Let us work through a complete example with a rational function, which requires several algebraic maneuvers and careful attention to domain considerations. We will find and verify the inverse of f(x) = (3x + 2)/(x − 1), where x ≠ 1.

Finding f⁻¹(x) for a Rational Function

  1. 1

    Step 1 — Write as y = f(x)

    Begin by replacing the function notation with y: y = (3x + 2)/(x − 1)
    y = (3x + 2)/(x − 1)
  2. 2

    Step 2 — Swap x and y

    Interchange the variables x and y throughout the equation: x = (3y + 2)/(y − 1)
    x = (3y + 2)/(y − 1)
  3. 3

    Step 3 — Solve for y: Cross-multiply

    Multiply both sides by (y − 1) to eliminate the denominator: x(y − 1) = 3y + 2 Distribute x on the left side: xy − x = 3y + 2
    xy − x = 3y + 2
  4. 4

    Step 4 — Collect y-terms and factor

    Move all terms containing y to one side and all other terms to the opposite side: xy − 3y = x + 2 Factor y from the left side: y(x − 3) = x + 2 Divide both sides by (x − 3): y = (x + 2)/(x − 3)
    f⁻¹(x) = (x + 2)/(x − 3), where x ≠ 3
  5. 5

    Step 5 — State the domain

    The domain of f⁻¹ equals the range of f. Since f(x) = (3x + 2)/(x − 1) has a horizontal asymptote at y = 3 (by comparing leading coefficients), the range of f is all real numbers except 3. Therefore the domain of f⁻¹ is (−∞, 3) ∪ (3, ∞), consistent with x ≠ 3 in our formula.
    Domain of f⁻¹: (−∞, 3) ∪ (3, ∞)
  6. 6

    Step 6 — Verify: f(f⁻¹(x)) = x

    Substitute f⁻¹(x) into f: f(f⁻¹(x)) = f((x+2)/(x−3)) = [3·(x+2)/(x−3) + 2] / [(x+2)/(x−3) − 1] Multiply numerator and denominator by (x − 3): = [3(x+2) + 2(x−3)] / [(x+2) − (x−3)] = [3x + 6 + 2x − 6] / [x + 2 − x + 3] = 5x / 5 = x ✓
    f(f⁻¹(x)) = x ✓
  7. 7

    Step 7 — Verify: f⁻¹(f(x)) = x

    Substitute f(x) into f⁻¹: f⁻¹(f(x)) = f⁻¹((3x+2)/(x−1)) = [(3x+2)/(x−1) + 2] / [(3x+2)/(x−1) − 3] Multiply numerator and denominator by (x − 1): = [(3x+2) + 2(x−1)] / [(3x+2) − 3(x−1)] = [3x + 2 + 2x − 2] / [3x + 2 − 3x + 3] = 5x / 5 = x ✓
    f⁻¹(f(x)) = x ✓
ℹ

Observation

Notice that in both verification steps, the numerator simplified to 5x and the denominator to 5. This clean cancellation is characteristic of correctly computed inverses of rational functions of the form (ax + b)/(cx + d). If you end up with residual terms that do not cancel, recheck your algebra in the solving stage.

SECTION 7

Common Pitfalls & Strategic Tips

Even with a clear procedural framework, students frequently encounter pitfalls when finding and verifying inverses. The following table contrasts common errors with the correct approaches, providing a quick-reference diagnostic tool.

Common PitfallWhy It's WrongCorrect Approach
Checking only one compositionf(g(x)) = x does not guarantee g(f(x)) = x when domains differ (e.g., f(x) = x², g(x) = √x on ℝ)Always verify both f(f⁻¹(x)) = x and f⁻¹(f(x)) = x
Forgetting domain restrictionsWithout restricting domain, non-injective functions yield multi-valued "inverses" that are not functionsState the restricted domain before finding the inverse; choose the correct root/branch accordingly
Confusing f⁻¹(x) with 1/f(x)f⁻¹ denotes the inverse function, not the reciprocal. E.g., sin⁻¹(x) ≠ 1/sin(x) = csc(x)Use clear notation; write [f(x)]⁻¹ or 1/f(x) for the reciprocal
Algebraic errors during cross-multiplicationDistributing incorrectly or losing signs when moving terms across the equationVerify each algebraic step; use the composition check as a built-in error detector
Ignoring the domain of the inverseThe formula for f⁻¹(x) may be defined at values outside the actual domain (range of f)Explicitly compute Range(f) and declare it as Domain(f⁻¹)

Common errors when finding and verifying inverse functions

✦

KEY TAKEAWAY

The composition verification step is not merely a formality—it is an integral part of the problem. Think of it as a checksum in data transmission: even if your encoding process (finding the inverse) appears correct, the checksum (composition check) catches hidden errors that might otherwise go undetected. In professional mathematics and engineering, presenting an unverified inverse would be considered incomplete work.

SECTION 8

Connections to Advanced Topics

The algebraic techniques for finding and verifying inverses that you have learned in this lesson form the foundation for several advanced mathematical topics. Understanding these connections will motivate why this material is revisited and extended in subsequent courses.

College Algebra ConceptAdvanced ExtensionWhere You'll Encounter It
Algebraic inverse via swap-and-solveImplicit differentiation of inverse functions; the Inverse Function TheoremCalculus I & multivariable calculus
One-to-one (injective) propertyBijections between sets; group isomorphisms; invertible linear transformationsLinear Algebra, Abstract Algebra
Composition verification f ∘ f⁻¹ = idIdentity morphisms in category theory; inverse operators in functional analysisAdvanced mathematics, theoretical CS
Domain restriction to ensure injectivityBranch cuts for complex logarithms and inverse trig; principal value definitionsComplex Analysis, Calculus II
Graphical reflection across y = xDerivative of the inverse: (f⁻¹)'(b) = 1/f'(a) where f(a) = b; geometric interpretation via tangent line reflectionCalculus I

How inverse function concepts extend into advanced coursework

Perhaps the most immediately relevant extension arises in Calculus I, where the Inverse Function Theorem guarantees that if f is continuously differentiable and f'(a) ≠ 0, then f has a local inverse near a, and the derivative of that inverse is given by (f⁻¹)'(b) = 1/f'(a) where b = f(a). This result transforms the algebraic problem of finding an explicit inverse into a differentiation problem, which is often more tractable for complicated functions. The algebraic verification skills you are building now—particularly comfort with composition—will make the proof and applications of this theorem far more accessible.

ℹ

Looking Ahead

In Linear Algebra, you will encounter invertible matrices: an n × n matrix A has an inverse A⁻¹ if and only if A·A⁻¹ = A⁻¹·A = I (the identity matrix). The structural parallel to f(f⁻¹(x)) = f⁻¹(f(x)) = x is exact. The concepts of injectivity, surjectivity, and composition verification carry over directly, but in a higher-dimensional setting.

SECTION 9

Practice Problems

The following five problems are arranged in order of increasing difficulty. For each, find the inverse function algebraically and verify your answer using both composition conditions.

Question 1: CONCEPTUAL

Explain why the function g(x) = x² − 4x + 7 does not have an inverse on its natural domain (−∞, ∞). Then identify a suitable domain restriction that would make g one-to-one, and briefly justify your choice.
Show answer
The function g(x) = x² − 4x + 7 = (x − 2)² + 3 is a parabola opening upward with vertex at (2, 3). Since it is symmetric about x = 2, every output value greater than 3 corresponds to two distinct inputs (e.g., g(1) = g(3) = 4), so g fails the horizontal line test and is not one-to-one on (−∞, ∞). To make g one-to-one, restrict the domain to either [2, ∞) (the right half of the parabola, where g is increasing) or (−∞, 2] (the left half, where g is decreasing). Either restriction produces a monotonic function, guaranteeing injectivity.

Question 2: BASIC CALCULATION

Find the inverse of f(x) = 5x − 8 and verify using both composition conditions.
Show answer
Set y = 5x − 8, then swap: x = 5y − 8. Solving for y gives y = (x + 8)/5, so f⁻¹(x) = (x + 8)/5. Verification: f(f⁻¹(x)) = 5·(x + 8)/5 − 8 = (x + 8) − 8 = x ✓. Also, f⁻¹(f(x)) = (5x − 8 + 8)/5 = 5x/5 = x ✓. Both compositions yield the identity, confirming the inverse. The domain and range of both f and f⁻¹ are all real numbers, so no restrictions are needed.

Question 3: INTERMEDIATE

Find the inverse of h(x) = ∛(2x − 5) + 1 and verify both composition conditions. State the domain and range of h⁻¹.
Show answer
Write y = ∛(2x − 5) + 1. Swap: x = ∛(2y − 5) + 1. Isolate the radical: x − 1 = ∛(2y − 5). Cube both sides: (x − 1)³ = 2y − 5. Solve for y: y = [(x − 1)³ + 5]/2. Therefore h⁻¹(x) = [(x − 1)³ + 5]/2. Since the cube root function has domain and range all reals, h has domain (−∞, ∞) and range (−∞, ∞), so h⁻¹ also has domain and range (−∞, ∞). Verification: h(h⁻¹(x)) = ∛(2·[(x−1)³+5]/2 − 5) + 1 = ∛((x−1)³ + 5 − 5) + 1 = ∛((x−1)³) + 1 = (x−1) + 1 = x ✓. Similarly, h⁻¹(h(x)) = [(∛(2x−5)+1−1)³ + 5]/2 = [(∛(2x−5))³ + 5]/2 = [(2x−5) + 5]/2 = 2x/2 = x ✓.

Question 4: APPLIED

A temperature conversion is given by F(C) = (9/5)C + 32, which converts Celsius to Fahrenheit. Find F⁻¹(x) and interpret its meaning in context. Use the inverse to convert 98.6°F to Celsius. Verify the inverse by composition.
Show answer
Write y = (9/5)x + 32. Swap: x = (9/5)y + 32. Solve: x − 32 = (9/5)y, so y = (5/9)(x − 32). Thus F⁻¹(x) = (5/9)(x − 32). In context, F⁻¹ converts Fahrenheit temperatures back to Celsius. Evaluating: F⁻¹(98.6) = (5/9)(98.6 − 32) = (5/9)(66.6) = 37°C, which is the standard human body temperature. Verification: F(F⁻¹(x)) = (9/5)·(5/9)(x − 32) + 32 = (x − 32) + 32 = x ✓. Also, F⁻¹(F(x)) = (5/9)((9/5)x + 32 − 32) = (5/9)(9/5)x = x ✓. This example illustrates that inverse functions have direct real-world significance: any unit conversion formula is inherently paired with its inverse.

Question 5: CRITICAL THINKING

Let f(x) = (ax + b)/(cx + d) where ad − bc ≠ 0 and c ≠ 0. Derive a general formula for f⁻¹(x) in terms of a, b, c, d. Show that f⁻¹ has the same algebraic form as f (a so-called Möbius transformation). Under what condition is f its own inverse (i.e., f = f⁻¹)?
Show answer
Set y = (ax + b)/(cx + d), swap to get x = (ay + b)/(cy + d), then cross-multiply: x(cy + d) = ay + b, giving cxy + dx = ay + b. Collect y-terms: cxy − ay = b − dx, so y(cx − a) = b − dx, yielding y = (b − dx)/(cx − a) = (−dx + b)/(cx − a). Equivalently, f⁻¹(x) = (−dx + b)/(cx − a). This has the form (αx + β)/(γx + δ) with α = −d, β = b, γ = c, δ = −a, confirming f⁻¹ is also a Möbius transformation. The condition ad − bc ≠ 0 ensures the function is non-degenerate (not a constant). For f to be its own inverse, we need f⁻¹(x) = f(x), which requires (−dx + b)/(cx − a) = (ax + b)/(cx + d). Comparing numerators and denominators (or cross-multiplying), this holds when a = −d, i.e., a + d = 0. Thus a Möbius transformation is an involution precisely when the trace a + d equals zero.

SUMMARY

Lesson Summary

Summary

An inverse function f⁻¹ reverses the input–output mapping of a function f, and it exists if and only if f is one-to-one (injective) on its domain. The algebraic procedure for finding f⁻¹ consists of replacing f(x) with y, swapping x and y, solving for y, and then renaming the result as f⁻¹(x). Crucially, the domain of f⁻¹ equals the range of f, and vice versa, so domain considerations must accompany every inverse computation.

Verification requires demonstrating that both compositions f(f⁻¹(x)) = x and f⁻¹(f(x)) = x hold on the appropriate domains; checking only one direction is insufficient. Graphically, f and f⁻¹ are reflections across the line y = x. Functions that are not naturally one-to-one (such as quadratics) require domain restriction before an inverse can be defined. These techniques extend directly into calculus (the Inverse Function Theorem), linear algebra (matrix inversion), and beyond, making mastery of the algebraic process an essential skill for advanced mathematical study.

Varsity Tutors • College Algebra • Finding and Verifying Inverse Functions Algebraically