Login
📚 Precalculus
Chapters ▾

1.5 Function Arithmetic

In the previous section we used the newly defined function notation to make sense of expressions such as ` f ( x ) + 2 ' and ` 2 f ( x ) ' for a given function f . It would seem natural, then, that functions should have their own arithmetic which is consistent with the arithmetic of real numbers. The following definitions allow us to add, subtract, multiply and divide functions using the arithmetic we already know for real numbers.

Function Arithmetic

Suppose f and g are functions and x is in both the domain of f and the domain of g .1

In other words, to add two functions, we add their outputs; to subtract two functions, we subtract their outputs, and so on. Note that while the formula ( f + g ) ( x ) = f ( x ) + g ( x ) looks suspiciously like some kind of distributive property, it is nothing of the sort; the addition on the left hand side of the equation is function addition, and we are using this equation to define the output of the new function f + g as the sum of the real number outputs from f and g .

Please note the importance of finding the domain of a function before simplifying its expression. In number in Example Example 1 above, had we waited to find the domain of g f until after simplifying, we'd just have the formula 1 2 x 2 to go by, and we would (incorrectly!) state the domain as ( , 0 ) ( 0 , ) , since the other troublesome number, x = 1 3 , was canceled away.2

Next, we turn our attention to the difference quotient of a function.

We will revisit this concept in Section, but for now, we use it as a way to practice function notation and function arithmetic. For reasons which will become clear in Calculus, `simplifying' a difference quotient means rewriting it in a form where the ` h ' in the definition of the difference quotient cancels from the denominator. Once that happens, we consider our work to be done.

As mentioned before, we will revisit difference quotients in Section where we will explain them geometrically. For now, we want to move on to some classic applications of function arithmetic from Economics and for that, we need to think like an entrepreneur.4

