Operations on Functions
Learn operations on functions step by step with worked examples you can follow. Then practise with 22 instant-feedback questions. Free Algebra 2 lesson from Mr Ahmed Hamouda.
Add, subtract, multiply and divide functions, and build composite functions f∘g
Key Concepts
🔑 Today's Vocabulary
🔑 The Four Operations on Functions
Let f(x) = 3x and g(x) = 2x − 4 for each example below.
| Operation | Definition | Example |
|---|---|---|
| Addition | (f + g)(x) = f(x) + g(x) | 3x + (2x − 4) = 5x − 4 |
| Subtraction | (f − g)(x) = f(x) − g(x) | 3x − (2x − 4) = x + 4 |
| Multiplication | (f · g)(x) = f(x) · g(x) | 3x(2x − 4) = 6x² − 12x |
| Division | (f/g)(x) = f(x)/g(x), g(x) ≠ 0 | 3x/(2x − 4), x ≠ 2 |
🔑 Composition of Functions
Suppose f and g are functions such that the range of g is a subset of the domain of f. Then the composition function f ∘ g can be described by:
x → g(x) → f[g(x)]
Key Figures
[f ∘ g](x) means the output of g is fed into
f — so g runs first, even though f is written first. Swap the order and you get a
different answer, which is why composition is not commutative.f ∘ g if it clears two hurdles:
g must accept it, and g's output must be something f accepts. Here g takes any real number, but f
= √x refuses negatives, so we need x − 4 ≥ 0. The composed formula
√(x − 4) happens to show this clearly, but with division the restriction can hide —
which is why you check the inner function's output, not just the final simplified formula.Move It Yourself
Step-by-Step Worked Examples
Click any example header to open or close it. Each step shows the algebra on the left and the reason on the right.
Part a: (f + g)(x)
Part b: (f − g)(x)
Part a: (f · g)(x)
Part b: (f/g)(x)
Part A: find [f ∘ g](x) — evaluate g first, then use its output in f
Part A continued: find [g ∘ f](x) — evaluate f first, then use its output in g
Part B: state the domain and range
[f ∘ g](x)
R = {7, 11, 12, 13}
[g ∘ f](x)
R = {9, 10}
Part A: [f ∘ g](x)
Part A continued: [g ∘ f](x)
Part B: domain and range
Chris (incorrect)
= x⁴ + 16x² + 64 + 2x − 8
= x⁴ + 16x² + 2x + 56
Tobias (correct)
= x⁴ + 16x² + 64 + 2x² + 16 − 8
= x⁴ + 18x² + 72
Try It Yourself
Use f(x) = x² − 1 and g(x) = 2x + 3 unless a problem says otherwise. Work each one out before revealing.
Problem 1
Problem 2
Problem 3
Problem 4
Problem 5
Problem 6
Summary & Common Mistakes
📝 Quick Reference
| You are asked for | What to do | Watch for |
|---|---|---|
| (f + g)(x) | Add and combine like terms | Line up matching powers |
| (f − g)(x) | Distribute the negative to every term of g | Sign errors on the second and later terms |
| (f · g)(x) | Distribute each term of f across each term of g | Missing cross terms |
| (f/g)(x) | Write as a quotient | Exclude x-values where g(x) = 0 |
| [f ∘ g](x) | Evaluate g first, substitute into f | Replace EVERY x in f |
| [g ∘ f](x) | Evaluate f first, substitute into g | Usually different from f ∘ g |
| Domain of a composition | Start with the domain of the inner function | Remove x whose output leaves the outer domain |
⚠ Common Mistakes to Avoid
Practice Quiz
15 questions · click an answer to check it instantly