PrepGo

AP PreCalculus Practice Quiz: Composition of Functions

Written by AP Content Team, Verified for 2026 AP Exams, Last updated: May 2026

Test your understanding with short quizzes. This quiz has 16 questions to check your progress.

Question 1 of 16

Given the functions f(x) = 3x + 2 and g(x) = x^2, what is the value of (f ◦ g)(4)?

All Questions (16)

Given the functions f(x) = 3x + 2 and g(x) = x^2, what is the value of (f ◦ g)(4)?

A) 196

B) 50

C) 26

D) 14

Correct Answer: B

To evaluate (f ◦ g)(4), first calculate g(4), which is 4^2 = 16. Then, use this output as the input for f: f(16) = 3(16) + 2 = 48 + 2 = 50. This follows the principle of evaluating the composition of two functions for a given value.

Let f(x) = 5x - 1 and g(x) = 2x. Which of the following is the analytic representation of the composite function (f ◦ g)(x)?

A) 10x - 1

B) 10x - 2

C) 7x - 1

D) 10x^2 - 2x

Correct Answer: A

To construct the representation of f(g(x)), we substitute the expression for g(x) into every instance of x in f(x). So, f(g(x)) = f(2x) = 5(2x) - 1 = 10x - 1.

Which statement best describes the process of mapping input values to output values for the composite function f ◦ g?

A) The input values of f are used as output values for g.

B) The output values of f are used as input values for g.

C) The output values of g are used as input values for f.

D) The input values of f and g are added together.

Correct Answer: C

The definition of a composite function f ◦ g states that it maps a set of input values to a set of output values such that the output values of g are used as input values of f.

Given f(x) = x + 3 and g(x) = 4x, which of the following correctly demonstrates that function composition is not commutative?

A) (f ◦ g)(x) = 4x + 3 and (g ◦ f)(x) = 4x + 12

B) (f ◦ g)(x) = 4x + 3 and (g ◦ f)(x) = 4x + 3

C) (f ◦ g)(x) = 5x + 3 and (g ◦ f)(x) = 5x + 12

D) Function composition is always commutative.

Correct Answer: A

(f ◦ g)(x) = f(g(x)) = f(4x) = 4x + 3. (g ◦ f)(x) = g(f(x)) = g(x+3) = 4(x+3) = 4x + 12. Since 4x + 3 ≠ 4x + 12, this shows that f ◦ g and g ◦ f are different functions.

The function h(x) = (2x - 5)^3 can be rewritten as a composition of two simpler functions, f(x) and g(x), such that h(x) = f(g(x)). Which of the following is a possible choice for f(x) and g(x)?

A) f(x) = 2x - 5 and g(x) = x^3

B) f(x) = x^3 and g(x) = 2x - 5

C) f(x) = x - 5 and g(x) = (2x)^3

D) f(x) = 2x^3 and g(x) = x - 5

Correct Answer: B

To decompose h(x), we identify an 'inner' function g(x) and an 'outer' function f(x). Here, the inner function is g(x) = 2x - 5. The outer function takes this input and cubes it, so f(x) = x^3. Then f(g(x)) = f(2x - 5) = (2x - 5)^3.

Let g(x) = √x + 7. If f(x) = x is the identity function, what is the resulting composite function (f ◦ g)(x)?

A) x

B) x + 7

C) √x + 7

D) (√x + 7)x

Correct Answer: C

When the identity function f(x) = x is composed with any function g, the resulting composite function is the same as g. Therefore, (f ◦ g)(x) = f(g(x)) = g(x) = √x + 7.

If f(x) = 1/(x-2) and g(x) = x+1, what is the analytic representation of (f ◦ g)(x)?

A) 1/x

B) 1/(x-1)

C) (x+1)/(x-2)

D) x-1

Correct Answer: B

To find f(g(x)), we substitute the entire expression for g(x) into x in the function f(x). This gives f(g(x)) = f(x+1) = 1/((x+1) - 2) = 1/(x-1).

The function h(x) = √(x^2 + 9) can be decomposed into two less complicated functions f(x) and g(x). Which of the following is a valid decomposition where h(x) = f(g(x))?

A) f(x) = √x and g(x) = x^2 + 9

B) f(x) = x^2 + 9 and g(x) = √x

C) f(x) = √(x+9) and g(x) = x^2