Suppose you are a manufacturer making a certain product.5 Let x be the production level, that is, the number of items produced in a given time period. It is customary to let C ( x ) denote the function which calculates the total cost of producing the x items. The quantity C ( 0 ) , which represents the cost of producing no items, is called the fixed cost, and represents the amount of money required to begin production. Associated with the total cost C ( x ) is cost per item, or average cost, denoted C ¯ ( x ) and read ` C -bar' of x . To compute C ¯ ( x ) , we take the total cost C ( x ) and divide by the number of items produced x to get

C ¯ ( x ) = C ( x ) x

On the retail end, we have the price p charged per item. To simplify the dialog and computations in this text, we assume that the number of items sold equals the number of items produced. From a retail perspective, it seems natural to think of the number of items sold, x , as a function of the price charged, p . After all, the retailer can easily adjust the price to sell more product. In the language of functions, x would be the dependent variable and p would be the independent variable or, using function notation, we have a function x ( p ) . While we will adopt this convention later in the text,6 we will hold with tradition at this point and consider the price p as a function of the number of items sold, x . That is, we regard x as the independent variable and p as the dependent variable and speak of the price-demand function, p ( x ) . Hence, p ( x ) returns the price charged per item when x items are produced and sold. Our next function to consider is the revenue function, R ( x ) . The function R ( x ) computes the amount of money collected as a result of selling x items. Since p ( x ) is the price charged per item, we have R ( x ) = x p ( x ) . Finally, the profit function, P ( x ) calculates how much money is earned after the costs are paid. That is, P ( x ) = ( R C ) ( x ) = R ( x ) C ( x ) . We summarize all of these functions below.

Summary of Common Economic Functions

Suppose x represents the quantity of items produced and sold.

It is high time for an example.

Exercises

In Exercises -, use the pair of functions f and g to find the following values if they exist.

  • ( f + g ) ( 2 )
  • ( f g ) ( 1 )
  • ( g f ) ( 1 )
  • ( f g ) ( 1 2 )
  • ( f g ) ( 0 )
  • ( g f ) ( 2 )
  1. f ( x ) = 3 x + 1 and g ( x ) = 4 x
  2. f ( x ) = x 2 and g ( x ) = 2 x + 1
  3. f ( x ) = x 2 x and g ( x ) = 12 x 2
  4. f ( x ) = 2 x 3 and g ( x ) = x 2 2 x 3
  5. f ( x ) = x + 3 and g ( x ) = 2 x 1
  6. f ( x ) = 4 x and g ( x ) = x + 2
  7. f ( x ) = 2 x and g ( x ) = 1 2 x + 1
  8. f ( x ) = x 2 and g ( x ) = 3 2 x 3
  9. f ( x ) = x 2 and g ( x ) = 1 x 2
  10. f ( x ) = x 2 + 1 and g ( x ) = 1 x 2 + 1

In Exercises -, use the pair of functions f and g to find the domain of the indicated function then find and simplify an expression for it.

  • ( f + g ) ( x )
  • ( f g ) ( x )
  • ( f g ) ( x )
  • ( f g ) ( x )
  • f ( x ) = 2 x + 1 and g ( x ) = x 2
  • f ( x ) = 1 4 x and g ( x ) = 2 x 1
  • f ( x ) = x 2 and g ( x ) = 3 x 1
  • f ( x ) = x 2 x and g ( x ) = 7 x
  • f ( x ) = x 2 4 and g ( x ) = 3 x + 6
  • f ( x ) = x 2 + x + 6 and g ( x ) = x 2 9
  • f ( x ) = x 2 and g ( x ) = 2 x
  • f ( x ) = x 1 and g ( x ) = 1 x 1
  • f ( x ) = x and g ( x ) = x + 1
  • f ( x ) = x 5 and g ( x ) = f ( x ) = x 5
  • f ( x ) = 2 x 5
  • f ( x ) = 3 x + 5
  • f ( x ) = 6
  • f ( x ) = 3 x 2 x
  • f ( x ) = x 2 + 2 x 1
  • f ( x ) = 4 x 2
  • f ( x ) = x x 2
  • f ( x ) = x 3 + 1
  • f ( x ) = m x + b where m 0
  • f ( x ) = a x 2 + b x + c where a 0
  • f ( x ) = 2 x
  • f ( x ) = 3 1 x
  • f ( x ) = 1 x 2
  • f ( x ) = 2 x + 5
  • f ( x ) = 1 4 x 3
  • f ( x ) = 3 x x + 1
  • f ( x ) = x x 9
  • f ( x ) = x 2 2 x + 1
  • f ( x ) = x 9
  • f ( x ) = 2 x + 1
  • f ( x ) = 4 x + 5
  • f ( x ) = 4 x
  • f ( x ) = a x + b , where a 0 .
  • f ( x ) = x x
  • f ( x ) = x 3 . HINT: ( a b ) ( a 2 + a b + b 2 ) = a 3 b 3

In Exercises -, find and simplify the difference quotient f ( x + h ) f ( x ) h for the given function.

In Exercises -, C ( x ) denotes the cost to produce x items and p ( x ) denotes the price-demand function in the given economic scenario. In each Exercise, do the following:

  • Find and interpret C ( 0 ) .
  • Find and interpret C ¯ ( 10 ) .
  • Find and interpret p ( 5 )
  • Find and simplify R ( x ) .
  • Find and simplify P ( x ) .
  • Solve P ( x ) = 0 and interpret.
  • The cost, in dollars, to produce x “I'd rather be a Sasquatch” T-Shirts is C ( x ) = 2 x + 26 , x 0 and the price-demand function, in dollars per shirt, is p ( x ) = 30 2 x , 0 x 15 .
  • The cost, in dollars, to produce x bottles of 100 % All-Natural Certified Free-Trade Organic Sasquatch Tonic is C ( x ) = 10 x + 100 , x 0 and the price-demand function, in dollars per bottle, is p ( x ) = 35 x , 0 x 35 .
  • The cost, in cents, to produce x cups of Mountain Thunder Lemonade at Junior's Lemonade Stand is C ( x ) = 18 x + 240 , x 0 and the price-demand function, in cents per cup, is p ( x ) = 90 3 x , 0 x 30 .
  • The daily cost, in dollars, to produce x Sasquatch Berry Pies C ( x ) = 3 x + 36 , x 0 and the price-demand function, in dollars per pie, is p ( x ) = 12 0.5 x , 0 x 24 .
  • The monthly cost, in hundreds of dollars, to produce x custom built electric scooters is C ( x ) = 20 x + 1000 , x 0 and the price-demand function, in hundreds of dollars per scooter, is p ( x ) = 140 2 x , 0 x 70 .

In Exercises -, let f be the function defined by

f = { ( 3 , 4 ) , ( 2 , 2 ) , ( 1 , 0 ) , ( 0 , 1 ) , ( 1 , 3 ) , ( 2 , 4 ) , ( 3 , 1 ) }

and let g be the function defined

g = { ( 3 , 2 ) , ( 2 , 0 ) , ( 1 , 4 ) , ( 0 , 0 ) , ( 1 , 3 ) , ( 2 , 1 ) , ( 3 , 2 ) }

. Compute the indicated value if it exists.

  1. ( f + g ) ( 3 )
  2. ( f g ) ( 2 )
  3. ( f g ) ( 1 )
  4. ( g + f ) ( 1 )
  5. ( g f ) ( 3 )
  6. ( g f ) ( 3 )
  7. ( f g ) ( 2 )
  8. ( f g ) ( 1 )
  9. ( f g ) ( 2 )
  10. ( g f ) ( 1 )
  11. ( g f ) ( 3 )
  12. ( g f ) ( 3 )

Answers

  1. For f ( x ) = 3 x + 1 and g ( x ) = 4 x

    • ( f + g ) ( 2 ) = 9
    • ( f g ) ( 1 ) = 7
    • ( g f ) ( 1 ) = 1
    • ( f g ) ( 1 2 ) = 35 4
    • ( f g ) ( 0 ) = 1 4
    • ( g f ) ( 2 ) = 6 5
  2. For f ( x ) = x 2 and g ( x ) = 2 x + 1

    • ( f + g ) ( 2 ) = 1
    • ( f g ) ( 1 ) = 2
    • ( g f ) ( 1 ) = 2
    • ( f g ) ( 1 2 ) = 0
    • ( f g ) ( 0 ) = 0
    • ( g f ) ( 2 ) = 5 4
  3. For f ( x ) = x 2 x and g ( x ) = 12 x 2

    • ( f + g ) ( 2 ) = 10
    • ( f g ) ( 1 ) = 9
    • ( g f ) ( 1 ) = 11
    • ( f g ) ( 1 2 ) = 47 16
    • ( f g ) ( 0 ) = 0
    • ( g f ) ( 2 ) = 4 3
  4. For f ( x ) = 2 x 3 and g ( x ) = x 2 2 x 3

    • ( f + g ) ( 2 ) = 5
    • ( f g ) ( 1 ) = 0
    • ( g f ) ( 1 ) = 8
    • ( f g ) ( 1 2 ) = 17 16
    • ( f g ) ( 0 ) = 0
    • ( g f ) ( 2 ) = 3 16
  5. For f ( x ) = x + 3 and g ( x ) = 2 x 1

    • ( f + g ) ( 2 ) = 3 + 5
    • ( f g ) ( 1 ) = 3 + 2
    • ( g f ) ( 1 ) = 1
    • ( f g ) ( 1 2 ) = 0
    • ( f g ) ( 0 ) = 3
    • ( g f ) ( 2 ) = 5
  6. For f ( x ) = 4 x and g ( x ) = x + 2

    • ( f + g ) ( 2 ) = 2 + 2
    • ( f g ) ( 1 ) = 1 + 5
    • ( g f ) ( 1 ) = 0
    • ( f g ) ( 1 2 ) = 35 2
    • ( f g ) ( 0 ) = 2
    • ( g f ) ( 2 ) = 0
  7. For f ( x ) = 2 x and g ( x ) = 1 2 x + 1

    • ( f + g ) ( 2 ) = 21 5
    • ( f g ) ( 1 ) = 1
    • ( g f ) ( 1 ) = 5 3
    • ( f g ) ( 1 2 ) = 1 2
    • ( f g ) ( 0 ) = 0
    • ( g f ) ( 2 ) = 1 12
  8. For f ( x ) = x 2 and g ( x ) = 3 2 x 3

    • ( f + g ) ( 2 ) = 7
    • ( f g ) ( 1 ) = 8 5
    • ( g f ) ( 1 ) = 4
    • ( f g ) ( 1 2 ) = 3 8
    • ( f g ) ( 0 ) = 0
    • ( g f ) ( 2 ) = 3 28
  9. For f ( x ) = x 2 and g ( x ) = 1 x 2

    • ( f + g ) ( 2 ) = 17 4
    • ( f g ) ( 1 ) = 0
    • ( g f ) ( 1 ) = 0
    • ( f g ) ( 1 2 ) = 1
    • ( f g ) ( 0 ) is undefined.
    • ( g f ) ( 2 ) = 1 16
  10. For f ( x ) = x 2 + 1 and g ( x ) = 1 x 2 + 1

    • ( f + g ) ( 2 ) = 26 5
    • ( f g ) ( 1 ) = 3 2
    • ( g f ) ( 1 ) = 3 2
    • ( f g ) ( 1 2 ) = 1
    • ( f g ) ( 0 ) = 1
    • ( g f ) ( 2 ) = 1 25
  11. For f ( x ) = 2 x + 1 and g ( x ) = x 2

    • ( f + g ) ( x ) = 3 x 1 Domain: ( , )
    • ( f g ) ( x ) = x + 3 Domain: ( , )
    • ( f g ) ( x ) = 2 x 2 3 x 2 Domain: ( , )
    • ( f g ) ( x ) = 2 x + 1 x 2 Domain: ( , 2 ) ( 2 , )
  12. For f ( x ) = 1 4 x and g ( x ) = 2 x 1

    • ( f + g ) ( x ) = 2 x Domain: ( , )
    • ( f g ) ( x ) = 2 6 x Domain: ( , )
    • ( f g ) ( x ) = 8 x 2 + 6 x 1 Domain: ( , )
    • ( f g ) ( x ) = 1 4 x 2 x 1 Domain: ( , 1 2 ) ( 1 2 , )
  13. For f ( x ) = x 2 and g ( x ) = 3 x 1

    • ( f + g ) ( x ) = x 2 + 3 x 1 Domain: ( , )
    • ( f g ) ( x ) = x 2 3 x + 1 Domain: ( , )
    • ( f g ) ( x ) = 3 x 3 x 2 Domain: ( , )
    • ( f g ) ( x ) = x 2 3 x 1 Domain: ( , 1 3 ) ( 1 3 , )
  14. For f ( x ) = x 2 x and g ( x ) = 7 x

    • ( f + g ) ( x ) = x 2 + 6 x Domain: ( , )
    • ( f g ) ( x ) = x 2 8 x Domain: ( , )
    • ( f g ) ( x ) = 7 x 3 7 x 2 Domain: ( , )
    • ( f g ) ( x ) = x 1 7 Domain: ( , 0 ) ( 0 , )
  15. For f ( x ) = x 2 4 and g ( x ) = 3 x + 6

    • ( f + g ) ( x ) = x 2 + 3 x + 2 Domain: ( , )
    • ( f g ) ( x ) = x 2 3 x 10 Domain: ( , )
    • ( f g ) ( x ) = 3 x 3 + 6 x 2 12 x 24 Domain: ( , )
    • ( f g ) ( x ) = x 2 3 Domain: ( , 2 ) ( 2 , )
  16. For f ( x ) = x 2 + x + 6 and g ( x ) = x 2 9

    • ( f + g ) ( x ) = x 3 Domain: ( , )
    • ( f g ) ( x ) = 2 x 2 + x + 15 Domain: ( , )
    • ( f g ) ( x ) = x 4 + x 3 + 15 x 2 9 x 54 Domain: ( , )
    • ( f g ) ( x ) = x + 2 x + 3 Domain: ( , 3 ) ( 3 , 3 ) ( 3 , )
  17. For f ( x ) = x 2 and g ( x ) = 2 x

    • ( f + g ) ( x ) = x 2 + 4 2 x Domain: ( , 0 ) ( 0 , )
    • ( f g ) ( x ) = x 2 4 2 x Domain: ( , 0 ) ( 0 , )
    • ( f g ) ( x ) = 1 Domain: ( , 0 ) ( 0 , )
    • ( f g ) ( x ) = x 2 4 Domain: ( , 0 ) ( 0 , )
  18. For f ( x ) = x 1 and g ( x ) = 1 x 1

    • ( f + g ) ( x ) = x 2 2 x + 2 x 1 Domain: ( , 1 ) ( 1 , )
    • ( f g ) ( x ) = x 2 2 x x 1 Domain: ( , 1 ) ( 1 , )
    • ( f g ) ( x ) = 1 Domain: ( , 1 ) ( 1 , )
    • ( f g ) ( x ) = x 2 2 x + 1 Domain: ( , 1 ) ( 1 , )
  19. For f ( x ) = x and g ( x ) = x + 1

    • ( f + g ) ( x ) = x + x + 1 Domain: [ 1 , )
    • ( f g ) ( x ) = x x + 1 Domain: [ 1 , )
    • ( f g ) ( x ) = x x + 1 Domain: [ 1 , )
    • ( f g ) ( x ) = x x + 1 Domain: ( 1 , )
  20. For f ( x ) = x 5 and g ( x ) = f ( x ) = x 5

    • ( f + g ) ( x ) = 2 x 5 Domain: [ 5 , )
    • ( f g ) ( x ) = 0 Domain: [ 5 , )
    • ( f g ) ( x ) = x 5 Domain: [ 5 , )
    • ( f g ) ( x ) = 1 Domain: ( 5 , )
  21. 2
  22. 3
  23. 0
  24. 6 x + 3 h 1
  25. 2 x h + 2
  26. 8 x + 4 h
  27. 2 x h + 1
  28. 3 x 2 + 3 x h + h 2
  29. m
  30. 2 a x + a h + b
  31. 2 x ( x + h )
  32. 3 ( 1 x h ) ( 1 x )
  33. ( 2 x + h ) x 2 ( x + h ) 2
  34. 2 ( x + 5 ) ( x + h + 5 )
  35. 4 ( 4 x 3 ) ( 4 x + 4 h 3 )
  36. 3 ( x + 1 ) ( x + h + 1 )
  37. 9 ( x 9 ) ( x + h 9 )
  38. 2 x 2 + 2 x h + 2 x + h ( 2 x + 1 ) ( 2 x + 2 h + 1 )
  39. 1 x + h 9 + x 9
  40. 2 2 x + 2 h + 1 + 2 x + 1
  41. 4 4 x 4 h + 5 + 4 x + 5
  42. 1 4 x h + 4 x
  43. a a x + a h + b + a x + b
  44. 3 x 2 + 3 x h + h 2 ( x + h ) 3 / 2 + x 3 / 2
  45. 1 ( x + h ) 2 / 3 + ( x + h ) 1 / 3 x 1 / 3 + x 2 / 3
    • C ( 0 ) = 26 , so the fixed costs are $ 26 .
    • C ¯ ( 10 ) = 4.6 , so when 10 shirts are produced, the cost per shirt is $ 4.60 .
    • p ( 5 ) = 20 , so to sell 5 shirts, set the price at $ 20 per shirt.
    • R ( x ) = 2 x 2 + 30 x , 0 x 15
    • P ( x ) = 2 x 2 + 28 x 26 , 0 x 15
    • P ( x ) = 0 when x = 1 and x = 13 . These are the `break even' points, so selling 1 shirt or 13 shirts will guarantee the revenue earned exactly recoups the cost of production.
    • C ( 0 ) = 100 , so the fixed costs are $ 100 .
    • C ¯ ( 10 ) = 20 , so when 10 bottles of tonic are produced, the cost per bottle is $ 20 .
    • p ( 5 ) = 30 , so to sell 5 bottles of tonic, set the price at $ 30 per bottle.
    • R ( x ) = x 2 + 35 x , 0 x 35
    • P ( x ) = x 2 + 25 x 100 , 0 x 35
    • P ( x ) = 0 when x = 5 and x = 20 . These are the `break even' points, so selling 5 bottles of tonic or 20 bottles of tonic will guarantee the revenue earned exactly recoups the cost of production.
    • C ( 0 ) = 240 , so the fixed costs are 240 ¢ or $ 2.40 .
    • C ¯ ( 10 ) = 42 , so when 10 cups of lemonade are made, the cost per cup is 42 ¢.
    • p ( 5 ) = 75 , so to sell 5 cups of lemonade, set the price at 75 ¢ per cup.
    • R ( x ) = 3 x 2 + 90 x , 0 x 30
    • P ( x ) = 3 x 2 + 72 x 240 , 0 x 30
    • P ( x ) = 0 when x = 4 and x = 20 . These are the `break even' points, so selling 4 cups of lemonade or 20 cups of lemonade will guarantee the revenue earned exactly recoups the cost of production.
    • C ( 0 ) = 36 , so the daily fixed costs are $ 36 .
    • C ¯ ( 10 ) = 6.6 , so when 10 pies are made, the cost per pie is $ 6.60 .
    • p ( 5 ) = 9.5 , so to sell 5 pies a day, set the price at $ 9.50 per pie.
    • R ( x ) = 0.5 x 2 + 12 x , 0 x 24
    • P ( x ) = 0.5 x 2 + 9 x 36 , 0 x 24
    • P ( x ) = 0 when x = 6 and x = 12 . These are the `break even' points, so selling 6 pies or 12 pies a day will guarantee the revenue earned exactly recoups the cost of production.
    • C ( 0 ) = 1000 , so the monthly fixed costs are 1000 hundred dollars, or $ 100 , 000 .
    • C ¯ ( 10 ) = 120 , so when 10 scooters are made, the cost per scooter is 120 hundred dollars, or $ 12 , 000 .
    • p ( 5 ) = 130 , so to sell 5 scooters a month, set the price at 130 hundred dollars, or $ 13 , 000 per scooter.
    • R ( x ) = 2 x 2 + 140 x , 0 x 70
    • P ( x ) = 2 x 2 + 120 x 1000 , 0 x 70
    • P ( x ) = 0 when x = 10 and x = 50 . These are the `break even' points, so selling 10 scooters or 50 scooters a month will guarantee the revenue earned exactly recoups the cost of production.
  46. ( f + g ) ( 3 ) = 2
  47. ( f g ) ( 2 ) = 3
  48. ( f g ) ( 1 ) = 0
  49. ( g + f ) ( 1 ) = 0
  50. ( g f ) ( 3 ) = 3
  51. ( g f ) ( 3 ) = 8
  52. ( f g ) ( 2 ) does not exist
  53. ( f g ) ( 1 ) = 0
  54. ( f g ) ( 2 ) = 4
  55. ( g f ) ( 1 ) does not exist
  56. ( g f ) ( 3 ) = 2
  57. ( g f ) ( 3 ) = 1 2

Adapted from Precalculus, 3rd corrected edition, by Carl Stitz and Jeff Zeager (stitz-zeager.com), licensed under CC BY-NC-SA 3.0. Changes were made: reformatted as an accessible XYZ web edition. License: CC-BY-NC-SA-3.0.