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))(f \circ g)(x) = f(g(x)), meaning evaluate gg first, then apply ff to the result.

Chain two machines togetherβ€”output of the first goes into the second.

Showing a random 20 of 50 problems.

Example 1

easy
If f(x)=x+7f(x)=x+7 and g(x)=2xβˆ’1g(x)=2x-1, find (f∘g)(x)(f\circ g)(x).

Example 2

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

Example 3

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

Example 4

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

Example 5

medium
If f(x)=2x+5f(x)=2x+5 and g(x)=x2βˆ’4g(x)=x^2-4, find (f∘g)(x)(f\circ g)(x).

Example 6

medium
If f(x)=x2+xf(x)=x^2+x and g(x)=xβˆ’1g(x)=x-1, find (f∘g)(x)(f\circ g)(x) simplified.

Example 7

medium
If f(x)=x2f(x)=x^2 and g(x)=x+1g(x)=x+1, evaluate (f∘g∘f)(2)(f\circ g\circ f)(2).

Example 8

medium
Express h(x)=2x+5h(x)=\sqrt{2x+5} as a composition f∘gf\circ g with simple f,gf,g.

Example 9

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

Example 10

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

Example 11

challenge
Define f1(x)=xx+1f_1(x)=\frac{x}{x+1} and fn+1=f1∘fnf_{n+1}=f_1\circ f_n. Find a closed form for fn(x)f_n(x).

Example 12

hard
Given f(x)=xf(x) = \sqrt{x} and g(x)=x2+5g(x) = x^2 + 5, find the domain of (f∘g)(x)(f \circ g)(x).

Example 13

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

Example 14

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

Example 15

medium
Express h(x)=(3xβˆ’7)4h(x)=(3x-7)^4 as f∘gf\circ g.

Example 16

medium
If f(x)=x+1f(x)=x+1 and g(x)=x2g(x)=x^2, find (f∘g)(x)(f\circ g)(x) and (g∘f)(x)(g\circ f)(x).

Example 17

medium
If h(x)=(x+3)2h(x)=(x+3)^2, write hh as f∘gf\circ g.

Example 18

medium
If f(x)=1xf(x)=\frac{1}{x} and g(x)=xβˆ’2g(x)=x-2, find the domain of (f∘g)(x)(f\circ g)(x).

Example 19

medium
Given f(x)=x+3f(x) = x + 3 and g(x)=2x2βˆ’1g(x) = 2x^2 - 1, find the formula for (g∘f)(x)(g \circ f)(x).

Example 20

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