Function Composition Calculator
Work out the polynomial f(g(x)) from f coefficients, lowest power first, g coefficients, lowest power first, evaluate at x (optional). F(g(x)) substitutes g for every x in f and collects like powers, and the page prints the substitution so the result can be checked by hand.
Function Composition Calculator
Work out the polynomial f(g(x)) from f coefficients, lowest power first, g coefficients, lowest power first, evaluate at x (optional). F(g(x)) substitutes g for every x in f and collects like powers, and the page prints the substitution so the result can be checked by hand.
How this page computes
F(g(x)) substitutes g for every x in f and collects like powers
f(g(x)) has degree deg f × deg g, while f(x) × g(x) has degree deg f + deg g. For x² + 1 and x + 1 the composition is x² + 2x + 2, not x³ + x² + x + 1.
The optional evaluation point is checked through both routes — g then f, and the composed polynomial directly — so the printed composition can be tested at one number.
The calculation runs entirely in this browser tab; nothing is uploaded.
Function Composition Calculator computes the polynomial f(g(x)). F(g(x)) substitutes g for every x in f and collects like powers. The page prints the rule, the numbers substituted into it and the result, so the arithmetic can be checked by hand.
f(g(x)) has degree deg f × deg g, while f(x) × g(x) has degree deg f + deg g. For x² + 1 and x + 1 the composition is x² + 2x + 2, not x³ + x² + x + 1. Pressed with f coefficients, lowest power first 1, 0, 1, g coefficients, lowest power first 1, 1, evaluate at x 2, it answers: f(x) = x^2 + 1
How to use Function Composition Calculator
Enter f coefficients, lowest power first 1, 0, 1, g coefficients, lowest power first 1, 1, evaluate at x 2, then press Run: the page evaluates the polynomial f(g(x)) and prints every line of the working. Typed input is read exactly as written, and a blank field is refused with its name.
Read the first line as the answer and the lines below it as the substitution. If a value is out of range the page refuses it by field and reason instead of printing a number.
With f coefficients, lowest power first 1, 0, 1, g coefficients, lowest power first 1, 1, evaluate at x 2, the answer is f(x) = x^2 + 1.
Composition is not multiplication
f(g(x)) has degree deg f × deg g, while f(x) × g(x) has degree deg f + deg g. For x² + 1 and x + 1 the composition is x² + 2x + 2, not x³ + x² + x + 1.
The optional evaluation point is checked through both routes — g then f, and the composed polynomial directly — so the printed composition can be tested at one number.
What to Expect
Best for
- Working out the polynomial f(g(x)) without a spreadsheet
- Checking a figure someone else quoted
- Seeing the formula behind an answer
Not ideal for
- Each polynomial may have at most 12 coefficients, and a composition with more than 60 terms is refused.
- A quantity the page cannot compute, which it refuses instead of estimating
- Rounding an answer that has an exact form
What this tool keeps
- F(g(x)) substitutes g for every x in f and collects like powers
- Every input exactly as typed
What may need cleanup
- Nothing: the printed answer is the final output
- A unit conversion, if the inputs were entered in different units
Common errors
- Each polynomial may have at most 12 coefficients, and a composition with more than 60 terms is refused.
- An empty field is refused with the field's name
Example use cases
- Work out the polynomial f(g(x)) for one set of inputs
- Check the result against the formula by hand
- See which input the answer is most sensitive to
Sample input
Function Composition Calculator: f coefficients, lowest power first 1, 0, 1, g coefficients, lowest power first 1, 1, evaluate at x 2
Sample output
f(x) = x^2 + 1 — g(x) = x + 1
Who this is for
- Students checking a formula
- Anyone who needs the number and the working
Frequently asked questions
What formula does this page use?
F(g(x)) substitutes g for every x in f and collects like powers. The page prints the substitution as well, so the answer can be checked against the rule.
What does Function Composition Calculator refuse?
Each polynomial may have at most 12 coefficients, and a composition with more than 60 terms is refused.
What does the default example give?
F coefficients, lowest power first 1, 0, 1, g coefficients, lowest power first 1, 1, evaluate at x 2 gives f(x) = x^2 + 1. Every line below that restates the same arithmetic.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.