Objective
Perform sum, difference, product, quotient, and composition operations on functions, and find the domain of each result.
Arithmetic on functions
Two functions can be combined the same way two numbers can — added, subtracted, multiplied, or divided. Each combination is itself a new function:
(f + g)(x) = f(x) + g(x)
(f − g)(x) = f(x) − g(x)
(f · g)(x) = f(x) · g(x)
(f / g)(x) = f(x) / g(x), provided g(x) ≠ 0
The domain of a sum, difference, or product is whatever both f and g's domains have in common. The quotient has that same restriction, plus it must also exclude any x where g(x) = 0.
Composition
Composition is different from the four operations above — it's not arithmetic on outputs, it's chaining two functions so one's output becomes the other's input. (f \(\circ\) g)(x), read "f of g of x," means: run x through g first, then run that result through f.
(f \(\circ\) g)(x) = f(g(x)). Order matters — (f \(\circ\) g)(x) and (g \(\circ\) f)(x) are generally different functions.
Composition (f \(\circ\) g)(x) — x goes through g first, and g's output becomes f's input
Worked Example 1 · Sum and product
ProblemLet f(x) = x² + 1 and g(x) = 2x − 3. Find (f+g)(x) and (f·g)(x).