Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

(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.

Function Operations Calculator

f: coefficient a of x²: enter a number. Prefilled example: 1.

f: coefficient b of x: enter a number. Prefilled example: 2.

f: constant c: enter a number. Prefilled example: -3.

g: coefficient p of x²: enter a number. Prefilled example: 0.

g: coefficient q of x: enter a number. Prefilled example: 2.

g: constant r: enter a number. Prefilled example: 1.

Value of x: enter a number. Prefilled example: 2.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. f: coefficient a of x²: enter a number.
  2. f: coefficient b of x: enter a number.
  3. f: constant c: enter a number.
  4. g: coefficient p of x²: enter a number.
  5. g: coefficient q of x: enter a number.
  6. g: constant r: enter a number.
  7. Value of x: enter a number.
  8. 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

  1. Fx=a×x×x+b×x+c
  2. Gx=p×x×x+q×x+r
  3. F=Fx+Gx
Symbols used in the formula
SymbolMeaning
af: coefficient a of x²
bf: coefficient b of x
cf: constant c
pg: coefficient p of x²
qg: coefficient q of x
rg: constant r
xValue of x
Fxf(x)
Gxg(x)
F(f + g)(x)

Worked example

f: coefficient a of x²1
f: coefficient b of x2
f: constant c-3
g: coefficient p of x²0
g: coefficient q of x2
g: constant r1
Value of x2
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
  1. Fx=1×2×2+2×2+−3=5
  2. Gx=0×2×2+2×2+1=5
  3. F=5+5=10

(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.

Related calculators