Learn on PengiSaxon Algebra 2Chapter 6: Lessons 51-60, Investigation 6

Lesson 53: Performing Compositions of Functions

New Concept The composite function $f(g(x))$ uses output values from $g(x)$ as input values for $f(x)$. The composition is written $f(g(x))$ or $(f \circ g)(x)$.

Section 1

πŸ“˜ Performing Compositions of Functions

New Concept

The composite function f(g(x))f(g(x)) uses output values from g(x)g(x) as input values for f(x)f(x). The composition is written f(g(x))f(g(x)) or (f∘g)(x)(f \circ g)(x).

What’s next

Next, you’ll practice building and evaluating these composite functions and see why the order of operations is so critical.

Section 2

Composition of Functions

Property

If f(x)f(x) and g(x)g(x) are functions, the composite function f(g(x))f(g(x)) uses the output values from g(x)g(x) as the input values for f(x)f(x). The composition is written as f(g(x))f(g(x)) or (f∘g)(x)(f \circ g)(x). It models a multi-step process where the output of one function becomes the input for the next.

Let f(x)=4x+3f(x) = 4x+3 and g(x)=x2g(x) = x^2. Then (f∘g)(x)=f(g(x))=f(x2)=4(x2)+3=4x2+3(f \circ g)(x) = f(g(x)) = f(x^2) = 4(x^2) + 3 = 4x^2 + 3.

Let f(x)=xf(x) = \sqrt{x} and g(x)=xβˆ’7g(x) = x-7. Then (f∘g)(x)=f(g(x))=f(xβˆ’7)=xβˆ’7(f \circ g)(x) = f(g(x)) = f(x-7) = \sqrt{x-7}.

Section 3

Evaluating a Composition

Property

To evaluate a composite function like (f∘g)(a)(f \circ g)(a), you can use two methods. Method 1: First calculate g(a)g(a), then use that result as the input for ff. Method 2: First find the general composite function (f∘g)(x)(f \circ g)(x), then substitute x=ax=a into the new function.

Let f(x)=x2+2f(x) = x^2+2 and g(x)=2xg(x)=2x. Find (f∘g)(3)(f \circ g)(3).
Method 1: Find g(3)=2(3)=6g(3) = 2(3) = 6. Then find f(6)=62+2=38f(6) = 6^2 + 2 = 38. So (f∘g)(3)=38(f \circ g)(3) = 38.
Method 2: Find f(g(x))=f(2x)=(2x)2+2=4x2+2f(g(x)) = f(2x) = (2x)^2 + 2 = 4x^2 + 2. Then plug in x=3x=3: 4(3)2+2=384(3)^2 + 2 = 38.

To solve (f∘g)(5)(f \circ g)(5), you can either plug 5 into gg, get a result, and plug that result into ff (a two-step journey). Or, you can first build the mega-function f(g(x))f(g(x)) by mushing them together, and then plug 5 into your powerful new creation. Both paths lead to the same treasure at the end!

Section 4

Composition is not commutative

Property

For most functions f(x)f(x) and g(x)g(x), the order of composition matters. This means that performing f(g(x))f(g(x)) is not the same as performing g(f(x))g(f(x)). In mathematical terms, function composition is not commutative: f(g(x))β‰ g(f(x))f(g(x)) \neq g(f(x)).

Let f(x)=x+5f(x) = x+5 and g(x)=3xg(x) = 3x.
(f∘g)(x)=f(3x)=3x+5(f \circ g)(x) = f(3x) = 3x + 5.
(g∘f)(x)=g(x+5)=3(x+5)=3x+15(g \circ f)(x) = g(x+5) = 3(x+5) = 3x + 15.
Clearly, 3x+5β‰ 3x+153x+5 \neq 3x+15, so (f∘g)(x)β‰ (g∘f)(x)(f \circ g)(x) \neq (g \circ f)(x).

