1.5 Function Arithmetic
1.5.1 Function Arithmetic
In this section, we begin our study of what can be considered as the algebra of functions by defining function arithmetic.
Given two real numbers, we have four primary arithmetic operations available to us: addition, subtraction, multiplication, and division (provided we don’t divide by .) As the functions we study in this text have ranges which are sets of real numbers, it makes sense we can extend these arithmetic notions to functions.
For example, to add two functions means we add their outputs; to subtract two functions, we subtract their outputs, and so on and so forth. More formally, given two functions and , we define a new function whose rule is determined by adding the outputs of and . That is . While this looks suspiciously like some kind of distributive property, it is nothing of the sort. The `‘ sign in the expression `‘ is part of the name of the function we are defining,[1] whereas the plus sign `‘ sign in the expression represents real number addition: we are adding the output from , with the output from , to determine the output from the sum function, .
Of course, in order to define by the formula , both and need to be defined in the first place; that is, must be in the domain of and the domain of . You’ll recall[2] this means must be in the intersection of the domains of and . We define the following.
Definition 1.13
Suppose and are functions and is in both the domain of and the domain of .
- The sum of and , denoted , is the function defined by the formula
- The difference of and , denoted , is the function defined by the formula
- The product of and , denoted , is the function defined by the formula
- The quotient of and , denoted , is the function defined by the formula
We put these definitions to work for us in the next example.
Example 1.5.1
Example 1.5.1.1a
Consider the following functions:
- ,
- whose graph is given below:
Compute and simplify the following function values:
Solution:
Compute and simplify .
By definition, .
We find and .
So we get
Example 1.5.1.1b
Consider the following functions:
- ,
- whose graph is given below:
Compute and simplify the following function values:
Solution:
Compute and simplify .
To find , we need both and .
To get , we look to the graph of and look for the -coordinate of the point on the graph with the -coordinate of . While not labeled directly, we infer the point is on the graph which means .
For , we compute: .
Putting it all together, we get
Example 1.5.1.1c
Consider the following functions:
- ,
- whose graph is given below:
Compute and simplify the following function values:
Solution:
Compute and simplify .
Because , we first compute and .
We find and .
So
Example 1.5.1.1d
Consider the following functions:
- ,
- whose graph is given below:
Compute and simplify the following function values:
Solution:
Compute and simplify .
By definition, .
As is on the graph of , we know .
Likewise, the ordered pair , so .
We get
Example 1.5.1.1e
Consider the following functions:
- ,
- whose graph is given below:
Compute and simplify the following function values:
Solution:
Compute and simplify .
The expression involves three functions. Fortunately, they are grouped so that we can apply Definition 1.13 by first considering the sum of the two functions and , then to the sum of the two functions and : .
To get , we look to the graph of . We infer the point is on the graph of , so .
We compute .
To find , we note , so .
Hence,
Example 1.5.1.1f
Consider the following functions:
- ,
- whose graph is given below:
Compute and simplify the following function values:
Solution:
Compute and simplify .
The expression is very similar to the previous problem, except that the and are grouped together here instead of the and .
We proceed as above applying Definition 1.13 twice and find .
Substituting the values for , and , we get , which, not surprisingly, matches our answer to the previous problem.
Example 1.5.1.1g
Consider the following functions:
- ,
- whose graph is given below:
Compute and simplify the following function values:
Solution:
Compute and simplify .
Once again, we find the expression has more than two functions involved. As with all fractions, we treat `‘ as a grouping symbol and interpret .
We compute and have and from above.
Hence,
Example 1.5.1.1h
Consider the following functions:
- ,
- whose graph is given below:
Compute and simplify the following function values:
Solution:
Compute and simplify .
We need to need to exercise caution in parsing . In this context, , , and are all functions, so we interpret as the function and as the argument. We view the function as the product of and the function .
Hence, .
We compute , and . Because , .
Putting this altogether, we get
Example 1.5.1.2a
Consider the following functions:
- ,
- whose graph is given below:
State the domain of each of the following functions:
Solution:
State the domain of .
To find the domain of , we need to find the real numbers in both the domain of and the domain of .
The domain of is and the domain of is so the only real number in common here is .
Hence, the domain of is , which may be small, but it’s better than nothing.[3]
Example 1.5.1.2b
Consider the following functions:
- ,
- whose graph is given below:
State the domain of each of the following functions:
Solution:
State the domain of .
To find the domain of , we first note the domain of is all real numbers, but that the domain of , based on the graph, is just .
Moreover, when , so we must exclude this value from the domain of .
Hence, we are left with .
Example 1.5.1.3a
Consider the following functions:
- ,
- whose graph is given below:
Determine expressions for the functions below. State the domain for each.
Solution:
Determine an expression for . Then state the domain of the function.
By definition, .
We are given and so . Hence,
To find the domain of , we note the domain of is all real numbers, whereas the domain of is restricted to .
Hence, the domain of is likewise restricted to .
Note if we relied solely on the simplified formula for , we would have obtained the incorrect answer for the domains of .
Example 1.5.1.3b
Consider the following functions:
- ,
- whose graph is given below:
Determine expressions for the functions below. State the domain for each.
Solution:
Determine an expression for . Then state the domain of the function.
To find an expression for we first note and .
Hence:
A few remarks are in order. First, in number 1 parts 1e through 1h, we first encountered combinations of three functions despite Definition 1.13 only addressing combinations of two functions at a time. It turns out that function arithmetic inherits many of the same properties of real number arithmetic. For example, we showed above that . In general, given any three functions , , and , that is, function addition is assocative. To see this, choose an element common to the domains of , , and . Then
The key step to the argument is that which is true courtesy of the associative property of real number addition. And just like with real number addition, because function addition is associative, we may write instead of or even though, when it comes down to computations, we can only add two things together at a time.[4]
For completeness, we summarize the properties of function arithmetic in the theorem below. The proofs of the properties all follow along the same lines as the proof of the associative property and are left to the reader. We investigate some additional properties in the exercises.
Theorem 1.5
Suppose , and are functions.
- Commutative Law of Addition:
- Associative Law of Addition:
- Additive Identity: The function satisfies: for all functions .
- Additive Inverse: The function for all in the domain of satisfies:
- Commutative Law of Multiplication:
- Associative Law of Multiplication:
- Multiplicative Identity: The function satisfies: for all functions .
- Multiplicative Inverse: If for all in the domain of , then satisfies:
- Distributive Law of Multiplication over Addition:
In the next example, we decompose given functions into sums, differences, products and/or quotients of other functions. Note that there are infinitely many different ways to do this, including some trivial ones. For example, suppose we were instructed to decompose into a sum or difference of functions. We could write where and or we could choose and . More simply, we could write where and . We’ll call this last decomposition a `trivial’ decomposition. Likewise, if we ask for a decomposition of as a product, a nontrivial solution would be where and whereas a trivial solution would be and . In general, non-trivial solutions to decomposition problems avoid using the additive identity, , for sums and differences and the multiplicative identity, , for products and quotients.
Example 1.5.2
Example 1.5.2.1a
For , find functions , and to decompose nontrivially as:
Solution:
Decompose .
To decompose , we need functions and so .
Given , one option is to let and .
To check, we find as required. In addition to checking the formulas match up, we also need to check domains.
There isn’t much work here as the domains of and are all real numbers which combine to give the domain of which is all real numbers.
Example 1.5.2.1b
For , find functions , and to decompose nontrivially as:
Solution:
Decompose .
In order to write , we need .
One way to accomplish this is to write and identify and .
To check, .
Again, the domains for both and are all real numbers which combine to give its domain of all real numbers.
Example 1.5.2.1c
For , find functions , and to decompose nontrivially as:
Solution:
Decompose .
To write , we require .
In other words, we need to factor . We find , so one choice is to select and . Then as required.
As above, the domains of and are all real numbers which combine to give the correct domain of .
Example 1.5.2.1d
For , find functions , and to decompose nontrivially as:
Solution:
Decompose .
We need to be careful here interpreting the equation . What we have is an equality of functions so the parentheses here do not represent function notation here, but, rather function multiplication. The way to parse , then, is the function times the function . Hence, we seek functions , , and so that .
From the previous example, we know we can rewrite , so one option is to set and so that
as required.
As above, the domain of all constituent functions is which matches the domain of .
Example 1.5.2.2a
For , find functions , and to decompose nontrivially as:
Solution:
Decompose .
To write , we need and so .
We choose and . Sure enough, as required.
When it comes to the domain of , owing to the square root, we require . We have a denominator as well, therefore we require . The former requirement is the same restriction on , and the latter requirement comes from Definition 1.13. Starting with the domain of , all real numbers, and working through the details, we arrive at the correct domain of , .
Example 1.5.2.2b
For , find functions , and to decompose nontrivially as:
Solution:
Decompose .
Next, we are asked to find functions and so . This means we need to rewrite the expression for as a product. One way to do this is to convert radical notation to exponent notation:
Choosing and , we see as required.
The domain restrictions on stem from the presence of the square root in the denominator – both are addressed when finding the domain of . Hence, we obtain the correct domain of as .
Example 1.5.2.2c
For , find functions , and to decompose nontrivially as:
Solution:
Decompose .
To express as a sum of functions and , we could rewrite
so that and .
Indeed, , as required.
Moreover, the domain restrictions for are the same for both and , so we get agreement on the domain being .
Example 1.5.2.2d
For , find functions , and to decompose nontrivially as:
Solution:
Decompose .
Last, but not least, to write , we require .
Identifying , , and , we get
Concerning domains, the domain of both and are all real numbers, but the domain of is restricted to . Coupled with the restriction stated in Definition 1.13 that , we recover the domain of , .
1.5.2 Function Composition
We just saw how the arithmetic of real numbers carried over into an arithmetic of functions. In this section, we discuss another way to combine functions which is unique to functions and isn’t shared with real numbers – function composition.
Definition 1.14
Let and be functions where the real number is in the domain of and the real number is in the domain of . The composite of with , denoted , and read ` composed with ‘ is defined by the formula: .
To compute , we use the formula given in Defintion 1.14: . However, from a procedural viewpoint, Defintion 1.14 tells us the output from is found by taking the output from , , and then making that the input to . From this perspective, we see as a two step process taking an input and first applying the procedure then applying the procedure . Abstractly, we have
In the expression , the function is often called the `inside’ function while is often called the `outside’ function. When evaluating composite function values we present two methods in the example below: the `inside out’ and `outside in’ methods.
Example 1.5.3
Example 1.5.3.1
Let , , and .
Compute the indicated function value:
Solution:
Compute .
Using Definition 1.14, .
To start .
Then , so we have
Example 1.5.3.2
Let , , and .
Compute the indicated function value:
Solution:
Compute .
By definition, .
We find , and
, so
Comparing this with our answer to the last problem, we see that which tells us function composition is not commutative,[5]
Example 1.5.3.3
Let , , and .
Compute the indicated function value:
Solution:
Compute .
We note , and thus we `iterate’ the process : that is, we apply the process to , then apply the process again.
We find , and
, so
Example 1.5.3.4
Let , , and .
Determine and simplify the indicated composite functions. State the domain of each.
Solution:
Determine and simplify .
By definition, . We now illustrate two ways to approach this problem.
- inside out: We substitute in for in the expression and get
Hence,
- outside in: We use the formula for first to get
We get the same answer as before,
To find the domain of , we need to find the elements in the domain of whose outputs are in the domain of .
To find the domain of , we need to find the elements in the domain of whose outputs are in the domain of .
The domain of is all real numbers, allowing us to focus on finding the range elements compatible with . Owing to the presence of the square root in the formula we require .
Hence, we need or . To solve this inequality we rewrite as and use a sign diagram. Letting , we find the zeros of to be and and obtain
Our solution to , and hence the domain of , is .
Example 1.5.3.5
Let , , and .
Determine and simplify the indicated composite functions. State the domain of each.
Solution:
Determine and simplify .
To find , we find .
- inside out: We substitute the expression in for in the formula and get
- outside in: We use the formula for first to get
Thus we get .
To find the domain of , we look for the elements in the domain of whose outputs, are in the domain of . As mentioned previously, the domain of is limited by the presence of the square root to , while the domain of is all real numbers.
Hence, the domain of is restricted only by the domain of and is or, using interval notation, .
Note that as with Example 1.5.1 of this section, had we used the simplified formula for to determine domain, we would have arrived at the incorrect answer.
Example 1.5.3.6
Let , , and .
Determine and simplify the indicated composite functions. State the domain of each.
Solution:
Determine and simplify .
To find , we compute .
- inside out: We substitute in for in the expression to get
- outside in: We use the formula for first to get
To find the domain of , we need the elements in the domain of so that is in the domain of .
Owing to the in the denominator of the expression , we require . Once again, because of the square root in , we need or, in this case . We rearrange this inequality:
Defining , we see is undefined at (a carry over from the domain restriction of ) and at . Our sign diagram is
hence our domain is .
Example 1.5.3.7
Let , , and .
Determine and simplify the indicated composite functions. State the domain of each.
Solution:
Determine and simplify .
We find by finding .
- inside out: We substitute the expression for in the formula
- outside in: We use the formula for first to get
To find the domain of , we need the elements of the domain of so that is in the domain of . As we’ve seen already, for to be in the domain of , . For to be in the domain of , , so we require .
Hence, we solve with the intent of excluding these solutions. Isolating the radical expression gives or . Sure enough, we check , so we exclude from the domain of .
Our final answer is .
Example 1.5.3.8
Let , , and .
Determine and simplify the indicated composite functions. State the domain of each.
Solution:
Determine and simplify .
To find we find :
- inside out: We substitute the expression for in the expression into to get
- outside in: This approach yields
To find the domain of , we need to find the elements in the domain of so that the outputs, are also in the domain of .
The only domain restriction for comes from the denominator: , so in addition to this, we also need . To this end, we solve and exclude the answers. Solving gives .
The domain of is .
Example 1.5.3.9
Let , , and .
Determine and simplify the indicated composite functions. State the domain of each.
Solution:
Determine and simplify ..
The expression indicates that we first find the composite, and then compose the function with the result.
We know from number 4 that with domain . We now proceed as usual.
- inside out: We substitute the expression for in the expression first to get
- outside in: We use the formula for first to get
To find the domain of , we need the domain elements of , , so that is in the domain of .
As we’ve seen several times already, the only domain restriction for is , so we set and exclude the solutions. We get , and, after squaring both sides, we have . We solve using the quadratic formula and obtain . The reader is encouraged to check that both of these numbers satisfy the original equation, and also belong to the domain of , , and so must be excluded from our final answer.[6]
Our final domain for is .
Example 1.5.3.10
Let , , and .
Determine and simplify the indicated composite functions. State the domain of each.
Solution:
Determine and simplify .
The expression indicates that we first find the composite and then compose that with . From number 7, we have
with domain .
We know from number 4 that with domain . We now proceed as usual.
- inside out: We substitute the expression for in the expression first to get
- outside in: We use the formula for first to get
The domain of is all real numbers, thus the challenge here in computing the domain of is to determine the values which are in the domain of , .
At first glance, it appears as if we have two (or three!) inequalities to solve: and . Alternatively, we could solve and exclude the solutions to which is not only easier from a procedural point of view, but also easier because we’ve already done both calculations. In number 4, we solved and obtained the solution and in number 9, we solved and obtained .
As previously mentioned, it should be clear from Example 1.5.3 that, in general, , in other words, function composition is not commutative. However, numbers 9 and 10 demonstrate the associative property of function composition. That is, when composing three (or more) functions, as long as we keep the order the same, it doesn’t matter which two functions we compose first. We summarize the important properties of function composition in the theorem below.
Theorem 1.6: Properties of Function Composition
Suppose , , and are functions
- Associative Law of Composition: , provided the composite functions are defined.
- Composition Identity: The function satisfies: for all functions, .
By repeated applications of Definition 1.14, we find . Similarly, . This establishes that the formulas for the two functions are the same. We leave it to the reader to think about why the domains of these two functions are identical, too. These two facts establish the equality . A consequence of the associativity of function composition is that there is no need for parentheses when we write . The second property can also be verified using Definition 1.14. Recall that the function is called the identity function and was introduced in Exercise 76 in Section 1.3. If we compose the function with a function , then we have , and a similar computation shows . This establishes that we have an identity for function composition much in the same way the function is an identity for function multiplication.
As we know, not all functions are described by formulas, and, moreover, not all functions are described by just one formula. The next example applies the concept of function composition to functions represented in various and sundry ways.
Example 1.5.4
Example 1.5.4.1a
Consider the following functions:
- whose graph is given below:
Compute and simplify the following function values:
Solution:
Compute and simplify .
To find , we first find .
Considering , we use the rule so .
Hence, .
Example 1.5.4.1b
Consider the following functions:
- whose graph is given below:
Compute and simplify the following function values:
Solution:
Compute and simplify .
As , we first need .
Given , we use the rule and find .
Next, we need . As , we have that .
Putting this all together, we find .
Example 1.5.4.1c
Consider the following functions:
- whose graph is given below:
Compute and simplify the following function values:
Solution:
Compute and simplify .
To find , we first need .
We see the point is on the graph of , so .
Next, we see , so .
Hence, .
Example 1.5.4.1d
Consider the following functions:
- whose graph is given below:
Compute and simplify the following function values:
Solution:
Compute and simplify .
To find , we infer from the graph of that it contains the point , so .
Then .
Thus we have .
Example 1.5.4.2
Consider the following functions:
- whose graph is given below:
Determine and simplify a formula for .
Solution:
Determine and simplify a formula for .
To determine a formula for , we substitute in for in the formula for :
Simplifying each expression, we get for the first piece and for the second piece.
The real challenge comes in solving the inequalities and . While we could solve each individually using a sign diagram, a graphical approach works best here. We graph the parabola , identifying the vertex is with intercepts and along with the horizontal lines and below.
We determine the intersection points by solving and .
Using the quadratic formula, we find the solutions to each equation are and , respectively.
From the graph, we see the parabola is between the lines and from to and again from to . Hence the solution to is .
We also note is above the line for all between and . Hence, the solution to is .
Hence,
Example 1.5.4.3
Consider the following functions:
- whose graph is given below:
Write as a set of ordered pairs.
Solution:
Write as a set of ordered pairs.
Last but not least, we are tasked with representing as a set of ordered pairs.
is described by the discrete set of points, , so we will find point by point. We keep the graph of handy and construct the table below to help us organize our work.
Neither nor are in the domain of , therefore and are not in the domain of .
Hence, we get .
A useful skill in Calculus is to be able to take a complicated function and break it down into a composition of easier functions which our last example illustrates. As with Example 1.52, we want to avoid trivial decompositions, which, when it comes to function composition, are those involving the identity function as described in Theorem 1.6.
Example 1.5.5
Example 1.5.5.1a
Write each of the following functions as a composition of two or more (non-identity) functions. Check your answer by performing the function composition.
Solution:
There are many approaches to this kind of problem, and we showcase a different methodology in each of the solutions below.
Write as a composition of two or more functions.
Our goal is to express the function as for functions and .
From Definition 1.14, we know , and we can think of as being the `inside’ function and as being the `outside’ function.
Looking at from an `inside versus outside’ perspective, we can think of being inside the absolute value symbols. Taking this cue, we define .
At this point, we have . What is the outside function? The function which takes the absolute value of its input, .
Sure enough, this checks:
Example 1.5.5.1b
Write each of the following functions as a composition of two or more (non-identity) functions. Check your answer by performing the function composition.
Solution:
There are many approaches to this kind of problem, and we showcase a different methodology in each of the solutions below.
Write as a composition of two or more functions.
We attack deconstructing from an operational approach.
Given an input , the first step is to square , then add , then divide the result into . We will assign each of these steps a function so as to write as a composite of three functions: , and .
Our first function, , is the function that squares its input, .
The next function is the function that adds to its input, .
Our last function takes its input and divides it into , .
The claim is that which checks:
Example 1.5.5.1c
Write each of the following functions as a composition of two or more (non-identity) functions. Check your answer by performing the function composition.
Solution:
There are many approaches to this kind of problem, and we showcase a different methodology in each of the solutions below.
Write as a composition of two or more functions.
If we look with an eye towards building a complicated function from simpler functions, we see the expression is a simple piece of the larger function.
If we define , we have .
If we want to decompose , then we can glean the formula for by looking at what is being done to .
We take , and check below:
Example 1.5.5.2
For , find functions , , and to decompose nontrivially as .
Solution:
For , find functions , , and to decompose nontrivially as .
To write means
Working from the inside out, we have a rational expression with numerator and denominator .
Looking at the formula for , one choice is and . Making these identifications, we have
takes the square root of , which tells us that our last function, , is the function that takes the square root of its input, i.e., .
We leave it to the reader to check that, indeed, .
We close this section of a real-world application of function composition.
Example 1.5.6
Example 1.5.6
The surface area of a sphere is a function of its radius and is given by the formula . Suppose the sphere is being inflated so that the radius of the sphere is increasing according to the formula , where is measured in seconds, , and is measured in inches. Find and interpret .
Solution:
If we look at the functions and individually, we see the former gives the surface area of a sphere of a given radius while the latter gives the radius at a given time.
So, given a specific time, , we could find the radius at that time, and feed that into to compute the surface area at that time.
From this we see that the surface area is ultimately a function of time and we conclude
This formula allows us to compute the surface area directly given the time without going through the `intermediary variable’ .
1.5.3 Section Exercises
In Exercises 1 – 10, use the pair of functions and to find the following values if they exist.
- and
- and
- and
- and
- and
- and
- and
- and
- and
- and
Exercises 11 – 20 refer to the functions and whose graphs are below.
- Compute the domains of , , , and .
In Exercises 21 – 32, let be the function defined by
and let be the function defined by
Compute the indicated value if it exists.
In Exercises 33 – 42, use the pair of functions and to find the domain of the indicated function then find and simplify an expression for it.
- and
- and
- and
- and
- and
- and
- and
- and
- and
- and
In Exercises 43 – 47, write the given function as a nontrivial decomposition of functions as directed.
- For , find functions and so that .
- For , find functions and so that .
- For , find functions and so that .
- For , find functions and so .
- For , find functions and so .
- Can be decomposed as where and ?
In Exercises 49 – 60, use the given pair of functions to find the following values if they exist.
- and
- and
- and
- and
- and
- and
- and
- and
- and
- and
- and
- and
In Exercises 61 – 72, use the given pair of functions to find and simplify expressions for the following functions and state the domain of each using interval notation.
- and
- and
- and
- and
- and
- and
- and
- and
- and
- and
- and
- and
In Exercises 73 – 78, use , and to find and simplify expressions for the following functions and state the domain of each using interval notation.
In Exercises 79 – 91, let be the function defined by
and let be the function defined by
Find the following, if it exists.
- Find the domain and range of and .
In Exercises 92 – 98, use the graphs of and below to find the following if it exists.
- Find the domain and range of and .
In Exercises 99 – 108, write the given function as a composition of two or more non-identity functions. (There are several correct answers, so check your answer using function composition.)
- Write the function as a composition of three or more non-identity functions.
- Let and . In what order must these functions be composed with to create ?
- What linear functions could be used to transform into ? What is the proper order of composition?
- Let and let . Find expressions for and .
- The volume of a cube is a function of its side length . Let’s assume that is also a function of time , where is measured in inches and is measured in minutes. Find a formula for as a function of .
- Suppose a local vendor charges per hot dog and that the number of hot dogs sold per hour is given by , where is the number of hours since AM, .
- Find an expression for the revenue per hour as a function of .
- Find and simplify . What does this represent?
- What is the revenue per hour at noon?
Section 1.5 Exercise Answers can be found in the Appendix … Coming soon
- We could have just as easily called this new function for `sum' of and and defined by . ↵
- see Section 0.4. ↵
- Due to the fact that , we can write . ↵
- Addition is a `binary' operation - meaning it is defined only on two objects at once. Even though we write , mentally, we add just two of numbers together at any given time to get our answer: for example, . ↵
- That is, in general, . This shouldn't be too surprising, because, in general, the order of processes matters: adding eggs to a cake batter then baking the cake batter has a much different outcome than baking the cake batter then adding eggs. ↵
- We can approximate so and . ↵
Given two functions f and g, where the real number x is in the domain of g and the real number g(x) is in the domain of f, f composed with g is defined by replacing all x in the function f with the function g.