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

4 steps
Press Play and the tutor will talk you through it while writing on the board. Pause any time to write on the board yourself.

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.

−8−6−4−22468−8−6−4−22468f(g(x))g(f(x))

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

Question 1

1.f(x) = 3x and g(x) = x + 4. What is f(g(x))?

Question 2

2.With the same f and g, what is g(f(2))?

Question 3

3.h(x) = (x − 7)⁵. Which pair gives h(x) = f(g(x))?

Question 4

4.f(x) = x² − 1 and g(x) = x + 1. What is (f/g)(x)?

Key terms

Say the meaning to yourself, then tap a card to check.

Quiz score: 0 of 4

Practice sets mastered: 0 of 1

Tip: answer every quiz question correctly first.

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.