Order is everything! Putting on your socks and then your shoes, s(h(feet))s(h(\text{feet})), is a sensible plan that gets you ready for the day. But what about shoes first, then socks, h(s(feet))h(s(\text{feet}))? That's just a lumpy mess! Function composition is the same way; switching the order of f(x)f(x) and g(x)g(x) will almost always give you a completely different result.

Section 5

Application: Sales and Discounts

Property

Composite functions can model real-world situations involving multiple sequential steps, such as applying several discounts to a price. If a sale discount is represented by s(p)s(p) and an employee discount by d(p)d(p), the final price is found with the composite function d(s(p))d(s(p)), where the sale price becomes the input for the employee discount.

A store offers a 15% discount, s(p)=0.85ps(p)=0.85p. Employees get an additional 50 dollars off, e(p)=pβˆ’50e(p)=p-50. The final price for an employee is e(s(p))=e(0.85p)=0.85pβˆ’50e(s(p)) = e(0.85p) = 0.85p - 50.

Imagine a double discount on a new video game! First, the store applies a sale function, say 20% off. Then, you use a coupon for another 10 dollars off the sale price. We can combine these two steps into one 'super-function' by composing them, c(s(p))c(s(p)), which lets you calculate your amazing final price directly from the original price tag.

Book overview

Jump across lessons in the current chapter without opening the full course modal.

Continue this chapter

Chapter 6: Lessons 51-60, Investigation 6

  1. Lesson 1

    Lesson 51: Using Synthetic Division

  2. Lesson 2

    Lesson 52: Using Two Special Right Triangles

  3. Lesson 3Current

    Lesson 53: Performing Compositions of Functions

  4. Lesson 4

    Lesson 54: Using Linear Programming

  5. Lesson 5

    Lesson 55: Finding Probability

  6. Lesson 6

    Lesson 56: Finding Angles of Rotation

  7. Lesson 7

    Lesson 57: Finding Exponential Growth and Decay

  8. Lesson 8

    Lesson 58: Completing the Square (Exploration: Modeling Completing the Square)

  9. Lesson 9

    Lesson 59: Using Fractional Exponents

  10. Lesson 10

    Lesson 60: Distinguishing Between Mutually Exclusive and Independent Events

  11. Lesson 11

    Investigation 6: Deriving the Quadratic Formula

Lesson overview

Expand to review the lesson summary and core properties.

Expand

Section 1

πŸ“˜ Performing Compositions of Functions

New Concept

The composite function f(g(x))f(g(x)) uses output values from g(x)g(x) as input values for f(x)f(x). The composition is written f(g(x))f(g(x)) or (f∘g)(x)(f \circ g)(x).

What’s next

Next, you’ll practice building and evaluating these composite functions and see why the order of operations is so critical.

Section 2

Composition of Functions

Property

If f(x)f(x) and g(x)g(x) are functions, the composite function f(g(x))f(g(x)) uses the output values from g(x)g(x) as the input values for f(x)f(x). The composition is written as f(g(x))f(g(x)) or (f∘g)(x)(f \circ g)(x). It models a multi-step process where the output of one function becomes the input for the next.

Let f(x)=4x+3f(x) = 4x+3 and g(x)=x2g(x) = x^2. Then (f∘g)(x)=f(g(x))=f(x2)=4(x2)+3=4x2+3(f \circ g)(x) = f(g(x)) = f(x^2) = 4(x^2) + 3 = 4x^2 + 3.

Let f(x)=xf(x) = \sqrt{x} and g(x)=xβˆ’7g(x) = x-7. Then (f∘g)(x)=f(g(x))=f(xβˆ’7)=xβˆ’7(f \circ g)(x) = f(g(x)) = f(x-7) = \sqrt{x-7}.

Section 3

Evaluating a Composition

Property

To evaluate a composite function like (f∘g)(a)(f \circ g)(a), you can use two methods. Method 1: First calculate g(a)g(a), then use that result as the input for ff. Method 2: First find the general composite function (f∘g)(x)(f \circ g)(x), then substitute x=ax=a into the new function.

