Function Value and Inverse Function Calculator
Finds f(a), the composition f(g(x)) and the inverse function step by step. For linear functions and (ax+b)/(cx+d) the inverse is given in symbols.
What does this tool do?
You type the definition of a function and the tool does three jobs step by step. The value tab finds f(a): it replaces every x with a and works out the result. The composition tab builds f(g(x)) and g(f(x)) from two functions and simplifies them. The inverse tab solves y = f(x) for x and swaps the letters x and y to give f⁻¹(x).
How to type
Write the function as f(x) = 2x^2 - 3x + 1 or simply as 2x^2 - 3x + 1. Use ^ for powers. The multiplication sign can be omitted. A value can be a whole number, a decimal, a fraction (1/2) or an expression such as pi/2 or sqrt(2). Separate several values with semicolons to evaluate them together.
Example: function value
For f(x) = 2x² − 3x + 1 find f(2). Replace x with 2: 2·2² − 3·2 + 1 = 8 − 6 + 1 = 3. When the input and operations support exact rational arithmetic, the result is a fraction. Roots, trigonometric functions and constants such as pi may use decimal approximations.
Composite functions
To find f(g(x)), every x in the definition of f is replaced with the expression g(x). For f(x) = 2x + 1 and g(x) = x² this gives f(g(x)) = 2x² + 1, while g(f(x)) = (2x + 1)² = 4x² + 4x + 1. The two results are usually different: the order matters.
Inverse function
For linear functions (ax + b) and for a linear expression over a linear one ((ax + b)/(cx + d)) the inverse is found in symbols. Example: in y = (2x + 1)/(x − 3) multiply both sides by the denominator, collect the terms with x and get x = (3y + 1)/(y − 2). Swapping the letters gives f⁻¹(x) = (3x + 1)/(x − 2). The tool checks the result with f(f⁻¹(x)) = x.
Limits
For other functions (such as x², x³ + x or eˣ) no symbolic inverse is given. Instead the equation f(x) = y is solved for the value of y you enter and the solutions are listed. If there are several, the function is not one to one and an inverse exists only on a restricted domain. For functions that are not polynomials, solutions are searched only between −10 and 10. Trigonometric functions take radians. Compositions with roots or trigonometry get basic simplification only.
Frequently asked questions
How do you calculate a function value?
For f(x) = 3x² + 2x + 1, substituting x = 4 gives f(4) = 57. Replace every occurrence of the variable with that value and preserve the order of operations, evaluating parentheses and powers first. This example is a polynomial, while functions with denominators, roots or logarithms also require checking that the chosen value belongs to the domain.
Related calculators
-
Mathematics
Function Graph Plotter
Type f(x) and see its graph: several functions at once, zoom and pan, roots and intersection points. Download the graph as SVG or PNG. -
Mathematics
Equation Solver
Type an equation and see the roots step by step: linear, quadratic and cubic, discriminant, complex roots, numeric roots and systems in 2, 3 or 4 unknowns. -
Mathematics
Algebraic Expression Simplifier
Simplifies an algebraic expression step by step: expands brackets, combines like terms, cancels common factors in rational expressions and evaluates at given values. -
Mathematics
Derivative Calculator
Type a function and see its derivative step by step: sum, product, quotient and chain rules, a simplified result, the value at a point and a graph. -
Mathematics
Absolute Value and Piecewise Function Calculator
Solves absolute value equations and inequalities step by step, evaluates expressions, writes them piecewise and evaluates piecewise functions. -
Mathematics
Arithmetic and Geometric Sequence Calculator
The nth term, the sum of the first n terms, the infinite sum, finding a sequence from two terms and the position of a term. Exact fractions, step by step.
Found a mistake or something missing?
If a value looks wrong, a size is missing or you need a feature, write to us and we will fix it.