Functions & Inverses
Inverse Functions
Reflect a function across y=x to see its inverse.
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)
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)
Cubic inverse
This is a command. The name selects the routine, and the items inside the parentheses are its arguments.
f(x)=x^3, inverse(f)
Exponential inverse
This is a command. The name selects the routine, and the items inside the parentheses are its arguments.
f(x)=exp(x), inverse(f)
Try a change
- Edit one number in the field, then use Generate Graph. 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.
Generate Graph opens this input in the graph workspace with its domain restrictions. The interactive result keeps the existing zoom, pan, and export controls.