Let f(x)=x2+2f(x) = x^2+2 and g(x)=2xg(x)=2x. Find (f∘g)(3)(f \circ g)(3).
Method 1: Find g(3)=2(3)=6g(3) = 2(3) = 6. Then find f(6)=62+2=38f(6) = 6^2 + 2 = 38. So (f∘g)(3)=38(f \circ g)(3) = 38.
Method 2: Find f(g(x))=f(2x)=(2x)2+2=4x2+2f(g(x)) = f(2x) = (2x)^2 + 2 = 4x^2 + 2. Then plug in x=3x=3: 4(3)2+2=384(3)^2 + 2 = 38.

To solve (f∘g)(5)(f \circ g)(5), you can either plug 5 into gg, get a result, and plug that result into ff (a two-step journey). Or, you can first build the mega-function f(g(x))f(g(x)) by mushing them together, and then plug 5 into your powerful new creation. Both paths lead to the same treasure at the end!

Section 4

Composition is not commutative

Property

For most functions f(x)f(x) and g(x)g(x), the order of composition matters. This means that performing f(g(x))f(g(x)) is not the same as performing g(f(x))g(f(x)). In mathematical terms, function composition is not commutative: f(g(x))β‰ g(f(x))f(g(x)) \neq g(f(x)).

Let f(x)=x+5f(x) = x+5 and g(x)=3xg(x) = 3x.
(f∘g)(x)=f(3x)=3x+5(f \circ g)(x) = f(3x) = 3x + 5.
(g∘f)(x)=g(x+5)=3(x+5)=3x+15(g \circ f)(x) = g(x+5) = 3(x+5) = 3x + 15.
Clearly, 3x+5β‰ 3x+153x+5 \neq 3x+15, so (f∘g)(x)β‰ (g∘f)(x)(f \circ g)(x) \neq (g \circ f)(x).

Order is everything! Putting on your socks and then your shoes, s(h(feet))s(h(\text{feet})), is a sensible plan that gets you ready for the day. But what about shoes first, then socks, h(s(feet))h(s(\text{feet}))? That's just a lumpy mess! Function composition is the same way; switching the order of f(x)f(x) and g(x)g(x) will almost always give you a completely different result.

Section 5

Application: Sales and Discounts

Property

Composite functions can model real-world situations involving multiple sequential steps, such as applying several discounts to a price. If a sale discount is represented by s(p)s(p) and an employee discount by d(p)d(p), the final price is found with the composite function d(s(p))d(s(p)), where the sale price becomes the input for the employee discount.

A store offers a 15% discount, s(p)=0.85ps(p)=0.85p. Employees get an additional 50 dollars off, e(p)=pβˆ’50e(p)=p-50. The final price for an employee is e(s(p))=e(0.85p)=0.85pβˆ’50e(s(p)) = e(0.85p) = 0.85p - 50.

Imagine a double discount on a new video game! First, the store applies a sale function, say 20% off. Then, you use a coupon for another 10 dollars off the sale price. We can combine these two steps into one 'super-function' by composing them, c(s(p))c(s(p)), which lets you calculate your amazing final price directly from the original price tag.

Book overview

Jump across lessons in the current chapter without opening the full course modal.

Continue this chapter

Chapter 6: Lessons 51-60, Investigation 6

  1. Lesson 1

    Lesson 51: Using Synthetic Division

  2. Lesson 2

    Lesson 52: Using Two Special Right Triangles

  3. Lesson 3Current

    Lesson 53: Performing Compositions of Functions

  4. Lesson 4

    Lesson 54: Using Linear Programming

  5. Lesson 5

    Lesson 55: Finding Probability

  6. Lesson 6

    Lesson 56: Finding Angles of Rotation

  7. Lesson 7

    Lesson 57: Finding Exponential Growth and Decay

  8. Lesson 8

    Lesson 58: Completing the Square (Exploration: Modeling Completing the Square)

  9. Lesson 9

    Lesson 59: Using Fractional Exponents

  10. Lesson 10

    Lesson 60: Distinguishing Between Mutually Exclusive and Independent Events

  11. Lesson 11

    Investigation 6: Deriving the Quadratic Formula