Practice Function Composition in Math

Use these practice problems to test your method after reviewing the concept explanation and worked examples.

Quick Recap

Function composition applies one function to the output of another: (f∘g)(x)=f(g(x)), meaning evaluate g first, then apply f to the result.

Composition is a relay race: the second runner cannot start until the first hands over the baton, and what the second runner carries is exactly what the first delivered. Swap the running order and the finish can change, just as (x+1)2 differs from x2+1.

Showing a random 20 of 50 problems.

Example 1

easy
If f(x)=x+7 and g(x)=2x−1, find (f∘g)(x).

Example 2

medium
If f(x)=2x+1 and (f∘g)(x)=2x+7, find a linear g(x).

Example 3

medium
If f(x)=3x, find a function g with (f∘g)(x)=x.

Example 4

medium
If f(x)=x2+1 and (f∘g)(x)=x2+2x+2, find g(x) (linear).

Example 5

medium
If f(x)=2x+5 and g(x)=x2−4, find (f∘g)(x).

Example 6

medium
If f(x)=x2+x and g(x)=x−1, find (f∘g)(x) simplified.

Example 7

medium
If f(x)=x2 and g(x)=x+1, evaluate (f∘g∘f)(2).

Example 8

medium
Express h(x)=2x+5 as a composition f∘g with simple f,g.

Example 9

easy
If f(x)=x+1 and g(x)=2x, find (f∘g)(3).

Example 10

challenge
Functions satisfy f(x)=2x+3 and f(g(x))=g(f(x)) for all x, with g linear g(x)=mx+b. Find a relation between m and b.

Example 11

challenge
Define f1(x)=xx+1 and fn+1=f1∘fn. Find a closed form for fn(x).

Example 12

hard
Given f(x)=x and g(x)=x2+5, find the domain of (f∘g)(x).

Example 13

hard
Find a function g with (g∘g)(x)=4x+3, assuming g is linear.

Example 14

medium
If f(x)=x+a and g(x)=x+b, find (f∘g)(x).

Example 15

medium
Express h(x)=(3x−7)4 as f∘g.

Example 16

medium
If f(x)=x+1 and g(x)=x2, find (f∘g)(x) and (g∘f)(x).

Example 17

medium
If h(x)=(x+3)2, write h as f∘g.

Example 18

medium
If f(x)=1x and g(x)=x−2, find the domain of (f∘g)(x).

Example 19

medium
Given f(x)=x+3 and g(x)=2x2−1, find the formula for (g∘f)(x).

Example 20

easy
If f(x)=x2 and g(x)=x+3, find (f∘g)(1).