Module 3 · Functions · Lesson 19 of 84
Composition of functions
Combining functions with arithmetic, composing them, and breaking a function into parts.
In this lesson · about 18 minutes
- Add, subtract, multiply and divide functions
- Find and evaluate a composite function
- Find the domain of a composite function
- Decompose a function into simpler ones
Functions can be combined like numbers. If f(x) = x + 2 and g(x) = x², then:
- (f + g)(x) = x + 2 + x²
- (f − g)(x) = x + 2 − x²
- (fg)(x) = (x + 2)x² = x³ + 2x²
- (f/g)(x) = (x + 2)/x², for x ≠ 0
Real example: if a business's revenue is R(x) and its cost is C(x), its profit is the difference P(x) = R(x) − C(x).
Composition
Composition feeds the output of one function into another. (f ∘ g)(x) = f(g(x)): first apply g, then apply f to the result. Read it from the inside out.
Think of a shop with a sale. g(x) = x − 10 takes $10 off, and f(x) = 0.8x takes 20% off. f(g(x)) = 0.8(x − 10) takes $10 off first, then 20%. g(f(x)) = 0.8x − 10 takes 20% off first, then $10. On a $100 item they give $72 and $70. Order matters.
Whiteboard · watch and try
Building a composite function
Tip: press Pause, then use the pen to work along on the board. Space plays and pauses; Ctrl+Z undoes your last mark.
Try it · interactive
Composition of functions
Type any two functions and pick x. Compare f(g(x)) with g(f(x)), step by step and on the graph.
(f ∘ g)(2) = f(g(2))
g(2) = −1 → f(−1) = 2
(g ∘ f)(2) = g(f(2))
f(2) = 5 → g(5) = 2
Work from the inside out. The order matters: f(g(x)) and g(f(x)) are usually different.
Loading practice…
Domain of a composite
For f(g(x)) to exist, x must be in the domain of g, and g(x) must be in the domain of f. If f(x) = 1/x and g(x) = x − 4, then f(g(x)) = 1/(x − 4) and x cannot be 4.
Decomposing
Going backwards, we can break a complicated function into simpler steps. h(x) = √(3x + 1) is f(g(x)) with inner function g(x) = 3x + 1 and outer function f(x) = √x. This skill becomes essential in calculus.
Check your understanding0 of 4 correct
Key terms
Say the meaning to yourself, then tap a card to check.
Quiz score: 0 of 4
Practice sets mastered: 0 of 1
Based on Algebra and Trigonometry 2e by Jay Abramson and others (OpenStax, Rice University), openstax.org/details/books/algebra-and-trigonometry-2e, licensed under CC BY-NC-SA 4.0. Noviq Academy rewrote and reorganized the material in its own words and added its own examples, whiteboard lessons, tools and quizzes; this adapted course is free and shared under the same license. Not endorsed by OpenStax or Rice University. Read-aloud and the whiteboard voice use your device's built-in voices, so the voice varies by device.