Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Statistics LibreTexts

3.9: Function Composition

( \newcommand{\kernel}{\mathrm{null}\,}\)

The following graphic is once again from the OER textbook Business Calculus by Calaway, Hoffman and Lippman, 2013 and is used with permission (Creative Commons Attribution 3.0 United States License).

clipboard_ef44f8b2a672a0c527c65c7dcb7f25b19.png Figure 4.9.1

The notation f(g(x)) and g(f(x)) may be easier to understand than using the composition operator. For f(g(x)), think of wrapping a package. The gift is put into the box (the gift is g(x), the box is f(x)) and the wrapped present, f(x), contains the gift g(x).

Example 4.9.1

If f(x)=x22 and g(x)=x, find:

  1. f(g(x)) and the domain of the composite function
  2. g(f(x)) and the domain of the composite function
Solution
  1. The composition of functions, f(g(x)) is:

f(g(x)) Function composition, f of g of xf(x) Replace g(x) with x(x)22 In the function f(x), every x is replaced with g(x)=xx2f(g(x)), answer simplified.

The domain of the composite function contains the restrictions of the domain of the inner function, as well as the restrictions of the composite function.

The domain of the inner function, g(x)=x is that x must be nonnegative, or in interval notation [0,)

The domain of the composite function, x2 is all real numbers, (,)

Therefore, the domain of f(g(x)) is [0,).

  1. The composition of functions, g(f(x)) is:

g(f(x)) Function composition, g of f of xg(x22) Replace f(x) with x22x22 In the function g(x), every x is replaced with f(x)=x22x22g(f(x)), answer simplified. 

The domain of the composite function contains the restrictions of the domain of the inner function, as well as the composite function.

The domain of the inner function, f(x)=x22 is all real numbers, or in interval notation (,)

The domain of the composite function, x22 is that the quantity x22 must be nonnegative, or x220.

Solving x220 for x, x2 and x2. In interval notation, (,2][2,)

Therefore, the domain of the composite function, g(f(x)) is the more restrictive domain, (,2][2,).

Example 4.9.2

If f(x)=1x4 and g(x)=5x+4, find:

  1. f(g(x)) and the domain of the composite function
  2. g(f(x)) and the domain of the composite function
Solution
  1. The composition of functions, f(g(x)) is:

f(g(x)) Function composition, f of g of xf(5x+4) Replace g(x) with 5x+41(5x+4)4 In the function f(x), every x is replaced with g(x)=5x+415x Simplifyx5f(g(x)), answer simplified. 

The domain of the composite function contains the restrictions of the domain of the inner function, as well as the restrictions of the composite function.

The domain of the inner function, g(x)=5x+4 is all values of x such that x must not be 0, or in interval notation (,0)(0,)

The domain of the composite function, x5 is all real numbers, (,) Therefore, the domain of f(g(x)) is (,0)(0,)

  1. The composition of functions, g(f(x)) is

g(f(x))Function composition, g of f of xg(1x4)Replace f(x) with 1x451x4+4In the function g(x), every x is replaced with f(x)=1x45(x4)+4 Simplify the fraction5x20+4 Simplify more5x16g(f(x)), answer simplified.

The domain of the composite function contains the restrictions of the domain of the inner function, as well as the composite function.

The domain of the inner function, f(x)=1x4 is that x4, or in interval notation (,4)(4,)

The domain of the composite function, 5x16 is all real numbers, (,).

Therefore, the domain of the composite function, g(f(x)) is the more restrictive domain, (,4)(4,).

Exercise 4.9.1

For the given functions, find both f(g(x)) and g(f(x)), and find the domain of the composite function.

  1. f(x)=3x2+x10, g(x)=120x
  2. f(x)=3x2, g(x)=13x+23
  3. f(x)=4x1, g(x)=6+7x
  4. f(x)=5x+2, g(x)=x214x
  5. f(x)=x22x+1, g(x)=83x2
  6. f(x)=x2+3, g(x)=5+x2

This page titled 3.9: Function Composition is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Victoria Dominguez, Cristian Martinez, & Sanaa Saykali (ASCCC Open Educational Resources Initiative) .

  • Was this article helpful?

Support Center

How can we help?