DWG NO. 1.5 — Lesson 5 of 6

Combining Functions

Unit 1: Functions and Their Graphs · ~25 min

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:

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.

x g(x) f( ) f(g(x)) input apply g apply f

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).
1(f+g)(x) = (x²+1) + (2x−3) = x² + 2x − 2.
2(f·g)(x) = (x²+1)(2x−3) = 2x³ − 3x² + 2x − 3.
(f+g)(x) = x² + 2x − 2  ·  (f·g)(x) = 2x³ − 3x² + 2x − 3
Worked Example 2 · Composition both ways
ProblemLet f(x) = 2x + 1 and g(x) = x². Find (f \(\circ\) g)(x) and (g \(\circ\) f)(x).
1(f \(\circ\) g)(x) = f(g(x)) = f(x²) = 2(x²) + 1 = 2x² + 1.
2(g \(\circ\) f)(x) = g(f(x)) = g(2x+1) = (2x+1)² = 4x² + 4x + 1.
(f \(\circ\) g)(x) = 2x² + 1  ·  (g \(\circ\) f)(x) = 4x² + 4x + 1 — not equal, so order matters
Worked Example 3 · Domain of a quotient
ProblemLet f(x) = x + 3 and g(x) = x − 5, both with domain all real numbers. Find the domain of (f/g)(x).
1(f/g)(x) = (x+3)/(x−5) needs g(x) ≠ 0: x − 5 ≠ 0, so x ≠ 5.
Domain of (f/g)(x): (−∞, 5) ∪ (5, ∞)

Guided practice