Compositions of Functions
Learning Objectives
- Combine functions using algebraic operations.
- Create a new function by composition of functions.
Function composition is only one way to combine existing functions. Another way is to carry out the usual algebraic operations on functions, such as addition, subtraction, multiplication and division. We do this by performing the operations with the function outputs, defining the result as the output of our new function.
Suppose we need to add two columns of numbers that represent a husband and wife’s separate annual incomes over a period of years, with the result being their total household income. We want to do this for every year, adding only that year’s incomes and then collecting all the data in a new column. If is the wife’s income and is the husband’s income in year , and we want to represent the total income, then we can define a new function.
If this holds true for every year, then we can focus on the relation between the functions without reference to a year and write
Just as for this sum of two functions, we can define difference, product, and ratio functions for any pair of functions that have the same kinds of inputs (not necessarily numbers) and also the same kinds of outputs (which do have to be numbers so that the usual operations of algebra can apply to them, and which also must have the same units or no units when we add and subtract). In this way, we can think of adding, subtracting, multiplying, and dividing functions.
For two functions and with real number outputs, we define new functions , and by the relations
Example: Performing Algebraic Operations on Functions
Find and simplify the functions and , given and . Give the domain of your result. Are they the same function?Answer:
Begin by writing the general form, and then substitute the given functions.
No, the functions are not the same.
Note: For , the condition is necessary because when , the denominator is equal to 0, which makes the function undefined.
Try It now
Find and simplify the functions and .Are they the same function?
Answer: No, the functions are not the same.
try it now
Now we will explore the graph of a composition of functions. Use Desmos to graph the following functions:
Example: Interpreting Composite Functions
The function gives the number of calories burned completing sit-ups, and gives the number of sit-ups a person can complete in minutes. Interpret .Answer: The inside expression in the composition is . Because the input to the s-function is time, represents 3 minutes, and is the number of sit-ups completed in 3 minutes. Using as the input to the function gives us the number of calories burned during the number of sit-ups that can be completed in 3 minutes, or simply the number of calories burned in 3 minutes (by doing sit-ups).
Example: Investigating the Order of Function Composition
Suppose gives miles that can be driven in hours and gives the gallons of gas used in driving miles. Which of these expressions is meaningful: orAnswer: The function is a function whose output is the number of miles driven corresponding to the number of hours driven. The function is a function whose output is the number of gallons used corresponding to the number of miles driven. This means: The expression takes miles as the input and a number of gallons as the output. The function requires a number of hours as the input. Trying to input a number of gallons does not make sense. The expression is meaningless. The expression takes hours as input and a number of miles driven as the output. The function requires a number of miles as the input. Using (miles driven) as an input value for , where gallons of gas depends on miles driven, does make sense. The expression makes sense, and will yield the number of gallons of gas used, , driving a certain number of miles, , in hours.