Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

1.5: Function Arithmetic

( \newcommand{\kernel}{\mathrm{null}\,}\)

In the previous section we used the newly defined function notation to make sense of expressions such as 'f(x)+2' and '2f(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.\footnote{Thus x is an element of the intersection of the two domains.}

  • The sum of f and g, denoted f+g, is the function defined by the formula (f+g)(x)=f(x)+g(x)
  • The difference of f and g, denoted fg, is the function defined by the formula (fg)(x)=f(x)g(x)
  • The product of f and g, denoted fg, is the function defined by the formula (fg)(x)=f(x)g(x)
  • The quotient of f and g, denoted fg, is the function defined by the formula (fg)(x)=f(x)g(x), provided g(x)0.

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.

Example 1.5.1:

Let f(x)=6x22x and g(x)=31x.

  1. Find (f+g)(1)
  2. Find (fg)(2)
  3. Find the domain of gf then find and simplify a formula for (gf)(x).
  4. \label{quotdomainex} Find the domain of (gf) then find and simplify a formula for (gf)(x).

Solution

  1. To find (f+g)(1) we first find f(1)=8 and g(1)=4. By definition, we have that (f+g)(1)=f(1)+g(1)=8+4=12.
  2. To find (fg)(2), we first need f(2) and g(2). Since f(2)=20 and g(2)=52, our formula yields (fg)(2)=f(2)g(2)=(20)(52)=50.
  3. One method to find the domain of gf is to find the domain of g and of f separately, then find the intersection of these two sets. Owing to the denominator in the expression g(x)=31x, we get that the domain of g is (,0)(0,). Since f(x)=6x22x is valid for all real numbers, we have no further restrictions. Thus the domain of gf matches the domain of g, namely, (,0)(0,).

A second method is to analyze the formula for (gf)(x) \textit{before simplifying} and look for the usual domain issues. In this case,

(gf)(x)=g(x)f(x)=(31x)(6x22x),

so we find, as before, the domain is (,0)(0,).

Moving along, we need to simplify a formula for (gf)(x). In this case, we get common denominators and attempt to reduce the resulting fraction. Doing so, we get

(gf)(x)=g(x)f(x)[5pt]=(31x)(6x22x)=31x6x2+2x[10pt]=3xx1x6x3x+2x2xget common denominators=3x16x32x2x=6x32x2+3x1x

4. \item As in the previous example, we have two ways to approach finding the domain of gf. First, we can find the domain of g and f separately, and find the intersection of these two sets. In addition, since (gf)(x)=g(x)f(x), we are introducing a new denominator, namely f(x), so we need to guard against this being 0 as well. Our previous work tells us that the domain of g is (,0)(0,) and the domain of f is (,). Setting f(x)=0 gives 6x22x=0 or x=0,13. As a result, the domain of gf is all real numbers except x=0 and x=13, or (,0)(0,13)(13,).

Alternatively, we may proceed as above and analyze the expression (gf)(x)=g(x)f(x) \textit{before} simplifying. In this case, (gf)(x)=g(x)f(x)=31x(1x)6x22x

We see immediately from the 'little' denominator that x0. To keep the 'big' denominator away from 0, we solve 6x22x=0 and get x=0 or x=13. Hence, as before, we find the domain of gf to be (,0)(0,13)(13,).

Next, we find and simplify a formula for (gf)(x).

formula (a:f).png

Please note the importance of finding the domain of a function before simplifying its expression. In number 4 in Example 1.5.1 above, had we waited to find the domain of gf until \text{after} simplifying, we'd just have the formula 12x2 to go by, and we would (incorrectly!) state the domain as (,0)(0,), since the other troublesome number, x=13, was canceled away.\footnote{We'll see what this means geometrically in Chapter 4.}

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

Definition 1.8

Given a function f, the difference quotient of f is the expression f(x+h)f(x)h

We will revisit this concept in Section 2.1, 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.

Example 1.5.2: Difference Quotient

Find and simplify the difference quotients for the following functions

  1. f(x)=x2x2
  2. g(x)=32x+1
  3. r(x)=x

Solution

  1. To find f(x+h), we replace every occurrence of x in the formula f(x)=x2x2 with the quantity (x+h) to get

f(x+h)=(x+h)2(x+h)2=x2+2xh+h2xh2.

So the difference quotient is

difference quotient .png

2.To find g(x+h), we replace every occurrence of x in the formula g(x)=32x+1 with the quantity (x+h) to get

g(x+h)=32(x+h)+1=32x+2h+1,

which yields

difference quotient replaced.png

Since we have managed to cancel the original 'h' from the denominator, we are done.

3. For r(x)=x, we get r(x+h)=x+h so the difference quotient is

r(x+h)r(x)h=x+hxh

