Wize High School Grade 12 Pre-Calculus Textbook > Combination of Functions
Composition of Functions

Composition of Functions
Functions can be combined through composition.
Let f(x) and g(x) be two continuous functions defined on the interval (−∞,∞).
- The composition of 2 functions, f(x) and g(x), can be expressed as f(x)∘g(x)=f(g(x)).
- It is read as "f of g of x" or "f composed of g(x)".
- Substitute all values of x in the function f(x) with the function g(x).
PAGE BREAK
Example
Let f(x)=x2−2x+1 and g(x)=x+1. Find:
- f(x)∘g(x)
- g(x)∘f(x)
1.2.f(x)∘g(x)g(x)∘f(x)=========f(g(x))f(x+1)(x+1)2−2(x+1)+1(x2+x+1)−2x−2+1x2−xg(f(x))g(x2−2x+1)(x2−2x+1)+1x2−2x+2

Example: Composition of Functions
Let f(x)=x−6 and g(x)=x2+x+4. Determine:
- f(g(x))
- g(f(x))
- f(g(0))
Part a.
f(g(x))===(x2+x+4)−6x2+x−2(x+2)(x−1)
Part b.
g(f(x))===(x−6)2+(x−6)+4(x2−12x+36)+x−2x2−11x+34
Part c.
f(g(0))====f(02+0+4)f(4)4−6−2
Practice: Composition of Functions
Franziska is shopping with her girlfriends at Eaton Center. She is in a store that is offering a 20% discount storewide. She also has a coupon for $10 off her purchase. The store allows you to use them in any order.
Which is the better deal:
- Using the 20% discount first then the $10 coupon?
- Using the $10 coupon first then the 20% discount?
Practice: Composition of Functions
Let f=3g−1, g=4h+6, and h=9x+10. What is f(x)?