0:00 / 0:00

Composition of Functions

Functions can be combined through composition.


Let f(x)f(x) and g(x)g(x) be two continuous functions defined on the interval (,)(-\infin,\infin).
  • The composition of 2 functions, f(x)f(x) and g(x)g(x), can be expressed as f(x)g(x)=f(g(x))\boxed{f(x)\circ{}g(x)=f\big(g(x)\big)}.
  • It is read as "ff of gg of xx" or "ff composed of g(x)g(x)".
  • Substitute all values of xx in the function f(x)f(x) with the function g(x)g(x).
Wize Tip
Both functions must be defined at a point for the combination to be defined.

PAGE BREAK

Example

Let f(x)=x22x+1f(x)=x^2-2x+1 and g(x)=x+1g(x)=x+1. Find:
  1. f(x)g(x)f(x)\circ{}g(x)
  2. g(x)f(x)g(x)\circ{}f(x)
1.f(x)g(x)=f(g(x))=f(x+1)=(x+1)22(x+1)+1=(x2+x+1)2x2+1=x2x2.g(x)f(x)=g(f(x))=g(x22x+1)=(x22x+1)+1=x22x+2\begin{array}{rrcl} 1.&f(x)\circ{}g(x)&=&f\big(g(x)\big)\\\\ &&=&f\big(x+1\big)\\\\ &&=&(x+1)^2-2(x+1)+1\\\\ &&=&(x^2+x+1)-2x-2+1\\\\ &&=&x^2-x\\\\\\ 2.&g(x)\circ{}f(x)&=&g\big(f(x)\big)\\\\ &&=&g\big(x^2-2x+1\big)\\\\ &&=&(x^2-2x+1)+1\\\\ &&=&x^2-2x+2 \end{array}

0:00 / 0:00

Example: Composition of Functions

Let f(x)=x6f(x)=x-6 and g(x)=x2+x+4g(x)=x^2+x+4. Determine:
  1. f(g(x))f(g(x))
  2. g(f(x))g(f(x))
  3. f(g(0))f(g(0))

Part a.

f(g(x))=(x2+x+4)6=x2+x2=(x+2)(x1)\begin{array}{rcl} f(g(x))&=&(x^2+x+4)-6\\\\ &=&x^2+x-2\\\\ &=&(x+2)(x-1) \end{array}

Part b.

g(f(x))=(x6)2+(x6)+4=(x212x+36)+x2=x211x+34\begin{array}{rcl} g(f(x))&=&(x-6)^2+(x-6)+4\\\\ &=&(x^2-12x+36)+x-2\\\\ &=&x^2-11x+34 \end{array}

Part c.

f(g(0))=f(02+0+4)=f(4)=46=2\begin{array}{rcl} f(g(0))&=&f(0^2+0+4)\\\\ &=&f(4)\\\\ &=&4-6\\\\ &=&-2 \end{array}

Practice: Composition of Functions

Let f(x)=1x2f(x)=\dfrac{1}{x-2} and g(x)=1xg(x)=\dfrac{1}{x}. Determine the following:

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:
  1. Using the 20%20\% discount first then the $10\$10 coupon?
  2. Using the $10\$10 coupon first then the 20%20\% discount?


Practice: Composition of Functions

Let f=3g1f=3g-1, g=4h+6g=4h+6, and h=9x+10h=9x+10. What is f(x)?f(x)?
Extra Practice