Inverse Function
Find the inverse of any function numerically. Solve f(x) = y for x using our free online inverse function calculator with step-by-step numerical evaluation and verification.
About This Calculator
This Inverse Function Calculator finds the inverse f⁻¹(y) of a given function f(x) numerically. It solves the equation f(x) = y for x using the bisection method, a robust numerical root-finding algorithm. Enter your function expression and target y value to compute the corresponding x and verify the result with f(f⁻¹(y)).
The calculator searches for the inverse within the interval [-100, 100] using the bisection method. This algorithm works by repeatedly halving the search interval: it evaluates f at the midpoint, compares it with the target y, and narrows the interval to the half where the solution lies. With a convergence tolerance of 1e-8 and up to 200 iterations, the result is accurate to at least 6 decimal places for well-behaved monotonic functions.
The calculator works best for monotonic (strictly increasing or decreasing) functions on the search interval. After finding the inverse, it automatically computes f(f⁻¹(y)) and displays this verification value — if it closely matches the original target y, the inverse has been found correctly. This self-verification makes the numerical approach reliable even for complex functions without simple algebraic inverses.
Applications: Inverse functions are fundamental in calculus (derivatives of inverses), physics (inverse square law, inverse trigonometric functions in mechanics), cryptography (modular inverses in RSA), and engineering (inverse Laplace transforms, inverse kinematics in robotics).
India (IN): Inverse functions are part of CBSE Class 12 mathematics. Students learn about invertible functions, binary operations, and the concept that f⁻¹ exists only when f is bijective. JEE Advanced frequently tests inverse trigonometric functions and functional equations.
United States (US): Inverse functions are covered in Algebra 2 and Precalculus. AP Calculus AB/BC covers inverse function derivatives using the formula (f⁻¹)'(y) = 1/f'(f⁻¹(y)). Students learn that exponential and logarithmic functions are inverses.
United Kingdom (UK): A-Level Mathematics covers inverse functions in Pure Mathematics. Students learn to find inverses algebraically and graphically, understand domain/range restrictions for invertibility, and work with inverse trigonometric functions.
Frequently Asked Questions
What is an inverse function?
An inverse function f⁻¹(y) reverses the operation of f(x). If f(x) = y, then f⁻¹(y) = x. In other words, the inverse function undoes whatever f does. For f⁻¹ to exist, f must be one-to-one (each y corresponds to exactly one x).
How does the calculator find the inverse?
The calculator uses the bisection method, a reliable numerical algorithm. It searches for x such that f(x) = y within the interval [-100, 100]. It evaluates f at the midpoint, narrows the interval based on whether f(mid) is above or below the target y, and repeats until it converges to a solution within 1e-8 tolerance.
What functions can I use as input?
You can use +, -, *, /, ^ (exponentiation), sin(), cos(), tan(), asin(), acos(), atan(), sqrt(), abs(), log()/ln(), exp(), and the constants pi and e. For example, 'x^3 + 1' or '2*x + 3' are valid inputs. The function must be one-to-one on the search interval for the bisection method to work.
What is the horizontal line test for inverses?
A function has an inverse (is one-to-one) if and only if every horizontal line intersects its graph at most once. Functions like f(x) = x^2 fail this test (both x=2 and x=-2 give y=4), so they don't have a true inverse without restricting the domain.
How do you check if the inverse is correct?
A correct inverse satisfies f(f⁻¹(y)) = y and f⁻¹(f(x)) = x. The calculator displays f(f⁻¹(y)) alongside the inverse value so you can verify the result. If they match closely (within tolerance), the inverse has been found correctly.
Why might the calculator fail to find an inverse?
The bisection method may fail if the function is not monotonic on [-100, 100] (e.g., sin(x) oscillates), if the target y is not in the range of f, or if the function is not defined at intermediate points. Try restricting the function domain by choosing values closer to where f changes monotonically.
What is the difference between finding inverses algebraically and numerically?
Finding an inverse algebraically involves swapping x and y and solving for y, which works for simple functions like f(x) = 2x + 3. However, many functions (like f(x) = x⁵ + x³ + 1) have no simple algebraic inverse. The numerical bisection method used here finds approximate solutions for any monotonic function automatically, handling cases where algebraic methods are impossible.
How can I make a non-invertible function invertible?
A function that fails the horizontal line test (like f(x) = x²) can be made invertible by restricting its domain. For example, restricting x² to x ≥ 0 gives f(x) = x² with inverse f⁻¹(y) = √y, while restricting to x ≤ 0 gives f⁻¹(y) = -√y. Our calculator will find an inverse on the monotonic portions of such functions if the target y lies within that range.