Paul's Online Math Notes
[Notes]
Algebra - Notes

Internet Explorer 10 & 11 Users : If you have been using Internet Explorer 10 or 11 to view the site (or did at one point anyway) then you know that the equations were not properly placed on the pages unless you put IE into "Compatibility Mode". I beleive that I have partially figured out a way around that and have implimented the "fix" in the Algebra notes (not the practice/assignment problems yet). It's not perfect as some equations that are "inline" (i.e. equations that are in sentences as opposed to those on lines by themselves) are now shifted upwards or downwards slightly but it is better than it was.

If you wish to test this out please make sure the IE is not in Compatibility Mode and give it a test run in the Algebra notes. If you run into any problems please let me know. If things go well over the next week or two then I'll push the fix the full site. I'll also continue to see if I can get the inline equations to display properly.
 Solving Equations and Inequalities Previous Chapter Next Chapter Common Graphs Graphing Functions Previous Section Next Section Inverse Functions

## Combining Functions

The topic with functions that we need to deal with is combining functions.  For the most part this means performing basic arithmetic (addition, subtraction, multiplication, and division) with functions.  There is one new way of combing functions that we’ll need to look at as well.

Let’s start with basic arithmetic of functions.  Given two functions  and  we have the following notation and operations.

Sometimes we will drop the  part and just write the following,

Note as well that we put x’s in the parenthesis, but we will often put in numbers as well.  Let’s take a quick look at an example.

 Example 1  Given  and  evaluate each of the following. (a)    [Solution] (b)    [Solution] (c)    [Solution] (d)    [Solution] Solution By evaluate we mean one of two things depending on what is in the parenthesis.  If there is a number in the parenthesis then we want a number.  If there is an x (or no parenthesis, since that implies and x) then we will perform the operation and simplify as much as possible.   (a)   In this case we’ve got a number so we need to do some function evaluation.                                             (b)   Here we don’t have an x or a number so this implies the same thing as if there were an x in parenthesis.  Therefore, we’ll subtract the two functions and simplify.  Note as well that this is written in the opposite order from the definitions above, but it works the same way.                                                       (c)   As with the last part this has an x in the parenthesis so we’ll multiply and then simplify.                                               (d)   In this final part we’ve got a number so we’ll once again be doing function evaluation.

Now we need to discuss the new method of combining functions.  The new method of combining functions is called function composition.  Here is the definition.

Given two functions   and  we have the following two definitions.

 The composition of  and  (note the order here) is,                 The composition of  and  (again, note the order) is,

We need to note a couple of things here about function composition.  First this is NOT multiplication.  Regardless of what the notation may suggest to you this is simply not multiplication.

Second, the order we’ve listed the two functions is very important since more often than not we will get different answers depending on the order we’ve listed them.

Finally, function composition is really nothing more than function evaluation.  All we’re really doing is plugging the second function listed into the first function listed.  In the definitions we used  for the function evaluation instead of the standard  to avoid confusion with too many sets of parenthesis, but the evaluation will work the same.

Let’s take a look at a couple of examples.

 Example 2  Given  and  evaluate each of the following. (a)    [Solution] (b)    [Solution] (c)    [Solution] Solution (a) These are the same functions that we used in the first set of examples and we’ve already done this part there so we won’t redo all the work here.  It is here only here to prove the point that function composition is NOT function multiplication.    Here is the multiplication of these two functions.                                                       (b) Now, for function composition all you need to remember is that we are going to plug the second function listed into the first function listed.  If you can remember that you should always be able to write down the basic formula for the composition.   Here is this function composition.                                                           Now, notice that since we’ve got a formula for  we went ahead and plugged that in first.  Also, we did this kind of function evaluation in the first section we looked at for functions.  At the time it probably didn’t seem all that useful to be looking at that kind of function evaluation, yet here it is.   Let’s finish this problem out.                                               Notice that this is very different from the multiplication!  Remember that function composition is NOT function multiplication.   (c) We’ll not put in the detail in this part as it works essentially the same as the previous part.                                                     Notice that this is NOT the same answer as that from the second part.  In most cases the order in which we do the function composition will give different answers.

The ideas from the previous example are important enough to make again.  First, function composition is NOT function multiplication.  Second, the order in which we do function composition is important.  In most case we will get different answers with a different order.  Note however, that there are times when we will get the same answer regardless of the order.

Let’s work a couple more examples.

 Example 3  Given  and  evaluate each of the following. (a)    [Solution] (b)    [Solution] (c)    [Solution] (d)    [Solution] (e)    [Solution]   Solution (a)   Not much to do here other than run through the formula.                                                         (b)   Again, not much to do here.                                                           (c)   Now in this case do not get excited about the fact that the two functions here are the same.  Composition works the same way.                                                       (d)   In this case, unlike all the previous examples, we’ve got a number in the parenthesis instead of an x, but it works in exactly the same manner.                                                            (e)   Again, we’ve got a number here.  This time there are actually two ways to do this evaluation.  The first is to simply use the results from the first part since that is a formula for the general function composition.   If we do the problem that way we get,                                                            We could also do the evaluation directly as we did in the previous part.  The answers should be the same regardless of how we get them.  So, to get another example down of this kind of evaluation let’s also do the evaluation directly.                                                           So, sure enough we got the same answer, although it did take more work to get it.

 Example 4  Given  and  evaluate each of the following. (a)    [Solution] (b)    [Solution] Solution (a) Hopefully, by this point these aren’t too bad.                                                       Looks like things simplified down considerable here.     (b) All we need to do here is use the formula so let’s do that.                                                        So, in this case we get the same answer regardless of the order we did the composition in.

So, as we’ve seen from this last example it is possible to get the same answer from both compositions on occasion.  In fact when the answer from both composition is x, as it is in this case, we know that these two functions are very special functions.  In fact, they are so special that we’re going to devote the whole next section to these kinds of functions.  So, let’s move onto the next section.

 Graphing Functions Previous Section Next Section Inverse Functions Solving Equations and Inequalities Previous Chapter Next Chapter Common Graphs

[Notes]

 © 2003 - 2016 Paul Dawkins