represents the inverse of the function f, defined so that InverseFunction[f][y] gives the value of x for which f[x] is equal to y.
InverseFunction[f,n,tot]
represents the inverse with respect to the n
argument when there are tot arguments in all.
InverseFunction
represents the inverse of the function f, defined so that InverseFunction[f][y] gives the value of x for which f[x] is equal to y.
InverseFunction[f,n,tot]
represents the inverse with respect to the n
argument when there are tot arguments in all.
Details
- In OutputForm and StandardForm, InverseFunction[f] is printed as f(-1).
- As discussed in "Functions That Do Not Have Unique Values", many mathematical functions do not have unique inverses. In such cases, InverseFunction[f] can represent only one of the possible inverses for f.
- InverseFunction is generated by Solve when the option InverseFunctions is set to Automatic or True.
Examples
open all close allBasic Examples (3)
Scope (8)
Inverse of a one-to-one function:
InverseFunction[2# + 3&]When the function is not one-to-one, InverseFunction issues a message:
InverseFunction[# ^ 2 - 3# + 5&]For functions with a named principal branch of the inverse, the message is not issued:
InverseFunction[Cos]InverseFunction[Tan[Exp[#]]&]Inverse function with respect to the second argument:
InverseFunction[#1 ^ 2 + Log[#2] - 1&, 2, 2]Inverse of a function with a restricted domain:
InverseFunction[ConditionalExpression[#1 ^ 2 + 2, #1 > 0]&]The domain of the inverse function is computed automatically:
InverseFunction[ConditionalExpression[Sin[# ^ 2 - 1 / 2], 0 < #1 < 1]&]Here a closed-form representation for the inverse function does not exist:
f = InverseFunction[Sin[#] - #&]Evaluation of the inverse function at exact points yields exact numeric values:
f[2]However, the inverse may not be unique:
Reduce[Sin[x] - x == 2 && Abs[x] < 5, x]InverseFunction with respect to the first argument of a two-argument function:
g = InverseFunction[Function[{x, y}, Beta[x, y] - x + y], 1, 2]g[3, 4]Here a closed-form representation for the inverse function does not exist:
h = InverseFunction[Underoverscript[∑, k, ∞]k^-#1 k&]Evaluation at an exact point does not find an exact numeric representation:
h[3]Evaluation at an approximate point yields a numeric result:
h[3`50]Automatic simplification of symbolic inverses:
f[InverseFunction[f][x]]Properties & Relations (3)
For arbitrary function
and point
,
:
f = Log[Sin[#] + 1]&;
g = InverseFunction[f]{f[x], f[g[f[x]]]}Note that neither
nor
for arbitrary
and
:
{x, g[f[x]]}% /. x -> 2Pi{y, f[g[y]]}% /. y -> 2I PiIf solutions of
exist,
gives a solution of
:
f = Cos[#] + 1&;
InverseFunction[f][3 / 2]f[%] == 3 / 2Use Reduce to find all solutions of
:
Reduce[f[x] == 3 / 2, x]Use FindInstance to find a solution of
:
FindInstance[f[x] == 3 / 2, x]For non-algebraic input, Solve may use InverseFunction to represent solutions:
Solve[Erf[x] == a, x]Solve[f[x] == a, x]Tech Notes
Related Guides
Related Links
History
Introduced in 1991 (2.0)
Text
Wolfram Research (1991), InverseFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/InverseFunction.html.
CMS
Wolfram Language. 1991. "InverseFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/InverseFunction.html.
APA
Wolfram Language. (1991). InverseFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/InverseFunction.html
BibTeX
@misc{reference.wolfram_2026_inversefunction, author="Wolfram Research", title="{InverseFunction}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/InverseFunction.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_inversefunction, organization={Wolfram Research}, title={InverseFunction}, year={1991}, url={https://reference.wolfram.com/language/ref/InverseFunction.html}, note=[Accessed: 12-June-2026]}