Composition of Functions (College Board AP® Precalculus): Study Guide

Roger B

Written by: Roger B

Reviewed by: Mark Curtis

Updated on

Composite functions

What is a composite function?

  • If space f and space g are functions, the composite function space f ring operator g is a function that

    • maps input values to output values

      • by using the output values of g as input values for space f

    • I.e., the input value is first 'fed into' g

      • then the output from g is 'fed into' space f to find the final output of the composite function

    • (f \circ g)(x) can also be written as space f left parenthesis g left parenthesis x right parenthesis right parenthesis

      • Read this as "space f of g of x"

  • To find the output value of a composite function space f left parenthesis g left parenthesis x right parenthesis right parenthesis for a given input value

    • First find the output of the inner function g at the given input x

      • this gives g(x)

    • Then use that output as the input for the outer function space f

      • this gives space f left parenthesis g left parenthesis x right parenthesis right parenthesis

    • E.g. if space f open parentheses x close parentheses equals 2 x plus 3 and g open parentheses x close parentheses equals x squared minus 1, then to find space f open parentheses g open parentheses 2 close parentheses close parentheses

      • First find g open parentheses 2 close parentheses

        • g open parentheses 2 close parentheses equals 2 squared minus 1 equals 3

      • then input that value into space f

        • space f open parentheses g open parentheses 2 close parentheses close parentheses equals f open parentheses 3 close parentheses equals 2 open parentheses 3 close parentheses plus 3 equals 9

Examiner Tips and Tricks

Be careful with the order of the functions in a composite function. The function on the right acts on the input first.

  • In left parenthesis f ring operator g right parenthesis left parenthesis x right parenthesis equals f open parentheses g open parentheses x close parentheses close parentheses, g acts on the input first, then the output of g is acted upon by space f

  • In left parenthesis g ring operator f right parenthesis left parenthesis x right parenthesis equals g left parenthesis f left parenthesis x right parenthesis right parenthesis, space f acts on the input first, then the output of space f is acted upon by g

What about the domain of a composite function?

  • The domain of the composite function f \circ g is restricted to

    • those input values of g

    • for which the corresponding output value is in the domain of space f

  • If g(x) produces an output that is not in the domain of space f

    • then f(g(x)) is not defined at that input

How do you evaluate a composite function from tables, graphs, or formulas?

  • Values for the composite function f \circ g can be calculated or estimated from graphical, numerical, analytical, or verbal representations of space f and g

  • The process is always the same

    • use output values from g as input values for space f

  • From a table

    • Look up g(x) in the table for g,

      • then look up space f at that value in the table for space f

    • E.g. if a table shows g(2) = 5 and space f left parenthesis 5 right parenthesis equals negative 3

      • then f(g(2)) = f(5) = -3

  • From a graph

    • Read g(x) from the graph of g

      • then use that value as the input on the graph of space f

  • From a formula

    • Substitute the input into g to get a numerical value

      • then substitute that value into space f

  • Mixed representations

    • You may need to use different representations for space f and g

    • E.g. read g(x) from a table, then substitute into an analytical formula for space f

Examiner Tips and Tricks

Mixed representations for composite functions (e.g. one function in a table, the other as a formula) are very common on the AP® Precalculus exam.

If this occurs in a free response question, make sure you show the intermediate step clearly.

  • I.e. write down the value of the inner function before substituting into the outer function

  • This is often required to earn credit for supporting work

Properties of composite functions

Does the order of composition matter?

  • When the order doesn't matter for a mathematical operation, that operation is said to be commutative

    • For example, multiplication is commutative

      • 4 cross times 5 equals 5 cross times 4 equals 20

      • The order in which you multiply two numbers doesn't change the answer

  • The composition of functions is not commutative

    • space f ring operator g and g \circ f are generally different functions

      • So space f left parenthesis g left parenthesis x right parenthesis right parenthesis and g(f(x)) generally have different values

    • E.g. if space f left parenthesis x right parenthesis equals x squared and g(x) = x + 3:

      • space f left parenthesis g left parenthesis 1 right parenthesis right parenthesis equals f left parenthesis 4 right parenthesis equals 16

      • space g left parenthesis f left parenthesis 1 right parenthesis right parenthesis equals g left parenthesis 1 right parenthesis equals 4

      • These are not equal

        • i.e. the order matters

  • Always pay close attention to which function is the inner function and which is the outer function

What is the identity function?

  • The identity function is the function defined by space f left parenthesis x right parenthesis equals x

    • It maps every input to itself

      • the output is always equal to the input

  • When the identity function is composed with any function g

    • g(f(x)) = g(x)

      • and space f left parenthesis g left parenthesis x right parenthesis right parenthesis equals g left parenthesis x right parenthesis

    • In both cases the result is just g

  • The identity function acts in composition the same way that 0 acts in addition and 1 acts in multiplication

    • It leaves the other function unchanged

Worked Example

The table gives values for the functions space p and q at selected values of x. Functions space p and q are defined for all real numbers. Let r be the function defined by r left parenthesis x right parenthesis equals p left parenthesis q left parenthesis x right parenthesis right parenthesis.

x

-3

-2

-1

0

1

2

3

space p left parenthesis x right parenthesis

5

1

-2

3

0

-1

4

space q left parenthesis x right parenthesis

1

3

0

2

-1

-3

-2

What is the value of r(0)?

(A) -2

(B) -1

(C) 2

(D) 3

Answer:

You are looking for the value of

r(0) = p(q(0))

From the table

q(0) = 2

So

r(0) = p(2) = -1

That is option (B)

(B) negative 1

Worked Example

The function space f is decreasing and is defined for all real numbers. The table gives values of space f left parenthesis x right parenthesis at selected values of x.

space x

-2

-1

0

1

2

space f left parenthesis x right parenthesis

18

9

4.5

2.25

1.125

The function g is given by g left parenthesis x right parenthesis equals negative 0.257 x cubed plus 1.6 x squared minus 3.561.

The function h is defined by h(x) = (g \circ f)(x) = g(f(x)). Find the value of h(1) as a decimal approximation, or indicate that it is not defined. Show the work that leads to your answer.

Answer:

You are looking for the value of

h(1) = g(f(1))

From the table

space f left parenthesis 1 right parenthesis equals 2.25

Therefore

table row cell h open parentheses 1 close parentheses end cell equals cell g left parenthesis 2.25 right parenthesis end cell row blank equals cell negative 0.257 open parentheses 2.25 close parentheses cubed plus 1.6 open parentheses 2.25 close parentheses squared minus 3.561 end cell row blank equals cell 1.611609375 end cell end table

Round to 3 decimal places

h open parentheses 1 close parentheses equals 1.612 space space open parentheses 3 space straight d. straight p. close parentheses

Examiner Tips and Tricks

When a question asks you to give an answer as a decimal approximation, remember that that means to give your answer accurate to three decimal places.

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.