Function Operations Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Enter f(x) = ax² + bx + c and g(x) = px² + qx + r (use 0 for a missing term) and a value of x. The calculator evaluates each operation on functions at that x.
Result
(f + g)(x)
(f − g)(x)
- (f · g)(x)
- (f / g)(x) (none where g(x) = 0)
- (f ∘ g)(x) = f(g(x))
- (g ∘ f)(x) = g(f(x))
- f(x)
- g(x)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- f: coefficient a of x²: enter a number.
- f: coefficient b of x: enter a number.
- f: constant c: enter a number.
- g: coefficient p of x²: enter a number.
- g: coefficient q of x: enter a number.
- g: constant r: enter a number.
- Value of x: enter a number.
- Read the result: (f + g)(x); the panel also shows (f − g)(x), (f · g)(x), (f / g)(x) (none where g(x) = 0), (f ∘ g)(x) = f(g(x)), (g ∘ f)(x) = g(f(x)), f(x) and g(x).
How this calculator works
Operations on functions are defined point by point: (f + g)(x) = f(x) + g(x), (f − g)(x) = f(x) − g(x), (f · g)(x) = f(x) · g(x) and (f / g)(x) = f(x) ÷ g(x), defined only where g(x) ≠ 0.
Composition feeds one output into the other function: (f ∘ g)(x) = f(g(x)) and (g ∘ f)(x) = g(f(x)). In general the two are different, so order matters.
Domain: the sum, difference and product of two polynomials are defined for every x; the quotient excludes the zeros of g.
The formula
| Symbol | Meaning |
|---|---|
| f: coefficient a of x² | |
| f: coefficient b of x | |
| f: constant c | |
| g: coefficient p of x² | |
| g: coefficient q of x | |
| g: constant r | |
| Value of x | |
| f(x) | |
| g(x) | |
| (f + g)(x) |
Worked example
| f: coefficient a of x² | 1 |
|---|---|
| f: coefficient b of x | 2 |
| f: constant c | -3 |
| g: coefficient p of x² | 0 |
| g: coefficient q of x | 2 |
| g: constant r | 1 |
| Value of x | 2 |
| f(x) | 5 |
|---|---|
| g(x) | 5 |
| (f − g)(x) | 0 |
| (f · g)(x) | 25 |
| (f / g)(x) (none where g(x) = 0) | 1 |
| (f ∘ g)(x) = f(g(x)) | 32 |
| (g ∘ f)(x) = g(f(x)) | 11 |
(f + g)(x) 10
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
How do I find (f ∘ g)(2) for f(x) = x² + 2x − 3 and g(x) = 2x + 1?
First g(2) = 5, then f(5) = 25 + 10 − 3 = 32. The other order gives g(f(2)) = g(5) = 11.
Why is the quotient blank?
g(x) is 0 at that x, and division by zero is undefined, so (f / g)(x) does not exist there.
Is (f ∘ g)(x) the same as (f · g)(x)?
No. The product multiplies the two outputs; the composition puts g(x) inside f.