D) f(x) = x^2 and g(x) = √(x+9)

Correct Answer: A

Functions can often be decomposed into less complicated functions. For h(x) = √(x^2 + 9), the 'inner' operation is squaring x and adding 9, so g(x) = x^2 + 9. The 'outer' operation is taking the square root, so f(x) = √x. This gives f(g(x)) = f(x^2 + 9) = √(x^2 + 9).

Given f(x) = 2x, g(x) = x - 5, and h(x) = x^2, evaluate (g ◦ f ◦ h)(-3).

A) 13

B) 1

C) -11

D) 61

Correct Answer: A

This is a composition of three functions. We evaluate from the inside out. First, h(-3) = (-3)^2 = 9. Next, we use this result in f: f(9) = 2(9) = 18. Finally, we use this result in g: g(18) = 18 - 5 = 13.

If (g ◦ f)(x) = g(x) for any function g(x), what must the function f(x) be?

A) f(x) = 0

B) f(x) = 1

C) f(x) = g(x)

D) f(x) = x

Correct Answer: D

The expression (g ◦ f)(x) means g(f(x)). If g(f(x)) = g(x), it implies that the input to g, which is f(x), must be equal to x. Therefore, f(x) must be the identity function, f(x) = x.

Let f(x) = x^2 - 4 and g(x) = 3x. What is the value of (g ◦ f)(1)?

A) -9

B) -3

C) 5

D) 9

Correct Answer: A

To evaluate (g ◦ f)(1), we first find the value of the inner function, f(1). f(1) = 1^2 - 4 = -3. Then, we use this output as the input for the outer function, g: g(-3) = 3(-3) = -9.

Let f(x) = 2x / (x-1) and g(x) = 3x. Construct a representation for (f ◦ g)(x).

A) 6x / (3x-1)

B) 6x / (x-1)

C) 2x / (3x-1)

D) 6x / (3x-3)

Correct Answer: A

To construct f(g(x)), we substitute g(x) = 3x for every instance of x in f(x). This gives f(3x) = 2(3x) / ((3x)-1) = 6x / (3x-1).

The function h(x) = 4(x^2+1)^5 can be decomposed as h(x) = f(g(x)). Which of the following is a valid decomposition?

A) f(x) = 4x and g(x) = (x^2+1)^5

B) f(x) = 4x^5 and g(x) = x^2+1

C) f(x) = (x^2+1)^5 and g(x) = 4x

D) f(x) = 4x^5 and g(x) = x+1

Correct Answer: B

We need to find an inner function g(x) and an outer function f(x). The expression x^2+1 is inside the parentheses, making it a good candidate for the inner function, so g(x) = x^2+1. The outer function then takes this input, raises it to the 5th power, and multiplies by 4. Thus, f(x) = 4x^5. Checking: f(g(x)) = f(x^2+1) = 4(x^2+1)^5.

Which statement best summarizes the non-commutative property of function composition?

A) f ◦ g and g ◦ f always produce the same function.

B) f ◦ g and g ◦ f are typically different functions.

C) The order of composition does not affect the domain of the function.

D) Composing a function with itself, f ◦ f, is not possible.

Correct Answer: B

The provided content explicitly states that the composition of functions is not commutative; that is, f ◦ g and g ◦ f are typically different functions. The order in which the functions are composed matters.

Given f(x) = x^2 + 2x and g(x) = x - 1, find the representation of (g ◦ f)(x).

A) x^2 + 2x - 1

B) (x-1)^2 + 2(x-1)

C) x^2 - 1

D) x^2 + 4x + 3

Correct Answer: A

To find (g ◦ f)(x), which is g(f(x)), we substitute the expression for f(x) into the variable x in g(x). So, g(f(x)) = g(x^2 + 2x) = (x^2 + 2x) - 1 = x^2 + 2x - 1.

According to the provided content, what is the primary method for constructing an analytic representation of f(g(x))?

A) Multiplying the expressions for f(x) and g(x).

B) Finding the average of the output values of f(x) and g(x).

C) Substituting g(x) for every instance of x in f(x).

D) Graphing both functions and finding their intersection.

Correct Answer: C

The content states: 'When analytic representations of the functions f and g are available, an analytic representation of f(g(x)) can be constructed by substituting g(x) for every instance of x in f.' This is the direct procedure for finding the composite function's formula.