Function Calculator

Reviewed by CalcMulti Editorial Team·Last updated: ·Algebra Hub

A function f(x) is a rule that assigns exactly one output to each valid input. Function notation f(a) means: substitute x = a into the rule and compute the result. Functions are the language of mathematics and science — they model everything from population growth and compound interest to the trajectory of a projectile.

This calculator evaluates a function at any given value, computes arithmetic combinations (f+g, f−g, f·g, f/g), and finds function compositions such as f(g(x)) and g(f(x)). Enter your function expression and the calculator substitutes, simplifies, and shows every step so you understand not just the answer but the process.

Formula

f(a) = substitute x=a | (f∘g)(x) = f(g(x)) | (f+g)(x) = f(x)+g(x)

f(a)
the output of function f when the input is a — substitute x = a and simplify
(f∘g)(x)
function composition — apply g first, then apply f to the result
(f+g)(x)
sum of functions — add the two function rules pointwise

Function Calculator

Evaluate, compose, or combine functions.

f(x) = ax² + bx + c

Function Evaluation Examples

Function f(x)Evaluate atSubstitutionf(x) =
x² − 3x + 2x = 4(4)² − 3(4) + 2 = 16 − 12 + 26
2x + 5x = −32(−3) + 5 = −6 + 5−1
x³ − 1x = 2(2)³ − 1 = 8 − 17
3x² − 2x + 1x = 03(0)² − 2(0) + 11
(x+1)²x = 5(5+1)² = (6)²36
−x² + 4x = 3−(3)² + 4 = −9 + 4−5

Function Composition Examples

f(x)g(x)f(g(x))g(f(x))Equal?
x + 12x2x + 12x + 2No
3xx − 23x − 63x − 2No
√xx (for x≥0)x (for x≥0)Yes (inverses)
ln(x)x (for x>0)x (for all)Yes (inverses)
2x + 3(x−3)/2xxYes (inverses)

Disclaimer

This calculator is for educational purposes only and does not constitute professional advice. Results are based on standard mathematical formulas. Always verify critical calculations with a qualified professional before making important decisions.

Frequently Asked Questions