Algebra 2 · Grades 10, 11

Combining Functions: Sums, Quotients and Composition

Quick answer

Many models are built from simpler functions. Profit is revenue minus cost. A cooling cup of coffee is a constant room temperature plus a shrinking exponential. Average cost is total cost divided by the number made. And when one quantity depends on a second that depends on a third, composing the two functions gives the chain in a single rule.

What you'll learn

  • Add, subtract, multiply and divide functions and evaluate the results
  • Build a model by combining a constant, linear or exponential function
  • Compose two functions and interpret the composition in context

Building a model from pieces

A school club sells T-shirts for 1212 dollars each. Printing costs a 500500-dollar setup fee plus 44 dollars a shirt.

R(x)=12xC(x)=500+4xR(x) = 12x \qquad C(x) = 500 + 4x

Profit is what revenue leaves after cost, so the profit function is the difference of the two:

P(x)=R(x)−C(x)=12x−(500+4x)=8x−500P(x) = R(x) - C(x) = 12x - (500 + 4x) = 8x - 500

The club breaks even when P(x)=0P(x) = 0, at x=62.5x = 62.5, so it needs to sell 6363 shirts to come out ahead.

Functions combine the way numbers do, one input at a time:

CombinationRule
sum(f+g)(x)=f(x)+g(x)(f + g)(x) = f(x) + g(x)
difference(f−g)(x)=f(x)−g(x)(f - g)(x) = f(x) - g(x)
product(f⋅g)(x)=f(x)⋅g(x)(f \cdot g)(x) = f(x) \cdot g(x)
quotient(fg)(x)=f(x)g(x)\left(\tfrac{f}{g}\right)(x) = \tfrac{f(x)}{g(x)}, where g(x)≠0g(x) \ne 0

A cooling cup of coffee

Coffee poured at 180°180°F sits in a 70°70°F room. It cools fast at first and then more slowly, and it never drops below the temperature of the room.

The model is a sum of two familiar functions:

T(t)=70+110(0.9)tT(t) = 70 + 110(0.9)^t

The 7070 is a constant function, the room temperature. The 110(0.9)t110(0.9)^t is a decaying exponential: the coffee starts 110110 degrees above the room, and each minute that excess shrinks by 10%10\%.

Temperature of coffee cooling in a 70°F room A curve starting at 180 degrees and falling quickly, then more slowly, flattening toward a dashed horizontal line at 70 degrees. 1020304050100150200xy (0, 180)
  • T(t), °F
  • room, 70°F
Temperature of coffee cooling in a 70°F room
tt (minutes)0055101020203030
T(t)T(t) (°F)180180135.0135.0108.4108.483.483.474.774.7

Why adding functions adds their graphs

(f+g)(x)(f + g)(x) is defined one input at a time: at each xx, take the height of one graph and the height of the other and add them. So the graph of the sum is the two graphs stacked, point by point.

That is exactly what the coffee graph shows. The decaying exponential 110(0.9)t110(0.9)^t on its own heads toward 00. Adding the constant 7070 lifts every point of it by 7070, so the combined curve heads toward 7070 instead.

Each part of the model has one job, and it can be read off:

PartJobShows up as
7070the roomthe level the curve approaches
110110the starting excessT(0)−70T(0) - 70
0.90.9the cooling rate10%10\% of the excess lost per minute

Building a model this way makes every number in it mean something. A single formula found by curve-fitting might match the data as well, but it would not say why the coffee stops at 7070.

A quotient: average cost

The club’s cost per shirt is total cost divided by the number of shirts:

A(x)=C(x)x=500+4xx=500x+4A(x) = \frac{C(x)}{x} = \frac{500 + 4x}{x} = \frac{500}{x} + 4
Shirts1010505010010050050010001000
Average cost54.0054.0014.0014.009.009.005.005.004.504.50

The setup fee gets shared among more shirts as xx grows, so the 500x\tfrac{500}{x} part shrinks toward 00 and the average cost falls toward the 44 dollars each shirt costs to print. The quotient excludes x=0x = 0, where no shirts means no average.

Composition: one output feeds the next

Sometimes one quantity depends on a second, which depends on a third.

A weather balloon rises 500500 feet a minute, so its height after tt minutes is h(t)=500th(t) = 500t. The air cools with height; near the ground a good model is T(h)=59−0.0036hT(h) = 59 - 0.0036h degrees Fahrenheit, about 3.6°3.6° per 1,0001{,}000 feet.

To get temperature as a function of time, feed the height into the temperature function:

T(h(t))=59−0.0036(500t)=59−1.8tT(h(t)) = 59 - 0.0036(500t) = 59 - 1.8t

This is a composition, written (T∘h)(t)=T(h(t))(T \circ h)(t) = T(h(t)). Apply hh first, then TT to the result. After 1010 minutes the balloon is at 5,0005{,}000 feet and the air around it is 59−18=41°59 - 18 = 41°F.

Worked examples

Common mistakes

