In this explainer, we will learn how to add, subtract, multiply, or divide two given functions to create a new function and how to identify the domain of the new function.
Combining functions in this way is incredibly intuitive.
Consider the functions
The sum of these functions will give us a new function,
We define the sum of these functions using the notation , where . The domain of this new function is the intersection of the domains of the functions and .
In a similar way, is found by subtracting the function from :
The domain of is the intersection of the domains of the functions and .
Next, is the product of the functions and, once again, its domain is the intersection of the domains of the functions and .
Finally, is the quotient of the functions:
The domain of is the intersection of the domains of the functions and , but we exclude values of from the domain of the combined function that make .
These processes can be generalized for any two real-valued functions and .
Definition: Combining Functions and Domain of a Combined Function
Two functions and can be combined as follows:
The domain of the combined function is the intersection of the domains of the functions and .
In the case of , we exclude values of from the domain of the combined function such that .
Note
The domain of each combination is the intersection of the domains of and . Both functions must be defined at a point for the combination to be defined and we cannot, therefore, adjust the domain of the combination by considering it as an entirely separate function.
In our first example, we will look at how to combine a pair of functions by finding their sum and consider how the domain of the combined function might restrict our solutions.
Example 1: Finding and Evaluating the Sum of a Rational and a Linear Function
If and are two real functions where and , determine the value of if possible.
Answer
The sum of two real-valued functions and is given by where the domain of is the intersection of the domains of and .
To find , we will find the sum of the functions and then check that is in the domain of . If it is, we can then evaluate at :
The domain of is the intersection of the domains of and . That is the set of possible inputs ( values) that can be substituted into both functions and will output real values.
is a polynomial, so its domain is the set of real numbers. , however, is a rational function; the domain of a rational function is all real numbers excluding those where the denominator is equal to zero. To find these values, we set the denominator equal to zero and solve for :
The values of where the function is undefined are and 1. The domain of is therefore
Since the domain of is the intersection, or overlap, of the domains of and , this means the domain of is also
Since is not in the domain of our new function, we cannot evaluate .
is undefined.
In our first example, we found the sum of a rational and a polynomial function, and the domain of this new function. We saw that, since the domain of the sum of two functions is the intersection of the domains of both functions, the function will not necessarily be defined for all real values of . In our next example, we will find the domain of the sum of a polynomial and a root function.
Example 2: Finding the Domain of the Sum of Two Real Functions
If and are two real functions where and , find the domain of the function .
Answer
The sum of two functions and is given by where the domain of is the intersection of the domains of and .
Since this question requires us to calculate the domain of , we will consider the domains of and and then find their intersection. In other words, we will find the set of possible values that can be substituted into both functions that will output real values.
is a polynomial function, so its domain is the set of real numbers.
is a radical function, and we know that the square root of a negative number is not real, so we need to consider the values of that ensure the expression inside the root is nonnegative:
In interval notation, the domain of is given by
The domain of is the intersection, or overlap, of the two domains. That is,
The intersection of these two sets is .
Thus, the domain of is given by .
We will now look at how to evaluate the difference between two functions.
Example 3: Evaluating the Difference between Two Functions
If and are two real functions where and , determine the value of if possible.
Answer
The difference of two functions and is given by where the domain of is the intersection of the domains of and .
To find , we will check that is in the intersection of the domains of and . If it is, we can then subtract the functions and substitute into the new function .
is a polynomial, so its domain is the set of real numbers. is a rational function, so we will need to be careful when considering its denominator.
Since it is the quotient of two polynomials, its domain will be the set of real numbers excluding those values of that make the denominator zero. To find these values, we set the denominator equal to zero and solve for :
Since the denominator of the rational function is zero when and , we need to exclude these values of from the domain of .
The domain of is therefore
The domain of is the intersection, or overlap, of the two domains. The intersection of the set of real numbers and the domain of is just the domain of ; it is
Since is not included in the domain of , we cannot substitute it into the function.
is undefined.
Example 4: Determining the Product and Resulting Domain of Two Functions
Given that and find and state its domain.
Answer
The product of two functions and is given as or . Then, the domain of the combined function is the intersection of the domains of and .
We can therefore say that
The domain of will be the intersection of the domains of and .
We are given the domains of the two functions in the question. We are told that maps numbers from the set of positive real numbers onto the set of real numbers, so its domain is . The domain of is .
The intersection of these two sets is the set of positive real numbers up to and including 1, βin other words, the interval .
Therefore, , .
Finding the domain of a combined function has, until this stage, only involved finding the domains of the given functions. When we are finding the quotient of two functions, we also need to consider the values of that make the divisor equal to zero and exclude those from the domain of the combined function, as in our next example.
Example 5: Evaluating the Division of Two Functions
Given that and are two real functions where and , find the value of if possible.
Answer
We can combine two functions by finding their quotient, such that where the domain of the new function is the intersection of the domains of and , excluding any values of that make .
Since we are looking to evaluate , we will check that is defined for by calculating the domain of this combined function.
Since is a polynomial, the domain of is the set of real numbers. The domain of will be the set of values such that the expression inside the square root is nonnegative.
In other words,
The intersection of the domains of and is . To find the domain of , we need to remove values of that make from this set. Since , we set this expression equal to zero and solve for :
The domain of is
Since is within the domain of the combined function, we will be able to evaluate :
is defined and is equal to .
Letβs once again consider the functions and .
Substituting into both functions, we find, and
Next, finding their quotient,
We observe that evaluating the functions at and then combining them yields the same result as evaluating the combined function at . In general, this is true for all combinations of functions.
Note
For values of in the domain of the combined function, the result will be the same if we evaluate the combined function at some as if we evaluate the functions at this and then combine them.
In our final example, we will look at how to apply the rules for combining functions when one of the functions is piecewise defined.
Example 6: Finding the Domain of Piecewise-Defined Rational Functions
If and are two real functions where and , determine the domain of the function .
Answer
The function is the quotient of the functions and such that
The domain of this new function is the intersection of the domains of and , excluding the values of that make .
Letβs begin with . is a polynomial, so the domain of this function is the set of real numbers.
is a piecewise defined function, and its subfunctions are both linear. Its domain is therefore the union of the subdomains. This is the interval .
The intersection of the domains of and is therefore the interval . To find the domain of , we need to exclude the values of that make the function from this interval. We will set each subfunction equal to zero and solve for , considering the domains of each subfunction as we do so:
Since is not in the subdomain of this subfunction, which is , we do not need to exclude it from the domain of :
We would need to exclude this from the domain of ; however, it is already outside of the subdomain of this subfunction.
The domain of is therefore .
Key Points
- Two real-valued functions and can be combined by finding their sum, difference, product, or quotient.
- For values of in the domains of both
and ,
- ,
- ,
- For values of in the domains of both and , and where , .