We will now return to our set of toolkit functions to determine the domain and range of each.
How To: Given the formula for a function, determine the domain and range.
Exclude from the domain any input values that result in division by zero.
Exclude from the domain any input values that have nonreal (or undefined) number outputs.
Use the valid input values to determine the range of the output values.
Look at the function graph and table values to confirm the actual function behavior.
Example 8: Finding the Domain and Range Using Toolkit Functions
Find the domain and range of [latex]f\left(x\right)=2{x}^{3}-x[/latex].
Solution
There are no restrictions on the domain, as any real number may be cubed and then subtracted from the result.
The domain is [latex]\left(-\infty ,\infty \right)[/latex] and the range is also [latex]\left(-\infty ,\infty \right)[/latex].
Example 9: Finding the Domain and Range
Find the domain and range of [latex]f\left(x\right)=\frac{2}{x+1}[/latex].
Solution
We cannot evaluate the function at [latex]-1[/latex] because division by zero is undefined. The domain is [latex]\left(-\infty ,-1\right)\cup \left(-1,\infty \right)[/latex]. Because the function is never zero, we exclude 0 from the range. The range is [latex]\left(-\infty ,0\right)\cup \left(0,\infty \right)[/latex].
Example 10: Finding the Domain and Range
Find the domain and range of [latex]f\left(x\right)=2\sqrt{x+4}[/latex].
Solution
We cannot take the square root of a negative number, so the value inside the radical must be nonnegative.
[latex]x+4\ge 0\text{ when }x\ge -4[/latex]
The domain of [latex]f\left(x\right)[/latex] is [latex]\left[-4,\infty \right)[/latex].
We then find the range. We know that [latex]f\left(-4\right)=0[/latex], and the function value increases as [latex]x[/latex] increases without any upper limit. We conclude that the range of [latex]f[/latex] is [latex]\left[0,\infty \right)[/latex].
Analysis of the Solution
Figure 20 represents the function [latex]f[/latex].
Figure 20
Try It 7
Find the domain and range of [latex]f\left(x\right)=-\sqrt{2-x}[/latex].
Solution
Licenses & Attributions
CC licensed content, Shared previously
Precalculus.Provided by: OpenStaxAuthored by: Jay Abramson, et al..Located at: https://openstax.org/books/precalculus/pages/1-introduction-to-functions.License: CC BY: Attribution. License terms: Download For Free at : http://cnx.org/contents/[email protected]..