Functions & Inverses
Inverse Functions
Find a one-to-one inverse and exchange its domain and range.
For f(x)=2*x+3, inverse(f) returns (x-3)/2. The cubic f(x)=x^3 has the real cube-root inverse. Restricting f(x)=x^2 to x>=0 selects sqrt(x), whose domain and range are both nonnegative.
Without that restriction, x^2 has no global inverse function on the real line; the example explains why rather than choosing a branch silently. For f(x)=1/x, the inverse composition returns x only for x!=0. The exponential inverse is log(x) with x>0. Graph includes y=x as the reflection reference.
Equation
f(x)=2*x+3, inverse(f)
One-to-one functions and inverse domains
An inverse reverses the function's input and output. Solve y=f(x) for the original input, then rename the output variable to x. A single inverse function exists only when the original function is one-to-one on its stated domain. A quadratic on the whole real line fails this test because two different inputs can have the same square.
Restricting x^2 to x>=0 selects the inverse sqrt(x). Its input domain is [0,infinity), the original function's range, and its output range is the original restricted domain. DGS distinguishes inverse notation from the reciprocal 1/f(x). In Graph, the original and inverse are reflected across the reference line y=x; domain restrictions remain in force when verifying either composition identity.
Reading the input
f(x)=2*x+3, inverse(f)— For f(x)=2*x+3, inverse(f) returns (x-3)/2. The cubic f(x)=x^3 has the real cube-root inverse. Restricting f(x)=x^2 to x>=0 selects sqrt(x), whose domain and range are both nonnegative.
Other versions of this example
These stay on this page so each version keeps the same explanation. Choose Try example to run a version in its Studio workflow, or copy it into the editable field below.
Linear inverse
This is a command. The name selects the routine, and the items inside the parentheses are its arguments.
f(x)=2*x+3, inverse(f)
Real cubic inverse
This is a command. The name selects the routine, and the items inside the parentheses are its arguments.
f(x)=x^3, f^(-1)(x)
Restricted quadratic
This is a command. The name selects the routine, and the items inside the parentheses are its arguments.
f(x)=x^2, x>=0, inverse(f)
No global inverse
Expected explanation: x^2 is not one-to-one on Reals, so no global inverse function exists without a domain restriction.
f(x)=x^2, inverse(f)
Inverse identity
This is a command. The name selects the routine, and the items inside the parentheses are its arguments.
f(x)=1/x, (f∘f^(-1))(x)
Try a change
- Edit one number in the field, then use Solve Equation. The studio opens on the homepage with the edited text and runs it.
- Use Open in DGS Studio when you want the expression loaded but not run yet.
Solve Equation opens the original input in the equation workspace and displays its symbolic results, conditions, and solution steps.