Order changes the result, and units must fit
Picture a store applying a discount and a coupon. A 64-dollar price falls to 48 dollars after 25% off. An 8-dollar coupon then leaves 40 dollars. Reverse the jobs: the coupon leaves 56 dollars, and 25% off that amount leaves 42 dollars. The order changes what the second job receives. Composition can work the same way. Commutative means switching two jobs always preserves the result; composition does not have that property in general. Meaning matters too. If a driving rule gives miles from hours, a fuel rule accepting miles can follow it. The miles fit its input slot, the way a matching key fits a lock.
- Substitution. Replacing x with 3 − x in 2x + 1 gives 2(3 − x) + 1.
- Distribution. 2(3 − x) = 6 − 2x, because 2 multiplies each term.
- Subtracting parentheses. 3 − (2x + 1) = 3 − 2x − 1.
- Composition order. G(m(2)) starts with m(2), then puts that answer into G.
- Function equality. A formula accepting every x differs from the same formula restricted to x ≠ 1.
- Discount fractions. 25% off leaves 75%, so multiply the price by 0.75. At 64 dollars, 0.75 × 64 = 48 dollars.
- Divide a fraction by a whole number. ÷ 2 = × = . Likewise ÷ 8 = .
For a meaningful composition, the inner output must be an acceptable outer input, including its units.
order matters; f after g may differ from g after f
Changing which job happens first can change the next input and the final output.
- f(g(x)) and g(f(x)) are usually different functions
- 2 + 3 = 3 + 2: addition is commutative
- 5 − 2 ≠ 2 − 5: subtraction is not commutative
- hours → miles → gallons
A discount and a coupon act on different intermediate prices when reversed.
The first job sets up the second. Adding a coat after washing an object is a different process from washing after adding the coat.
The inner function hands over a package with a label. If the label says miles, the next function must accept miles. A number alone does not tell you its meaning.
.1Compare both orders
Composition can happen to commute for a particular pair. You still need to check. Two functions can also happen to agree at one input without being equal everywhere.
- One unequal output proves functions differ.
- One equal output does not prove functions equal.
- Function notation. The name chooses a recipe and the parentheses supply its input: f(3) is the f output at input 3.
Compare both orders
Composition can happen to commute for a particular pair. You still need to check. Two functions can also happen to agree at one input without being equal everywhere.
- One unequal output proves functions differ.
- One equal output does not prove functions equal.
Composition can happen to commute for a particular pair. You still need to check. Two functions can also happen to agree at one input without being equal everywhere.
For f(x) = x + 1 and g(x) = , compare both orders at 0 and at 1. You want to test whether one matching answer tells the whole story. Plan: use the quantity or input named in the question, write the first result, then finish the stated operation.
- At 0, f(g(0)) = f(0) = 1 and g(f(0)) = g(1) = 1.Both paths happen to end at 1 for this input.
- At 1, f(g(1)) = f(1) = 2 and g(f(1)) = g(2) = 4.The first stage now sends different numbers to the second stage.
- Use a small test input to catch a difference, then use formulas and domains to establish equality.
.2Interpret a composition with units
Read the composition as a sentence. If s takes minutes and returns sit-ups, and c takes sit-ups and returns calories, c(s(t)) is calories burned during t minutes of sit-ups.
- The inner s output counts sit-ups.
- The outer c output counts calories.
- The input and output letters are placeholders; the units explain their meaning.
- Function notation. The name chooses a recipe and the parentheses supply its input: f(3) is the f output at input 3.
Interpret a composition with units
Read the composition as a sentence. If s takes minutes and returns sit-ups, and c takes sit-ups and returns calories, c(s(t)) is calories burned during t minutes of sit-ups.
- The inner s output counts sit-ups.
- The outer c output counts calories.
- The input and output letters are placeholders; the units explain their meaning.
Read the composition as a sentence. If s takes minutes and returns sit-ups, and c takes sit-ups and returns calories, c(s(t)) is calories burned during t minutes of sit-ups.
Use the illustrative models s(t) = 12t sit-ups and c(n) = calories. Interpret and evaluate c(s(4)). You want the calories assigned by this model to the sit-ups completed in 4 minutes. Plan: use the quantity or input named in the question, write the first result, then finish the stated operation.
- s(4) = 12 × 4 = 48 sit-ups.s accepts minutes and returns the exercise count.
- c(s(4)) = c(48) = = 12 calories.c accepts the count produced by s.
- Interpretation: c(s(4)) is the modeled calories burned in 4 minutes of sit-ups.
- Value: c(s(4)) = 12 calories.
- Read inside to outside, naming each quantity: minutes, sit-ups, calories.
- An interpretation question needs a sentence. A numerical value can be found only when the functions’ rules or values are supplied.
.3Check whether the reverse order makes sense
A numerical formula may accept a number that its application cannot interpret. In the driving story, fuel use must follow distance. Feeding gallons into a driving-time rule gives the wrong kind of input.
- If m accepts hours and returns miles, and G accepts miles and returns gallons, G(m(h)) is meaningful.
- m(G(h)) does not match these units; G cannot start with hours and m cannot take gallons.
- Function notation. The name chooses a recipe and the parentheses supply its input: f(3) is the f output at input 3.
Check whether the reverse order makes sense
A numerical formula may accept a number that its application cannot interpret. In the driving story, fuel use must follow distance. Feeding gallons into a driving-time rule gives the wrong kind of input.
- If m accepts hours and returns miles, and G accepts miles and returns gallons, G(m(h)) is meaningful.
- m(G(h)) does not match these units; G cannot start with hours and m cannot take gallons.
A numerical formula may accept a number that its application cannot interpret. In the driving story, fuel use must follow distance. Feeding gallons into a driving-time rule gives the wrong kind of input.
Let m(h) = 45h miles and G(d) = gallons. Evaluate the meaningful composition at 2 hours and explain the order. You want gallons used for the distance driven in 2 hours. Plan: use the quantity or input named in the question, write the first result, then finish the stated operation.
- m(2) = 45 × 2 = 90 miles.The mileage rule accepts hours.
- G(m(2)) = G(90) = = 3 gallons.The fuel rule accepts miles.
- Reject m(G(h)) as an interpretation for these models.G expects miles rather than hours, and m expects hours rather than G's gallon output.
- G(m(2)) = 3 gallons.
- The order is hours to miles to gallons.
- Write the input and output unit under each function name before deciding which name goes inside.
.4Both orders can be meaningful and can sometimes commute
When two rules both accept and return ordinary real numbers, you can often use either order. The outputs can still differ, as the earlier linear pair showed. Some particular pairs do give equal functions in both orders.
- Both orders can be meaningful when the input and output quantities match.
- A pair that commutes does not make composition commutative in general.
- For f(x) = x + 1 and g(x) = x + 2, both compositions give x + 3 on all real inputs.
- Function notation. The name chooses a recipe and the parentheses supply its input: f(3) is the f output at input 3.
Both orders can be meaningful and can sometimes commute
When two rules both accept and return ordinary real numbers, you can often use either order. The outputs can still differ, as the earlier linear pair showed. Some particular pairs do give equal functions in both orders.
- Both orders can be meaningful when the input and output quantities match.
- A pair that commutes does not make composition commutative in general.
- For f(x) = x + 1 and g(x) = x + 2, both compositions give x + 3 on all real inputs.
When two rules both accept and return ordinary real numbers, you can often use either order. The outputs can still differ, as the earlier linear pair showed. Some particular pairs do give equal functions in both orders.
Let f(x) = x + 1 and g(x) = x + 2, both with all real inputs. Find both compositions and compare them. You want to see a case where reversing two connected rules gives the same complete function. Plan: use the quantity or input named in the question, write the first result, then finish the stated operation.
- f(g(x)) = f(x + 2) = (x + 2) + 1 = x + 3.g adds 2 first, then f adds 1.
- g(f(x)) = g(x + 1) = (x + 1) + 2 = x + 3.f adds 1 first, then g adds 2.
- Both composite domains are all real numbers.Both component rules accept every real intermediate answer.
- Functions with the same input and output units can permit both orders without giving equal answers.
.5Distance to force to acceleration
A distance rule can return a force, and a force rule can return an acceleration. Acceleration measures how quickly speed or direction changes. To find acceleration from distance, hand the distance rule's force output to the acceleration rule. In this model, G names the force rule, F names its force input to a, and r names distance. The letters are labels for their quantities.
- For the scaled practice model below, the meaningful order is a(G(r)).
- The units pass from distance to force to acceleration.
- a(G(r)) means the modeled acceleration of a planet at distance r from the sun.
- Function notation. The name chooses a recipe and the parentheses supply its input: f(3) is the f output at input 3.
Distance to force to acceleration
A distance rule can return a force, and a force rule can return an acceleration. Acceleration measures how quickly speed or direction changes. To find acceleration from distance, hand the distance rule's force output to the acceleration rule. In this model, G names the force rule, F names its force input to a, and r names distance. The letters are labels for their quantities.
- For the scaled practice model below, the meaningful order is a(G(r)).
- The units pass from distance to force to acceleration.
- a(G(r)) means the modeled acceleration of a planet at distance r from the sun.
A distance rule can return a force, and a force rule can return an acceleration. Acceleration measures how quickly speed or direction changes. To find acceleration from distance, hand the distance rule's force output to the acceleration rule. In this model, G names the force rule, F names its force input to a, and r names distance. The letters are labels for their quantities.
In an invented scaled model, G(r) = force units for r > 0 distance units, and a(F) = acceleration units for F ≥ 0 force units. Interpret and evaluate a(G(4)). You want acceleration obtained from the force at distance 4. Plan: use the quantity or input named in the question, write the first result, then finish the stated operation.
- G(4) = = = 6 force units.The distance input goes into the inner force model first.
- a(G(4)) = a(6) = = acceleration units.The outer model accepts the force output and divides it by 8.
- The reverse connection does not match the stated quantity labels.G expects distance, not the acceleration returned by a.
- a(G(4)) = acceleration units.
- It means the modeled acceleration at distance 4.
- Read the input and output names before manipulating an application formula.
.6A price example makes order visible
A percentage reduction changes with the price it receives. A coupon removes a fixed amount. This is why moving the coupon earlier changes the later percentage savings. Compare the numeric prices first, then write the two formulas.
- On starting prices x ≥ 11 dollars, both composed prices are nonnegative and both store instructions make sense.
- The reverse order in this example costs 2 dollars more.
- Function notation. The name chooses a recipe and the parentheses supply its input: f(3) is the f output at input 3.
A price example makes order visible
A percentage reduction changes with the price it receives. A coupon removes a fixed amount. This is why moving the coupon earlier changes the later percentage savings. Compare the numeric prices first, then write the two formulas.
- On starting prices x ≥ 11 dollars, both composed prices are nonnegative and both store instructions make sense.
- The reverse order in this example costs 2 dollars more.
A percentage reduction changes with the price it receives. A coupon removes a fixed amount. This is why moving the coupon earlier changes the later percentage savings. Compare the numeric prices first, then write the two formulas.
Let d(x) = 0.75x apply 25% off a price, and c(x) = x − 8 apply an 8-dollar coupon. Compare c(d(64)) and d(c(64)), then find both formulas. You want the price in each order. Plan: keep a separate line for each discount or coupon.
- d(64) = 0.75 × 64 = 48; c(48) = 48 − 8 = 40.The percentage discount comes first in c(d(64)); the coupon acts on its remaining price.
- c(64) = 64 − 8 = 56; d(56) = 0.75 × 56 = 42.In the reverse order, the percentage discount acts on the price after the coupon.
- c(d(x)) = 0.75x − 8; d(c(x)) = 0.75(x − 8) = 0.75x − 6.Substitute the whole inner price; distribution gives 0.75 × 8 = 6.
- Discount then coupon: 40 dollars.
- Coupon then discount: 42 dollars.
- c(d(x)) = 0.75x − 8.
- d(c(x)) = 0.75x − 6.
- Write the current price after each instruction. Do not apply both instructions separately to the original price.
.7Interpret a word-only composition
You can explain a composition even when no numerical formulas are given. Each function’s description tells you the kind of input and output. Follow those descriptions as you would follow labels on packages. The outside function names the final quantity.
- Interpret means state what the expression measures in words.
- A quantity description by itself does not supply a numerical rate.
- Function notation. The name chooses a recipe and the parentheses supply its input: f(3) is the f output at input 3.
Interpret a word-only composition
You can explain a composition even when no numerical formulas are given. Each function’s description tells you the kind of input and output. Follow those descriptions as you would follow labels on packages. The outside function names the final quantity.
- Interpret means state what the expression measures in words.
- A quantity description by itself does not supply a numerical rate.
You can explain a composition even when no numerical formulas are given. Each function’s description tells you the kind of input and output. Follow those descriptions as you would follow labels on packages. The outside function names the final quantity.
(a) Let f(x) = 3x − 4 and g(x) = . Find f(g(x)) and g(f(x)), give the domain of each, and decide whether they are the same function. (b) A hose fills a pool at a steady rate, so after t minutes the pool holds V(t) = 12t gallons. The water company charges W(v) = 0.005v dollars for v gallons. Decide which composition, W(V(t)) or V(W(t)), is meaningful. Find a formula for the meaningful one and evaluate it at t = 50. Label every quantity with its units.
- For f(g(x)), the inner function is g, because g acts on x first. For g(f(x)), the inner function is f.In a composition the function written closest to x is applied first. Its output becomes the input of the outer function.
- f(g(x)) = f() = 3 − 4. The domain is x ≥ 0.Replace x in f with . The inner root needs x ≥ 0, and f accepts any real number, so no further restriction is added.
- g(f(x)) = g(3x − 4) = . The domain needs 3x − 4 ≥ 0, so x ≥ .Replace x in g with 3x − 4. A square root needs a non-negative input, so the inner output must be at least 0.
- Test x = 4, which is in both domains: f(g(4)) = 3·2 − 4 = 2, and g(f(4)) = ≈ 2.83. The values are 2 and , which differ.One allowed input that gives different outputs proves the two functions are different. The domains also differ, [0, ∞) against , ∞), which is a second reason.
- In part (b), label the units. V takes t in minutes and returns gallons. W takes v in gallons and returns dollars.A composition makes sense only when the inner output is an acceptable input for the outer function, units included.
- W(V(t)): the starting input is t minutes, the intermediate output V(t) is in gallons, and the final output W is in dollars. Gallons is exactly what W expects, so this order is meaningful.The intermediate unit (gallons) matches W's input unit (gallons).
- V(W(t)) would feed W's output, which is in dollars, into V, which expects minutes. This order is not meaningful.The intermediate unit (dollars) does not match V's input unit (minutes). The formula can be written, but it does not describe anything real.
- W(V(t)) = 0.005(12t) = 0.06t dollars. At t = 50: V(50) = 600 gallons, so W(600) = 0.005·600 = 3 dollars.Substitute the inner formula into the outer one, then evaluate. The result is the cost of the water after t minutes.
Work to write
- f(g(x)) = 3 − 4, domain x ≥ 0
- g(f(x)) = , domain x ≥
- At x = 4: f(g(4)) = 2 and g(f(4)) = , so f(g(x)) ≠ g(f(x))
- t (minutes) → V(t) (gallons) → W(V(t)) (dollars); gallons matches W's input
- V(W(t)) is not meaningful: dollars cannot be input as minutes
- W(V(t)) = 0.06t dollars
- W(V(50)) = W(600) = 3 dollars
(a) f(g(x)) = 3 − 4 with domain x ≥ 0. g(f(x)) = with domain x ≥ . They are not the same function, since at x = 4 they give 2 and . (b) W(V(t)) is the meaningful composition. W(V(t)) = 0.06t dollars, and W(V(50)) = 3 dollars, so 50 minutes of filling costs $3. V(W(t)) is not meaningful, because it would feed dollars into a function that expects minutes.
- Answer template: starting input, inner quantity, final outer quantity.
.8Units alone choose an order
No speed or fuel formula is needed to choose the meaningful order. The matching labels decide the connection, like matching a plug to its socket. Here hours enter f and miles leave it; those miles fit g, whose final output measures gallons.
- For these definitions, g(f(x)) is meaningful.
- Bare-number substitution does not prove that an applied interpretation matches its units.
- Function notation. The name chooses a recipe and the parentheses supply its input: f(3) is the f output at input 3.
Units alone choose an order
No speed or fuel formula is needed to choose the meaningful order. The matching labels decide the connection, like matching a plug to its socket. Here hours enter f and miles leave it; those miles fit g, whose final output measures gallons.
- For these definitions, g(f(x)) is meaningful.
- Bare-number substitution does not prove that an applied interpretation matches its units.
No speed or fuel formula is needed to choose the meaningful order. The matching labels decide the connection, like matching a plug to its socket. Here hours enter f and miles leave it; those miles fit g, whose final output measures gallons.
f(x) gives miles driven in x hours, and g(y) gives gallons used for driving y miles. Which is meaningful: f(g(y)) or g(f(x))? You want the order whose handoff has the unit the second rule expects. Plan: label each input and output before choosing an order.
- f: hours → miles; g: miles → gallons.Each description names its input and output quantity.
- Choose g(f(x)): f(x) supplies miles, which g accepts.The quantity passed between functions matches.
- Reject f(g(y)): g(y) supplies gallons, while f needs hours.Gallons cannot fill the time slot in these definitions.
- g(f(x)) is meaningful: gallons used for the miles driven in x hours.
- f(g(y)) does not match these quantity definitions.
- Write hours → miles and miles → gallons, then join the repeated unit.
.9Evaluate asks for output; solve asks for input
Two questions can use the same machines while searching in opposite directions. Evaluate supplies a starting input and asks what comes out. Solve supplies a desired output and asks which starting input gets there. The equation records that desired output, like finding how long a trip must take to reach a chosen destination.
- Evaluate c(s(4)) means start with time 4 and find calories.
- Solve c(s(t)) = 45 means start with desired calories 45 and find time t.
- Function notation. The name chooses a recipe and the parentheses supply its input: f(3) is the f output at input 3.
Evaluate asks for output; solve asks for input
Two questions can use the same machines while searching in opposite directions. Evaluate supplies a starting input and asks what comes out. Solve supplies a desired output and asks which starting input gets there. The equation records that desired output, like finding how long a trip must take to reach a chosen destination.
- Evaluate c(s(4)) means start with time 4 and find calories.
- Solve c(s(t)) = 45 means start with desired calories 45 and find time t.
Two questions can use the same machines while searching in opposite directions. Evaluate supplies a starting input and asks what comes out. Solve supplies a desired output and asks which starting input gets there. The equation records that desired output, like finding how long a trip must take to reach a chosen destination.
In an invented practice model, s(t) = 18t sit-ups and c(n) = calories. How many minutes give c(s(t)) = 45 calories? You are given the output 45 and must find the input time. Plan: form the combined formula, set it equal to the requested output, solve for time, then check both original functions.
- c(s(t)) = c(18t) = = 3t.s supplies the whole exercise count to c, and 18 ÷ 6 = 3.
- Solve 3t = 45. Divide both sides by 3: t = 15.This locates the starting time whose final calorie output is 45; division undoes multiplication by 3.
- Check s(15) = 18 × 15 = 270 sit-ups, then c(270) = = 45 calories.The proposed time must produce the requested final output in the original two-stage calculation.
- Given input: evaluate. Given output and a question asking when or which input: solve.
.10A fresh interpretation to copy as a pattern
A printer first turns time into a page count. Ink use then depends on that count. This is the same handoff idea with different quantities, so you can rebuild the interpretation by reading labels rather than memorizing one story.
- w(p(t)) describes grams of ink used during t minutes of printing.
- Function notation. The name chooses a recipe and the parentheses supply its input: f(3) is the f output at input 3.
A fresh interpretation to copy as a pattern
A printer first turns time into a page count. Ink use then depends on that count. This is the same handoff idea with different quantities, so you can rebuild the interpretation by reading labels rather than memorizing one story.
- w(p(t)) describes grams of ink used during t minutes of printing.
A printer first turns time into a page count. Ink use then depends on that count. This is the same handoff idea with different quantities, so you can rebuild the interpretation by reading labels rather than memorizing one story.
p(t) counts pages printed in t minutes, and w(n) counts grams of ink used for n pages. Interpret w(p(10)) and explain why p(w(10)) does not match these definitions. You want a sentence about quantities. Plan: read each expression from the inside outward.
- p(10) counts pages printed in 10 minutes.p accepts minutes and returns pages.
- w(p(10)) counts the grams of ink used for those pages.w accepts pages and returns grams.
- p(w(10)) would hand grams of ink to p, which needs minutes.The output of w cannot fill p’s time input slot under the stated definitions.
- w(p(10)) means grams of ink used in 10 minutes of printing.
- p(w(10)) does not match the stated quantity labels.
- The outside function names the final quantity in your answer.
- 1. For each order, identify the function nearest the original input.
- 2. Evaluate or substitute that inner function into the other function.
- 3. Compare the resulting formulas and their domains. A different answer at one allowed input proves the functions differ.
- 4. For an application, label the starting input, intermediate output, and final output with units.
- 5. Check that the intermediate unit matches the outer function's expected input unit.
Choose an order and compare it
- Write each function as its input quantity → its output quantity. A unit is a named measure such as hours or miles.
- Start with the function accepting the given input quantity; put it inside the other name.
- Pass its output to a function accepting that output quantity.
- For pure-number functions, calculate both formulas and their domains. One different output proves they differ; equality requires the same outputs everywhere and the same domain.
(a) Let f(x) = 2x + 5 and g(x) = . Find f(g(x)) and g(f(x)). Decide whether they are the same function. (b) A delivery van drives at a steady speed, so the distance it covers in t hours is D(t) = 60t miles. The van uses fuel according to G(d) = gallons for d miles driven. Find the meaningful composition that gives gallons used after t hours, and evaluate it at t = 3. Explain why the other order, D(G(d)), is not meaningful.
- For f(g(x)), the inner function is g, because it acts on x first. For g(f(x)), the inner function is f.In a composition, the function written nearest the input is applied first.
- Substitute g(x) = into f: f(g(x)) = 2() + 5 = 2 + 5.f doubles its input and adds 5, and here its input is .
- Substitute f(x) = 2x + 5 into g: g(f(x)) = (2x + 5 = 4 + 20x + 25.g squares its input, and here its input is the whole expression 2x + 5.
- Compare the two results at x = 1. f(g(1)) = 2(1) + 5 = 7 and g(f(1)) = (7 = 49. Both functions have domain all real numbers.A single allowed input that gives different outputs proves the functions are different.
- In part (b), label the units. For D, the input t is in hours and the output is in miles. For G, the input d is in miles and the output is in gallons.A composition is meaningful only if the inner output can be used as the outer input.
- Use the order G(D(t)). The chain is t hours → D(t) miles → G(D(t)) gallons. So G(D(t)) = = 2t gallons.D gives miles, and miles is the unit G expects as its input.
- Evaluate at t = 3. D(3) = 60(3) = 180 miles, and G(180) = = 6 gallons.First find the intermediate output, then feed it into the outer function.
- Check the order D(G(d)). G(d) gives gallons, but D expects an input in hours.The intermediate unit (gallons) does not match the input unit D expects (hours), so this composition has no real-world meaning.
Work to write
- f(g(x)) = 2 + 5
- g(f(x)) = (2x + 5 = 4 + 20x + 25
- f(g(1)) = 7 ≠ 49 = g(f(1)), so f∘g ≠ g∘f
- t (hours) → D(t) (miles) → G(D(t)) (gallons)
- G(D(t)) = = 2t
- G(D(3)) = 6 gallons
- D(G(d)) is not meaningful: G outputs gallons, but D needs hours
(a) f(g(x)) = 2 + 5 and g(f(x)) = 4 + 20x + 25. They are different functions, since at x = 1 the outputs are 7 and 49. (b) G(D(t)) = 2t gallons, and G(D(3)) = 6 gallons. D(G(d)) is not meaningful because G outputs gallons while D needs hours.
- Write input units above the first arrow and output units above each following arrow.
- Understand, then rebuild: the order from the parentheses or the units. Do not memorize which letter goes first; letters can change.