Euler Hall — free maths guides

Evaluate a composite function from the graphs of its two functions

Read the expression by taking the inside function's value first. The idea in plain words, a worked example, and a check with the answers shown — part of the free Precalculus guides.

Two functions, one after the other

A composite function takes the output of one function and feeds it to another. The notation(f∘g)(a)(f \circ g)(a) means exactly:

(f∘g)(a)=f(g(a)).(f \circ g)(a) = f\bigl(g(a)\bigr).

Read it from the inside out. The function written next to the input runs first, and its result becomes the input of the outer function. The order is not a formality:(f∘g)(2)(f \circ g)(2) and(g∘f)(2)(g \circ f)(2) are usually different numbers, and sometimes only one of them exists at all.

From a graph or a table the reading is the same. Look up the inside function at the input, take that height, and then look up the outer function at that height — not at the original input.

Why the order cannot be swapped

Composition is not multiplication, and it is not commutative. Writing(f∘g)(a)(f \circ g)(a) records a sequence of operations:gg first, thenff. Reversing them asks a different question and normally gets a different answer.

Two consequences follow, and both are exam favourites.

First, one order may not exist. Ifg(a)=8g(a) = 8 andff has no value at 8, then(f∘g)(a)(f \circ g)(a) is undefined even though both functions are perfectly well-defined on their own.

Second, the notation is read left to right but applied right to left. That is why it is worth saying out loud every time: "the function next to the input runs first".

A worked example in the exam's shape

Letf(x)=2x+1f(x) = 2x + 1 andg(x)=x2g(x) = x^2. Find(f∘g)(3)(f \circ g)(3) and(g∘f)(3)(g \circ f)(3).

Inside out for the first:

(f∘g)(3)=f(g(3))=f(9)=2⋅9+1=19.(f \circ g)(3) = f(g(3)) = f(9) = 2 \cdot 9 + 1 = 19.

For the second, the inside function isff:

(g∘f)(3)=g(f(3))=g(7)=49.(g \circ f)(3) = g(f(3)) = g(7) = 49.

The two answers, 19 and 49, are different numbers. Writingf(g(3))f(g(3)) asf(3)⋅g(3)f(3) \cdot g(3) gives7⋅9=637 \cdot 9 = 63, which is neither — composition is not multiplication of the two values.

By the end you can
  • Read(f∘g)(a)(f \circ g)(a) by taking the inside function's value first
  • Choose the correct function as the inside one from the notation
  • Build an entry of a composite table from two tables
  • Say which inputs a composite function can accept at all
Check yourself

Letf(x)=x+4f(x) = x + 4 andg(x)=3xg(x) = 3x. Compute:

  1. 1.(f∘g)(2)(f \circ g)(2)
  2. 2.(g∘f)(2)(g \circ f)(2)
  3. 3. Are they equal?
Answers

1.(f∘g)(2)=f(g(2))=f(6)=10(f \circ g)(2) = f(g(2)) = f(6) = 10. 2.(g∘f)(2)=g(f(2))=g(6)=18(g \circ f)(2) = g(f(2)) = g(6) = 18. 3. No. 10 and 18 are different, which shows composition does not commute. Notice that here the two inside values happened to be equal (both 6), and the answers still differ — the outer function is what differs.

Work out where to start — free, no accountAnswer six real questions — free, no account