Example 1: Linear inverse
Let:
Write \(y=2x+3\), swap \(x\) and \(y\), and solve:
So:
Check by composition:
and
Both compositions return \(x\), so the functions undo each other.
Find inverse formulas, check candidate inverses, and review composition results in a compact responsive workspace.
Results are calculated automatically as you enter data.
A branch is required when the unrestricted function is not one-to-one.
“Verified” is reserved for symbolic equivalence. Numerical agreement without a proof is reported as inconclusive.
▼ See explanations and tips below ▼
An inverse function reverses what another function does. If a function \(f\) takes an input \(x\) and produces an output \(y\), then its inverse takes that output \(y\) and returns the original input \(x\).
The notation \(f^{-1}\) means “the inverse of \(f\).” It does not mean \(\frac{1}{f(x)}\). That distinction matters because inverse functions undo inputs and outputs, while reciprocals divide \(1\) by a value.
For an inverse to be a function, each output of the original function must come from exactly one input. This property is called being one-to-one. If two different inputs produce the same output, then reversing the function would force one input value to have two possible outputs, which is not allowed for a function.
Inverse functions help answer “what input caused this output?” questions. That makes them useful in algebra, graphing, modeling, unit conversion, and many applied problems.
For example, a function might convert hours traveled into distance. Its inverse would convert distance back into hours traveled. A function might convert Celsius to Fahrenheit. Its inverse converts Fahrenheit back to Celsius. In algebra, inverse functions also help solve equations by reversing operations in the correct order.
The most important habit is not just finding a formula. It is checking whether the original function can be reversed as a function and identifying the domain and range where the inverse makes sense.
An inverse function swaps the role of input and output. If \(g\) is the inverse of \(f\), then composing the two functions should return the starting value:
and
The first equation checks that \(g\) undoes \(f\) in one direction. The second checks the reverse direction. These equations are only meaningful on the domains where the compositions are defined.
A common algebraic method for finding an inverse is:
A nonconstant linear function has the form:
Swap \(x\) and \(y\), then solve:
So the inverse is:
A constant function does not have an inverse function on its full domain because every input gives the same output.
A common rational form is:
The denominator cannot be zero. If \(c\ne0\), the original function excludes:
When the rational expression is not degenerate and the inverse can be written in the same family, the coefficients are not proportional. A common way to express this condition is \(ad-bc\ne0\). The inverse has the form:
The denominator of the inverse also cannot be zero, so the inverse excludes:
This excluded value is not just a technical detail. It tells you which output value the original function never reaches.
A square-root form such as
requires the radicand to be nonnegative:
Solving for the inverse gives:
However, the inverse formula should only be used for input values in the range of the original square-root function. If \(a>0\), the range starts at \(k\) and increases. If \(a<0\), the range ends at \(k\) and decreases.
A simple odd-power function such as
with positive odd integer \(n\) is one-to-one over all real numbers. Its inverse can be written as:
Even powers and quadratics behave differently. For example, \(f(x)=x^2\) sends both \(-2\) and \(2\) to \(4\). Since two inputs share the same output, \(x^2\) is not one-to-one over all real numbers. To choose an inverse, you must first restrict the domain, such as \(x\ge0\) or \(x\le0\).
Let:
Write \(y=2x+3\), swap \(x\) and \(y\), and solve:
So:
Check by composition:
and
Both compositions return \(x\), so the functions undo each other.
Let:
The original function is undefined at \(x=4\). Now solve for the inverse:
Swap \(x\) and \(y\):
Solve for \(y\):
So:
The inverse is undefined at \(x=2\). This means the original function never outputs \(2\).
Let:
The original domain is \(x\ge1\), because the value under the square root must be nonnegative. The range is \(y\ge2\), because a square root is never negative.
Solve for the inverse:
Swap \(x\) and \(y\):
So:
The inverse domain is \(x\ge2\), because the inputs to the inverse are the outputs of the original function.
The function
is not one-to-one over all real numbers because:
A full inverse over all real numbers would not be a function. But if the domain is restricted to \(x\ge0\), then the inverse is:
If the domain is restricted to \(x\le0\), then the inverse is:
Both are valid on their chosen restricted domains, but they are different branches.
The sine function is periodic and is not one-to-one on all real numbers. On its principal branch,
The inverse domain is \([-1,1]\), and the inverse range is the selected principal interval. The calculator reports this restriction with the formula instead of claiming that unrestricted sine has an inverse.
A returned inverse formula means the expression tree was solved structurally, not guessed from sample values. Read the domain, range, and branch cards with the formula because they are part of the inverse result.
When a quadratic, even power, or absolute-value form needs a restriction, use the branch selector to choose the left/decreasing or right/increasing part of the original function.
For rational functions, excluded values tell you where the original function or inverse function is undefined. For square-root functions, the domain note tells you when the expression under the root is valid, and the range note tells you which inverse inputs are allowed.
Candidate results use three strict states. Verified means the candidate is symbolically equivalent to the derived inverse on the stated branch. Rejected includes a concrete composition counterexample. Inconclusive means deterministic probes agreed but did not constitute a symbolic proof.
Use inverse functions when you need to:
This calculator structurally supports affine and linear-fractional rational forms, powers and real roots, quadratics, absolute-value branches, exponentials, logarithms, and principal trigonometric or inverse-trigonometric forms. It also supports nested forms when the variable follows one reversible operation path.
Quadratics, even powers, and absolute values require an explicit left or right branch selection. Sine, cosine, and tangent use the standard principal restrictions shown in the result cards. Arbitrary custom intervals and complex-valued branches are not supported.
Expressions in which the variable occurs along several unsupported nonlinear paths, general piecewise rules, and higher polynomials with several powers return an unsupported result. The calculator does not infer a familiar form merely because an expression matches it at a few numerical points.
Finite coefficients are serialized with an ECMAScript round-trip decimal representation so copied inverse formulas preserve the accepted binary64 coefficients. Candidate verification compares compositions only on the selected function and inverse domains, uses a relative 1e-10 tolerance, and distinguishes symbolic verification, numerical rejection, and inconclusive sampling.
For homework, exams, engineering work, or any setting where the result affects an important decision, verify the algebra and domain restrictions separately.
An inverse reverses outputs back to inputs. If two different inputs give the same output, the inverse would not know which input to return. That would make the inverse fail the definition of a function.
No. \(f^{-1}(x)\) means the inverse function of \(f\). The expression \(\frac{1}{f(x)}\) means the reciprocal of the function value.
A quadratic such as \(x^2\) gives the same output for opposite inputs, such as \(-2\) and \(2\). Restricting the domain to one side of the vertex removes the duplicate outputs and lets you choose a single inverse branch.
Verified means symbolic equivalence was established on the stated branch. Rejected means a composition counterexample was found. Inconclusive means numerical probes agreed but a symbolic proof was not available.
The outputs of the original function become the inputs of the inverse. Likewise, the inputs of the original function become the outputs of the inverse. That is why the range of \(f\) becomes the domain of \(f^{-1}\), and the domain of \(f\) becomes the range of \(f^{-1}\).
The expression may be mathematically meaningful but outside the supported inverse-solving families. The calculator focuses on specific algebraic forms, so more general symbolic inverse problems may need manual algebra, graphing, or a computer algebra system.
Books