Practice problems

  1. With f(x)=3x+1f(x) = 3x + 1 and g(x)=x2g(x) = x^2, find (f+g)(4)(f + g)(4).

    Answer

    2929

    Full solution

    f(4)=13f(4) = 13 and g(4)=16g(4) = 16, so (f+g)(4)=29(f + g)(4) = 29.

  2. With the same functions, write (f−g)(x)(f - g)(x).

    Answer

    −x2+3x+1-x^2 + 3x + 1

    Full solution

    (3x+1)−x2=−x2+3x+1(3x + 1) - x^2 = -x^2 + 3x + 1.

  3. With the same functions, write (f⋅g)(x)(f \cdot g)(x).

    Answer

    3x3+x23x^3 + x^2

    Full solution

    (3x+1)x2=3x3+x2(3x + 1)x^2 = 3x^3 + x^2.

  4. Revenue is R(x)=20xR(x) = 20x and cost is C(x)=300+5xC(x) = 300 + 5x. Find the break-even point.

    Answer

    x=20x = 20

    Full solution

    P(x)=20x−(300+5x)=15x−300P(x) = 20x - (300 + 5x) = 15x - 300, which is zero at x=20x = 20.

  5. For the coffee model T(t)=70+110(0.9)tT(t) = 70 + 110(0.9)^t, find T(0)T(0) and the temperature the coffee approaches.

    Answer

    180°180°F; it approaches 70°70°F.

    Full solution

    T(0)=70+110(1)=180T(0) = 70 + 110(1) = 180.

    As tt grows, (0.9)t(0.9)^t shrinks toward 00, so T(t)T(t) shrinks toward 7070.

  6. Using A(x)=500x+4A(x) = \tfrac{500}{x} + 4, find the average cost of 250250 shirts.

    Answer

    66 dollars

    Full solution

    500250+4=2+4=6\tfrac{500}{250} + 4 = 2 + 4 = 6.

  7. With f(x)=x−1f(x) = x - 1 and g(x)=x2g(x) = x^2, find f(g(4))f(g(4)) and g(f(4))g(f(4)).

    Answer

    1515 and 99

    Full solution

    g(4)=16g(4) = 16, so f(g(4))=15f(g(4)) = 15.

    f(4)=3f(4) = 3, so g(f(4))=9g(f(4)) = 9.

  8. Using the balloon model T(h(t))=59−1.8tT(h(t)) = 59 - 1.8t, find the air temperature after 2020 minutes, and the balloon’s height then.

    Answer

    23°23°F at 10,00010{,}000 feet.

    Full solution

    h(20)=500(20)=10,000h(20) = 500(20) = 10{,}000 feet.

    T(h(20))=59−1.8(20)=59−36=23°T(h(20)) = 59 - 1.8(20) = 59 - 36 = 23°F.

  9. Soup at 190°190°F is set in a 70°70°F room, and its excess temperature shrinks by 5%5\% a minute. Write a model T(t)T(t).

    Hint

    Separate the room temperature from the excess.

    Answer

    T(t)=70+120(0.95)tT(t) = 70 + 120(0.95)^t

    Full solution

    The room contributes a constant 7070.

    The excess starts at 190−70=120190 - 70 = 120 and keeps 95%95\% of itself each minute, so it is 120(0.95)t120(0.95)^t.

    Adding them: T(t)=70+120(0.95)tT(t) = 70 + 120(0.95)^t. Check: T(0)=190T(0) = 190 ✓

  10. With f(x)=x2f(x) = x^2 and g(x)=x+3g(x) = x + 3, Tom writes f(g(x))=x2+3f(g(x)) = x^2 + 3. Find his error.

    Hint

    Which function acts first in f(g(x))f(g(x))?

    Answer

    He applied ff first. The correct composition is (x+3)2=x2+6x+9(x + 3)^2 = x^2 + 6x + 9.

    Full solution

    In f(g(x))f(g(x)) the inside function acts first. So add 33, then square: f(g(x))=(x+3)2=x2+6x+9f(g(x)) = (x + 3)^2 = x^2 + 6x + 9.

    Tom squared first and then added 33, which is g(f(x))=x2+3g(f(x)) = x^2 + 3 — the composition in the other order.

    A single input shows the difference. At x=1x = 1: f(g(1))=f(4)=16f(g(1)) = f(4) = 16, but Tom’s formula gives 44.

Frequently asked questions

What does (f + g)(x) mean?

The function whose output at x is f(x) + g(x). Evaluate each function at x and add the results.

Why does a cooling drink level off instead of reaching zero?

Its model is room temperature plus a decaying exponential. The exponential part shrinks toward zero, so the total shrinks toward room temperature.

What is function composition?

Using one function's output as another's input. (f ∘ g)(x) = f(g(x)): apply g first, then f.

Does the order of composition matter?

Usually. With f(x) = x + 5 and g(x) = 2x, f(g(3)) = 11 but g(f(3)) = 16.

Can any two functions be divided?

Yes, except where the bottom function is zero. Those inputs are excluded from the domain of the quotient.

What to learn next

Standards alignment

This lesson covers the following Common Core State Standards for Mathematics.