Decomposing Functions (College Board AP® Precalculus): Revision Note

Roger B

Written by: Roger B

Reviewed by: Mark Curtis

Updated on

Decomposing functions

What does it mean to decompose a function?

  • Functions given analytically can often be decomposed (broken down) into less complicated functions

    • This means rewriting a single function

      • as the composition of two or more simpler functions

    • E.g. the function h(x) = (2x + 1)^3 can be decomposed as

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

        • where space f left parenthesis x right parenthesis equals x cubed

        • and g(x) = 2x + 1

  • You can check a decomposition is correct by substituting the inner function back into the outer function

    • If every x in the outer function gets replaced by the entire inner function

      • then the result should match the original

    • In the example above

      • space f left parenthesis x right parenthesis equals x cubed and g(x) = 2x + 1

      • so space f left parenthesis g left parenthesis x right parenthesis right parenthesis equals left parenthesis 2 x plus 1 right parenthesis cubed

      • this matches h(x)

How do you find a decomposition?

  • Look for a structure where one operation is applied to the result of another

    • Start by identifying an "inner" part of the expression

      • this becomes g(x)

    • To find the outer function space f

      • Take the original expression and swap out every instance of the inner part for a plain bold italic x

      • What remains is space f left parenthesis x right parenthesis

  • E.g. decompose h left parenthesis x right parenthesis equals square root of x squared minus 5 end root

    • The inner part is x^2 - 5

      • so let g left parenthesis x right parenthesis equals x squared minus 5

    • The outer operation is taking the square root

      • so let space f left parenthesis x right parenthesis equals square root of x

    • Then h(x) = f(g(x)) = \sqrt{x^2 - 5}

  • Decompositions are not unique

    • The same function can sometimes be decomposed in different ways

    • E.g. h(x) = (x + 3)^2 + 5 could be decomposed as space f left parenthesis g left parenthesis x right parenthesis right parenthesis

      • with space f left parenthesis x right parenthesis equals x squared plus 5 and g(x) = x + 3

      • or with space f left parenthesis x right parenthesis equals x plus 5 and g(x) = (x + 3)^2

  • Vertical and horizontal translations of a function space f correspond to additive transformations

    • These can be understood as compositions of space f with bold italic g bold left parenthesis bold italic x bold right parenthesis bold equals bold italic x bold plus bold italic k

      • space f open parentheses g open parentheses x close parentheses close parentheses equals f open parentheses x plus k close parentheses

        • That is a horizontal translation by k units (to the left if k is positive, to the right if k is negative)

      • g open parentheses f open parentheses x close parentheses close parentheses equals f open parentheses x close parentheses plus k

        • That is a vertical translation up by k units (up if k is positive, down if k is negative)

  • Vertical and horizontal dilations of a function space f correspond to multiplicative transformations

    • These can be understood as compositions of space f with bold italic g bold left parenthesis bold italic x bold right parenthesis bold equals bold italic k bold italic x

      • space f open parentheses g open parentheses x close parentheses close parentheses equals f open parentheses k x close parentheses

        • That is a horizontal dilation by a factor of 1 over k

      • g open parentheses f open parentheses x close parentheses close parentheses equals k f open parentheses x close parentheses space

        • That is a vertical dilation by a factor of k

  • This means that every transformation you have studied can be thought of as a composition of functions

Worked Example

The function h is given by h left parenthesis x right parenthesis equals 3 left parenthesis x plus 4 right parenthesis squared minus 7.

(a) Write h(x) as a composition h(x) = p(q(x)), where q is a linear function. Identify space p left parenthesis x right parenthesis and q(x).

Answer:

The linear inner part of the expression is x + 4

  • so that should be q open parentheses x close parentheses

To find space p open parentheses x close parentheses replace x plus 4 with plain x everywhere that it appears in h open parentheses x close parentheses

Let q left parenthesis x right parenthesis equals x plus 4 and space p left parenthesis x right parenthesis equals 3 x squared minus 7

Then space p left parenthesis q left parenthesis x right parenthesis right parenthesis equals 3 left parenthesis x plus 4 right parenthesis squared minus 7 equals h left parenthesis x right parenthesis

(b) Describe the graph of h as a transformation of the graph of space p.

Answer:

space p has been composed with q open parentheses x close parentheses equals x plus 4

  • space p open parentheses q open parentheses x close parentheses close parentheses equals p open parentheses x plus 4 close parentheses

  • That is an additive transformation of space p open parentheses x close parentheses, corresponding to a horizontal translation

The graph of h is a horizontal translation of
the graph of space p open parentheses x close parentheses by 4 units to the left

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.