Defining Composition

LESSON 17 OF 27See the unit map ↗

Evaluate a composition in the correct order.

The bigger question: What does a function tell us—and what can it hide?

On this page

Idea

Composition feeds the output of one function into another. The inner function acts first, even though its name appears second in f∘gf\circ g.

Visual guide

VISUAL GUIDEOrder changes the composite
With f(x) = x² and g(x) = x + 1, f(g(x)) shifts the parabola left, while g(f(x)) shifts it up. At x = 1 they give 4 and 2 respectively.-3-1-1.751-0.530.75527xy
  • f(g(x)) = (x + 1)²
  • g(f(x)) = x² + 1
With f(x) = x² and g(x) = x + 1, f(g(x)) shifts the parabola left, while g(f(x)) shifts it up. At x = 1 they give 4 and 2 respectively.

Method

(f∘g)(x)=f(g(x)).(f\circ g)(x)=f(g(x)).

Its domain contains exactly the inputs in the domain of gg whose outputs lie in the domain of ff. Both stages must be legal.

Worked example

Let f(u)=uf(u)=\sqrt u and g(x)=x−3g(x)=x-3. Then (f∘g)(x)=x−3(f\circ g)(x)=\sqrt{x-3} with domain x≥3x\ge3. Reversing the order gives (g∘f)(x)=x−3(g\circ f)(x)=\sqrt x-3 with domain x≥0x\ge0. The different order changes both the rule and its domain.

PAUSE & THINKA quick check, not a grade

Try it yourself.

Choose an answer and explain your reasoning to yourself. Use a hint if you get stuck.

If f(x)=x² and g(x)=x+1, what is (f∘g)(2)?

Hint 1 · Find a starting point

Composition applies the inner function first.

Hint 2 · Take the next step

Compute g(2), then square that result.

Show the reasoning

Answer: 9

g(2)=3 and f(3)=9.

Before moving on: what would make one of the other answers wrong? Saying why is part of understanding.

Common mistake

Composition is not multiplication. f(g(x))f(g(x)) generally differs from f(x)g(x)f(x)g(x).

Check your understanding

For f(x)=1/xf(x)=1/x and g(x)=x2−4g(x)=x^2-4, find f∘gf\circ g and its domain.

Show answer

1/(x2−4)1/(x^2-4), excluding x=−2,2x=-2,2.

MAKE IT YOURS

Pause before the next idea.

Can you explain how the visualization connects to this lesson’s goal? If a step still feels uncertain, put this lesson on your review list and try the check again another day.

Optional marks, not a grade. Saved in this browser only. Open notebook →