Constructing Composite Functions (College Board AP® Precalculus): Revision Note

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 space f and g are available

    • You can construct an analytical representation of space f left parenthesis g left parenthesis x right parenthesis right parenthesis

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

  • To do this

    • Start by writing out the expression for space f left parenthesis x right parenthesis

    • Then replace every x in that expression with the entire expression for g left parenthesis x right parenthesis

    • Finally, simplify the resulting expression

  • E.g. if space f left parenthesis x right parenthesis equals 3 x plus 1 and g(x) = x^2 - 4

    • Write out the expression for space f open parentheses x close parentheses

      • space f left parenthesis x right parenthesis equals 3 x plus 1

    • Substitute the expression for g open parentheses x close parentheses everywhere that x appears

      • space f left parenthesis g left parenthesis x right parenthesis right parenthesis equals 3 left parenthesis x squared minus 4 right parenthesis plus 1

    • Expand the brackets and simplify

      • space f left parenthesis g left parenthesis x right parenthesis right parenthesis equals 3 x squared minus 12 plus 1 equals 3 x squared minus 11

  • Be careful to substitute g left parenthesis x right parenthesis for every occurrence of x in space f

    • E.g. if space f left parenthesis x right parenthesis equals x squared plus 2 x and g(x) = x - 3

      • space f left parenthesis g left parenthesis x right parenthesis right parenthesis equals left parenthesis x minus 3 right parenthesis squared plus 2 left parenthesis x minus 3 right parenthesis equals x squared minus 6 x plus 9 plus 2 x minus 6 equals x squared minus 4 x plus 3

    • Both the x^2 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 f \circ g can often be constructed by calculating pairs of values left parenthesis x comma space f left parenthesis g left parenthesis x right parenthesis right parenthesis right parenthesis

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

    • Record the pairs left parenthesis x comma space f left parenthesis g left parenthesis x right parenthesis right parenthesis right parenthesis to build a table for the composite function

  • A graphical representation of f \circ g can be constructed similarly

    • For selected input values x, calculate or estimate space f left parenthesis g left parenthesis x right parenthesis right parenthesis

    • Plot the resulting points left parenthesis x comma space f left parenthesis g left parenthesis x right parenthesis right parenthesis right parenthesis

    • 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 space f left parenthesis g left parenthesis x right parenthesis right parenthesis 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 space f is given by space f open parentheses x close parentheses equals x squared minus 2, and the function g is given by g open parentheses x close parentheses equals fraction numerator open parentheses x plus 1 close parentheses over denominator x end fraction. Which of the following is an expression for space f open parentheses g open parentheses x close parentheses close parentheses?

(A)  fraction numerator x cubed plus x squared minus 2 x minus 2 over denominator x end fraction

(B)  fraction numerator x squared minus 1 over denominator x squared minus 2 end fraction

(C)  fraction numerator 1 plus 2 x minus x squared over denominator x squared end fraction

(D)  fraction numerator 1 minus x squared over denominator x squared end fraction

Answer:

To find space f open parentheses g open parentheses x close parentheses close parentheses, substitute the expression for g open parentheses x close parentheses everywhere that x appears in the expression for space f open parentheses x close parentheses

space f open parentheses g open parentheses x close parentheses close parentheses equals open parentheses fraction numerator open parentheses x plus 1 close parentheses over denominator x end fraction close parentheses squared minus 2

Expand the brackets

equals open parentheses x plus 1 close parentheses squared over x squared minus 2
equals fraction numerator x squared plus 2 x plus 1 over denominator x squared end fraction minus 2

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

equals fraction numerator x squared plus 2 x plus 1 over denominator x squared end fraction minus fraction numerator 2 x squared over denominator x squared end fraction
equals fraction numerator x squared plus 2 x plus 1 minus 2 x squared over denominator x squared end fraction
equals fraction numerator 2 x plus 1 minus x squared over denominator x squared end fraction
equals fraction numerator 1 plus 2 x minus x squared over denominator x squared end fraction

That is option C

(C)  fraction numerator 1 plus 2 x minus x squared over denominator x squared end fraction

Unlock more, it's free!

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

the (exam) results speak for themselves:

Roger B

Author: Roger B

Expertise: Maths Content Creator

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.