Oftentimes, we do multiple sequential mathematical operations when we're doing our scratch-work. For instance, we might do a multiplication, and then do a subtraction, using "equals" signs as we go — even though the logic isn't correct.
Content Continues Below
We often do this when we're working vertically, such as the following:
Affiliate
Advertisement
Strictly speaking, the above was correct until I did the subtraction; 120×27 (at the beginning) is not equal to 1840 (at the end). I should have done the subtraction as its own step:
If you've done the first sort of computation and your instructor said that this wasn't right, that you had to show each step separately— Well, your instructor was correct, in the sense that you were putting "equals" signs between things that weren't actually equal. But, if you think about it a different way, you were kind-of composing functions.
How so? If we look at the computations as a sequence of operations to be applied to some given input, then the above could be viewed as f (x) = 27x and g(x) = x − 1400, with the input value being x = 120. And the sequence of steps could have been done as a function composition; namely, as (g ∘ f )(120)
Composition of functions, as a process at least, is used by people every day in real life. Composition of functions allows us to do many computations in a row; when working on real-life things like taxes, one often does many computations in a row. Thus, many of the steps for filing one's taxes may be viewed as representing the composition of functions. For instance, instructions for some section may say something like this:
Take the value from line 31. Multiply by 0.03. Subtract 10,500 from this value. Write down this amount or, if this amount is less than zero, write down zero.
If we label the original "value from line 31" as x, then the multiplication could be viewed as being f (x) = 0.03x. The subtracting could be g(x) = x − 10,500. Then the last step would be something like h(x) = max(x, 0). The tax computation, from beginning to end, could be viewed as the following composition:
h(g(f(x)))
So composition of functions can be implicit in everyday life. As a result, you may be given "real life" word problems involving composition. For these exercises, you'll need to think about what's going on, the order in which things are being done, and therefore the way in which the modelling functions need to be composed.
Well, (f ∘ g)(x) = f (g(x)) would mean that I would take my sales x, subtract off the $5000 that didn't get the commission, and then multiply whatever is left by 3%.
On the other hand, (g ∘ f )(x) = g(f (x)) would mean that I would take my sales x, multiply by 3%, and then subtract $5000 from the result. Not only is this not how the commission is calculator, this could land me in negative numbers! Would I owe money back to my boss...?
So (f ∘ g)(x) is the compostion that does what I need it to do.
(f ∘ g)(x) represents my commission.
If you're not sure how the formulas are working, try plugging in numbers that you *can* understand, and pay attention to what you do with those numbers. The formula you need will represent the same process as whatever you did. In the case of the commission formula above, you could test the following sales values (all above the minimum for commissions):
For each sales value, I first subtracted $5000 to see how much was getting a commission. Then I multiplied this amount by 3% to find out how much commission I was getting. By looking at this pattern, I could see that I should apply the "subtract five thousand" formula first, and apply the "multiply by three percent" formula last. This matches f (g(x)) = (f ∘ g)(x), which confirms my earlier answer.
Content Continues Below
This sort of calculation actually comes up in "real life", and is used for programming the cash registers. And this is why there is a separate button on the register for delivery fees and why they're not rung up as just another purchase.
(i) The taxes are 7.5%, so the tax function is given by t(x) = 1.075x
The delivery fee is fixed, so the purchase amount is irrelevant. No matter the total of items and taxes, the fee is always going to be "twenty bucks added at the end".
The fee function is given by f (x) = x + 20
(ii) Composing, I get this:
(f ∘ t)(x) = f (t(x))
= f (1.075x)
= 1.075x + 20
(t ∘ f )(x) = t(f (x))
= t(x + 20)
= 1.075(x + 20)
= 1.075x + 21.50
Then I would pay more using (t ∘ f )(x), because I would be paying taxes (from the t(x) formula) on the delivery fee (the "+20" in the formula for f (x)). I would prefer that the delivery fee be tacked on after the taxes, because:
(f ∘ t)(x) results in a lower cost to me.
(iii) If the state is not allowed to collect taxes on delivery fees, then:
The function to use is (f ∘ t)(x).
Affiliate
Since the circle's leading edge covers ten inches in four seconds, the radius is growing at a rate of (10 inches)/(4 seconds) = 2.5 inches per second. Then the equation of the radius r, as a function of time t, is:
r(t) = 2.5t
The formula for the area A of a circle, as a function of the radius r, is given by:
A(r) = πr2
Then the circle's area, as a function of time, is found by plugging the radius equation into the area equation, and simplifying the composition:
A(t) = (A ∘ r)(t) = A(r(t))
= A(2.5t)
= π(2.5t)2
= π(6.25t2)
= 6.25πt2
Then the function they're looking for, stating the area A as a function of the time t, is:
A(t) = 6.25πt2
URL: https://www.purplemath.com/modules/fcncomp5.htm
© 2024 Purplemath, Inc. All right reserved. Web Design by