top of page

Precalculus Lesson 1.3: Composition of Functions

12th Grade Math · Chapter 1: Functions · Common Core F-BF.A.1

What is in the full lesson (16 activities)

Every item below opens free in the course.

A free Precalculus lesson for grade 12 students from OBA School: Composition of Functions, aligned with the Common Core State Standards (CCSS F-BF.A.1). Watch the video, read the explanation and worked examples, then try the practice questions. The full lesson in our free online Precalculus course adds more videos, interactive activities, a self-checking quiz and printable worksheets.

What you will learn

  • Evaluate composite functions such as fg(3), gf(3) and f²(3)
  • Find and simplify expressions for fg(x) and gf(x)
  • Solve equations involving composite functions
  • Decide when a composite function exists and find its domain and range
  • Find one function when a composite and the other function are known

Key words

  • Composite function: A function formed by applying one function to the output of another: fg(x) = f(g(x)).
  • Order: In fg(x) the function written nearer to x, here g, is applied first.
  • f²(x): Shorthand for ff(x) = f(f(x)). It is not [f(x)]².
  • Domain of a composite: The inputs of g whose outputs are allowed inputs of f.

Evaluating composite functions

fg(x) means "do g, then do f". Work from the inside out.

Worked example: numbers in, numbers out

f(x) = x² − 3 and g(x) = 2x + 1, both with domain ℝ. Find fg(2), gf(2) and f²(1).
fg(2) = f(5) = 25 − 3 = 22
gf(2) = g(1) = 3
f²(1) = f(f(1)) = f(−2) = 4 − 3 = 1

Answer: fg(2) = 22, gf(2) = 3, f²(1) = 1. The order matters: fg(2) ≠ gf(2).

Finding expressions for composites

To find fg(x), take the rule for f and replace every x by the whole of g(x), in parentheses.

Worked example: a reciprocal and a linear function

f(x) = 1/(x + 2), x ≠ −2, and g(x) = 3x − 1, x ∈ ℝ. Find fg(x) and gf(x).
fg(x) = 1/((3x − 1) + 2) = 1/(3x + 1), which needs x ≠ −1/3.
gf(x) = 3(1/(x + 2)) − 1 = (3 − (x + 2))/(x + 2) = (1 − x)/(x + 2)

Answer: fg(x) = 1/(3x + 1), gf(x) = (1 − x)/(x + 2)

Solving equations with composites

Worked example: a composite equal to a number

With f(x) = x² − 3 and g(x) = 2x + 1, solve fg(x) = 11, giving exact answers.
(2x + 1)² − 3 = 11, so (2x + 1)² = 14, so 2x + 1 = ±√14.

Answer: x = (−1 ± √14)/2

Worked example: solving ff(x) = x

h(x) = 3x − 4. Solve hh(x) = x.
hh(x) = 3(3x − 4) − 4 = 9x − 16. Then 9x − 16 = x, so 8x = 16.

Answer: x = 2. Check: h(2) = 2, so hh(2) = 2.

When does a composite exist? Domain and range

fg(x) only makes sense when the output of g is an allowed input for f. To find the range of fg, find the range of g first, then apply f to that set.

Worked example: restricting the domain

f(x) = ln x, x > 0, and g(x) = x² − 4x, x ∈ ℝ. Find the largest domain on which fg exists.
fg(x) = ln (x² − 4x) needs x² − 4x > 0, so x(x − 4) > 0.

Answer: x < 0 or x > 4. For example g(1) = −3 is not in the domain of f.

Worked example: the range of a composite

f(x) = eˣ and g(x) = x² + 1, both with domain ℝ. Find the range of fg.
Range of g: g(x) ≥ 1. Then f is increasing, so f of these values is at least e¹.

Answer: fg(x) = exp(x² + 1) ≥ e

Finding an unknown function

Worked example: finding g from fg

f(x) = 2x + 3 and fg(x) = 6x² − 1. Find g(x).
fg(x) = 2g(x) + 3 = 6x² − 1, so 2g(x) = 6x² − 4.

Answer: g(x) = 3x² − 2. Check: 2(3x² − 2) + 3 = 6x² − 1.

Common mistakes

  • Applying the functions in the wrong order: in fg(x), g acts first.
  • Multiplying instead of composing: fg(x) is not f(x) × g(x).
  • Reading f²(x) as [f(x)]². It means f(f(x)).
  • Leaving out parentheses: with f(x) = x² − 3 and g(x) = 2x + 1, fg(x) = (2x + 1)² − 3, not 2x + 1² − 3.
  • Forgetting to check that the outputs of the first function are allowed inputs of the second.

Revision questions

Try these, then check your answers below each one.

Question 1. f(x) = 3x − 1 and g(x) = x² + 3. Find fg(2).

Answer: 20

Working: g(2) = 7, then f(7) = 20.

Question 2. f(x) = 3x − 1 and g(x) = x² + 3. Find gf(2).

Answer: 28

Working: f(2) = 5, then g(5) = 28. Notice that gf(2) ≠ fg(2).

Question 3. f(x) = 3x − 1 and g(x) = x² + 3. Find fg(x). (Choose from: 3x² + 8; (3x − 1)² + 3; 3x² + 2; 3x³ − x² + 9x − 3.)

Answer: 3x² + 8

Working: fg(x) = 3(x² + 3) − 1 = 3x² + 8. The second option is gf(x) and the last is the product f(x)g(x).

Common Core standard

This lesson supports Common Core State Standard CCSS.MATH.CONTENT.HSF.BF.A.1, part of the high school Precalculus course usually taken in Grade 12 in the United States.

Related lessons

Continue in the full course

This lesson is section 1.3 (USPC0103) of our free Precalculus course for Grade 12. In the full course you get every video for this section, interactive lessons, a self-checking practice quiz, printable worksheets with an answer key, and your progress saved. Go to the full Precalculus course.

This lesson is part of the free Precalculus course. You can also browse all our free US high school math courses: Algebra 1, Geometry, Algebra 2 and Precalculus.

 

 

 

 

 

 

 

Previous
Next
bottom of page