Constructing Composite Functions (College Board AP® Precalculus): Study Guide

Roger B

Written by: Roger B

Reviewed by: Mark Curtis

Updated on

Constructing composite functions

Why is function composition useful?

  • A composition of functions can be used to relate two quantities that are not directly related by an existing formula

  • E.g. if one function relates time to temperature

    • and another relates temperature to pressure

    • then composing them gives a function that relates time to pressure directly

How do I construct a composite function analytically?

  • When analytical (formula) representations of the functions  f and g are available

    • You can construct an analytical representation of  f(g(x))

    • by substituting g(x) for every instance of x in the formula for  f

  • To do this

    • Start by writing out the expression for  f(x)

    • Then replace every x in that expression with the entire expression for g(x)

    • Finally, simplify the resulting expression

  • E.g. if  f(x)=3x+1 and g(x)=x24

    • Write out the expression for  f(x)

      •  f(x)=3x+1

    • Substitute the expression for g(x) everywhere that x appears

      •  f(g(x))=3(x24)+1

    • Expand the brackets and simplify

      •  f(g(x))=3x212+1=3x211

  • Be careful to substitute g(x) for every occurrence of x in  f

    • E.g. if  f(x)=x2+2x and g(x)=x3

      •  f(g(x))=(x3)2+2(x3)=x26x+9+2x6=x24x+3

    • Both the x2 and 2x terms required substitution

Examiner Tips and Tricks

When constructing f(g(x)) analytically, a common error is to only substitute g(x) into one instance of x in f, while leaving other instances unchanged. Make sure you replace every x in f with g(x).

After substituting, simplify carefully, especially when fractions or squared expressions are involved. Show your working step by step to avoid algebraic errors.

How do you construct a composite function numerically or graphically?

  • A numerical representation (table) of fg can often be constructed by calculating pairs of values (x, f(g(x)))

    • I.e. for each input x, find g(x), then find  f at that value

    • Record the pairs (x, f(g(x))) to build a table for the composite function

  • A graphical representation of fg can be constructed similarly

    • For selected input values x, calculate or estimate  f(g(x))

    • Plot the resulting points (x, f(g(x)))

    • Connect or sketch the graph based on the plotted points

  • These approaches are especially useful when one or both functions are given as tables or graphs rather than formulas

Examiner Tips and Tricks

Remember that  f(g(x)) and g(f(x)) are generally different expressions. Always check which function is the outer function and which is the inner function.

Worked Example

The function  f is given by  f(x)=x22, and the function g is given by g(x)=(x+1)x. Which of the following is an expression for  f(g(x))?

(A)  x3+x22x2x

(B)  x21x22

(C)  1+2xx2x2

(D)  1x2x2

Answer:

To find  f(g(x)), substitute the expression for g(x) everywhere that x appears in the expression for  f(x)

 f(g(x))=((x+1)x)22

Expand the brackets

=(x+1)2x22=x2+2x+1x22

Write 2 as an equivalent fraction over x2, then combine the two fractions

=x2+2x+1x22x2x2=x2+2x+12x2x2=2x+1x2x2=1+2xx2x2

That is option C

(C)  1+2xx2x2

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Build on this topic

Roger B

Author: Roger B

Expertise: Development Editor

Roger's teaching experience stretches all the way back to 1992, and in that time he has taught students at all levels between Year 7 and university undergraduate. Having conducted and published postgraduate research into the mathematical theory behind quantum computing, he is more than confident in dealing with mathematics at any level the exam boards might throw at you.

Mark Curtis

Reviewer: Mark Curtis

Expertise: Maths Content Creator

Mark graduated twice from the University of Oxford: once in 2009 with a First in Mathematics, then again in 2013 with a PhD (DPhil) in Mathematics. He has had nine successful years as a secondary school teacher, specialising in A-Level Further Maths and running extension classes for Oxbridge Maths applicants. Alongside his teaching, he has written five internal textbooks, introduced new spiralling school curriculums and trained other Maths teachers through outreach programmes.