In order to cancel the 'h' from the denominator, we rationalize the numerator by multiplying by its conjugate.\footnote{Rationalizing the numerator!? How's that for a twist!}

difference quotient conjugate.png

Since we have removed the original '\)h\)' from the denominator, we are done.

As mentioned before, we will revisit difference quotients in Section 2.1 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.

Suppose you are a manufacturer making a certain product.\footnote{Poorly designed resin Sasquatch statues, for example. Feel free to choose your own entrepreneurial fantasy.} Let x be the \textbf{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 \textbf{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,\footnote{See Example 5.2.4 in Section 5.2 .} 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 \textbf{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 \textbf{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)=xp(x). Finally, the \textbf{profit} function, P(x) calculates how much money is earned after the costs are paid. That is, P(x)=(RC)(x)=R(x)C(x). We summarize all of these functions below.

Note: Summary of Common Economic Functions

Suppose x represents the quantity of items produced and sold.

  1. The price-demand function p(x) calculates the price per item.
  2. The revenue function R(x) calculates the total money collected by selling x items at a price p(x), R(x)=xp(x).
  3. The cost function C(x) calculates the cost to produce x items. The value C(0) is called the fixed cost or start-up cost.
  4. The average cost function ¯C(x)=C(x)x calculates the cost per item when making x items. Here, we necessarily assume x>0.
  5. The profit function P(x) calculates the money earned after costs are paid when x items are produced and sold, P(x)=(RC)(x)=R(x)C(x).

It is high time for an example.

Example 1.5.1: Cost Revenue Profitex

Let x represent the number of dOpi media players ('dOpis'\footnote{Pronounced 'dopeys' \ldots}) produced and sold in a typical week. Suppose the cost, in dollars, to produce x dOpis is given by C(x)=100x+2000, for x0, and the price, in dollars per dOpi, is given by p(x)=45015x for 0x30.

  1. Find and interpret C(0).
  2. Find and interpret ¯C(10).
  3. Find and interpret p(0) and p(20).
  4. Solve p(x)=0 and interpret the result.
  5. Find and simplify expressions for the revenue function R(x) and the profit function P(x).
  6. Find and interpret R(0) and P(0).
  7. Solve P(x)=0 and interpret the result.

Solution

  1. We substitute x=0 into the formula for C(x) and get C(0)=100(0)+2000=2000. This means to produce 0 dOpis, it costs )2000. In other words, the fixed (or start-up) costs are )2000. The reader is encouraged to contemplate what sorts of expenses these might be.
  2. Since ¯C(x)=C(x)x, ¯C(10)=C(10)10=300010=300. This means when 10 dOpis are produced, the cost to manufacture them amounts to )300 per dOpi.
  3. Plugging x=0 into the expression for p(x) gives p(0)=45015(0)=450. This means no dOpis are sold if the price is )450 per dOpi. On the other hand, p(20)=45015(20)=150 which means to sell 20 dOpis in a typical week, the price should be set at )150 per dOpi.
  4. Setting p(x)=0 gives 45015x=0. Solving gives x=30. This means in order to sell 30 dOpis in a typical week, the price needs to be set to )0. What's more, this means that even if dOpis were given away for free, the retailer would only be able to move 30 of them.\footnote{Imagine that! Giving something away for free and hardly anyone taking advantage of it \ldots}
  5. To find the revenue, we compute R(x)=xp(x)=x(45015x)=450x15x2. Since the formula for p(x) is valid only for 0x30, our formula R(x) is also restricted to 0x30. For the profit, P(x)=(RC)(x)=R(x)C(x). Using the given formula for C(x) and the derived formula for R(x), we get P(x)=(450x15x2)(100x+2000)=15x2+350x2000. As before, the validity of this formula is for 0x30 only.
  6. We find R(0)=0 which means if no dOpis are sold, we have no revenue, which makes sense. Turning to profit, P(0)=2000 since P(x)=R(x)C(x) and P(0)=R(0)C(0)=2000. This means that if no dOpis are sold, more money (\)\\)2000\) to be exact!) was put into producing the dOpis than was recouped in sales. In number 1, we found the fixed costs to be )2000, so it makes sense that if we sell no dOpis, we are out those start-up costs.
  7. Setting P(x)=0 gives 15x2+350x2000=0. Factoring gives 5(x10)(3x40)=0 so x=10 or x=403. What do these values mean in the context of the problem? Since P(x)=R(x)C(x), solving P(x)=0 is the same as solving R(x)=C(x). This means that the solutions to P(x)=0 are the production (and sales) figures for which the sales revenue exactly balances the total production costs. These are the so-called '\textbf{break even}' points. The solution x=10 means 10 dOpis should be produced (and sold) during the week to recoup the cost of production. For x=403=13.¯3, things are a bit more complicated. Even though x=13.¯3 satisfies 0x30, and hence is in the domain of P, it doesn't make sense in the context of this problem to produce a fractional part of a dOpi.\footnote{We've seen this sort of thing before in Section 1.4 .} Evaluating P(13)=15 and P(14)=40, we see that producing and selling 13 dOpis per week makes a (slight) profit, whereas producing just one more puts us back into the red. While breaking even is nice, we ultimately would like to find what production level (and price) will result in the largest profit, and we'll do just that in Section 2.3 .

1.5: Function Arithmetic is shared under a CC BY-NC-SA 3.0 license and was authored, remixed, and/or curated by LibreTexts.

  • Was this article helpful?

Support Center

How can we help?