Section 10.2 Domain and Range
A function is a process for turning input values into output values. Occasionally a function \(f\) will have input values for which the process breaks down.
Subsection 10.2.1 Domain
Example 10.2.1.
Let \(P\) be the population of Portland as a function of the year. According to Googleâ1â we can say that:
But what if we asked to find \(P(1600)\text{?}\) The question doesn't really make sense anymore. The Multnomah tribe lived in villages in the area, but the city of Portland was not incorporated until 1851. We say that \(P(1600)\) is undefined.
Example 10.2.2.
If \(m\) is a person's mass in kg, let \(w(m)\) be their weight in lb. There is an approximate formula for \(w\text{:}\)
From this formula we can find:
which tells us that a \(50\)- kg person weighs 110 lb, and an \(80\)- kg person weighs 176 lb.
What if we asked for \(w(-100)\text{?}\) In the context of this example, we would be asking for the weight of a person whose mass is -100 kg. This is clearly nonsense. That means that \(w(-100)\) is undefined. Note that the context of the example is telling us that \(w(-100)\) is undefined even though the formula alone might suggest that \(w(-100)=-220\text{.}\)
Example 10.2.3.
Let \(g\) have the formula
For most \(x\)-values, \(g(x)\) is perfectly computable:
But if we try to compute \(g(7)\text{,}\) we run into an issue of arithmetic.
The expression \(\frac{7}{0}\) is undefined. There is no number that this could equal.
Checkpoint 10.2.4.
These examples should motivate the following definition.
Definition 10.2.5. Domain.
The domain of a function \(f\) is the collection of all of its valid input values.
Example 10.2.6.
Referring to the functions from Examples 10.2.1â10.2.3
The domain of \(P\) is all years starting from 1851 and later. It would also be reasonable to say that the domain is actually all years from 1851 up to the current year, since we cannot guarantee that Portland will exist forever.
The domain of \(w\) is all positive real numbers. It is nonsensical to have a person with negative mass or even one with zero mass. While there is some lower bound for the smallest mass a person could have, and also an upper bound for the largest mass a person could have, these boundaries are gray. We can say for sure that non-positive numbers should never be used as inputs for \(w\text{.}\)
The domain of \(g\) is all real numbers except \(7\text{.}\) This is the only number that causes a breakdown in \(g\)'s formula.
Subsection 10.2.2 Interval, Set, and Set-Builder Notation
Communicating the domain of a function can be wordy. In mathematics, we can communicate the same information using concise notation that is accepted for use almost everywhere. Figure 10.2.7 contains example functions from this section and their domains, and demonstrates interval notation for these domains. Basic interval notation is covered in Section 1.7, but some of our examples here go beyond what that section covers.
Again, basic interval notation is covered in Section 1.7, but one thing appears in Figure 10.2.7 that is not explained in that earlier section: the \(\cup\) symbol, which we see in the domain of \(g\text{.}\)
Occasionally there is a need to consider number line pictures such as Figure 10.2.8, where two or more intervals appear.
This picture is trying to tell you to consider numbers that are between \(-5\) and \(1\text{,}\) together with numbers that are between \(4\) and \(7\text{.}\) That word âtogetherâ is related to the word âunion,â and in math the union symbol, \(\cup\text{,}\) captures this idea. So we can write the numbers in this picture as
(which uses interval notation).
With the domain of \(g\) in Figure 10.2.7, the number line picture shows us another âunionâ of two intervals. They are very close together, but there are still two separated intervals in that picture: \((-\infty,7)\) and \((7,\infty)\text{.}\) Their union is represented by \((-\infty,7)\cup(7,\infty)\text{.}\)
Checkpoint 10.2.9.
Checkpoint 10.2.10.
Sometimes we will consider collections of only a short list of numbers. In those cases, we use set notation (first introduced in Section 1.6). With set notation, we have a list of numbers in mind, and we simply list all of those numbers. Curly braces are standard for surrounding the list. Figure 10.2.11 illustrates set notation in use.
Checkpoint 10.2.12.
While most collections of numbers that we will encounter can be described using a combination of interval notation and set notation, there is another commonly used notation that is very useful in algebra: set-builder notation, which was introduced in Section 1.7. Set-builder notation also uses curly braces. Set-builder notation provides a template for what a number that is under consideration might look like, and then it gives you restrictions on how to use that template. A very basic example of set-builder notation is
Verbally, this is âthe set of all \(x\) such that \(x\) is greater than or equal to \(3\text{.}\)â Figure 10.2.13 gives more examples of set-builder notation in use.
Checkpoint 10.2.14.
Example 10.2.15.
What is the domain of the function \(A\text{,}\) where \(A(x)=\frac{2x+1}{x^2-2x-8}\text{?}\)
Note that if you plugged in some value for \(x\text{,}\) the only thing that might go wrong is if the denominator equals \(0\text{.}\) So a bad value for \(x\) would be when
Here, we used a basic factoring technique from Section 7.3. To continue, either
These are the bad \(x\)-values because they lead to division by \(0\) in the formula for \(A\text{.}\) So on a number line, if we wanted to picture the domain of \(A\text{,}\) we would make a sketch like:
So the domain is the union of three intervals: \((-\infty,-2)\cup(-2,4)\cup(4,\infty)\text{.}\)
Example 10.2.16.
What is the domain of the function \(B\text{,}\) where \(B(x)=\sqrt{7-x}+3\text{?}\)
Note that if you plugged in some value for \(x\text{,}\) the only thing that might go wrong is if the value in the radical is negative. So the good values for \(x\) would be when
So on a number line, if we wanted to picture the domain of \(B\text{,}\) we would make a sketch like:
So the domain is the interval \((-\infty,7]\text{.}\)
There are three main properties of algebraic functions that cause numbers to be excluded from a domain, which are summarized here.
Subsection 10.2.3 Range
The domain of a function is the collection of its valid inputs; there is a similar notion for output.
Definition 10.2.18. Range.
The range of a function \(f\) is the collection of all of its possible output values.
Example 10.2.19.
Let \(f\) be the function defined by the formula \(f(x)=x^2\text{.}\) Finding \(f\)'s domain is straightforward. Any number anywhere can be squared to produce an output, so \(f\) has domain \((-\infty,\infty)\text{.}\) What is the range of \(f\text{?}\)
We would like to describe the collection of possible numbers that \(f\) can give as output. We will use a graphical approach. Figure 10.2.20 displays a graph of \(f\text{,}\) and the visualization that reveals \(f\)'s range.
Output values are the \(y\)-coordinates in a graph. If we âslide the inkâ left and right over to the \(y\)-axis to emphasize what the \(y\)-values in the graph are, we have \(y\)-values that start from \(0\) and continue upward forever. Therefore, the range is \([0,\infty)\text{.}\)
Warning 10.2.21. Finding range from a formula.
Sometimes it is possible to compute a range without the aid of a graph. However, doing so can often require techniques covered in calculus. Therefore, when you are asked to find the range of a function based on its formula, your approach will most often need to be a graphical one.
Example 10.2.22.
Given the function \(g\) graphed in Figure 10.2.23, find the domain and range of \(g\text{.}\)
To find the domain, we can visualize all of the \(x\)-values that are valid inputs for this function by âsliding the inkâ down onto the \(x\)-axis. The arrows at the far left and far right of the curve indicate that whatever pattern we see in the graph continues off to the left and right. Here, we see that the arms of the graph appear to be tapering down to the \(x\)-axis and extending left and right forever. Every \(x\)-value can be used to get an output for the function, so the domain is \((-\infty,\infty)\text{.}\)
If we visualize the possible outputs by âsliding the inkâ sideways onto the \(y\)-axis, we find that outputs as high as \(3\) are possible (including \(3\) itself). The outputs appear to get very close to \(0\) when \(x\) is large, but they aren't quite equal to \(0\text{.}\) So the range is \((0,3]\text{.}\)
Checkpoint 10.2.26.
The examples of finding domain and range so far have all involved either a verbal description of a function, a formula for that function, or a graph of that function. Recall that there is a fourth perspective on functions: a table. In the case of a table, we have very limited information about the function's inputs and outputs. If the table is all that we have, then there are a handful of input values listed in the table for which we know outputs. For any other input, the output is undefined.
Example 10.2.27.
Consider the function \(k\) given in Table 10.2.28. What is the domain and range of \(k\text{?}\)
\(x\) | \(k(x)\) |
\(3\) | \(4\) |
\(8\) | \(5\) |
\(10\) | \(5\) |
All that we know about \(k\) is that \(k(3)=4\text{,}\) \(k(8)=5\text{,}\) and \(k(10)=5\text{.}\) Without any other information such as a formula for \(k\) or a context for \(k\) that tells us its verbal description, we must assume that its domain is \(\{3,8,10\}\text{;}\) these are the only valid input for \(k\text{.}\) Similarly, \(k\)'s range is \(\{4,5\}\text{.}\)
Note that we have used set notation, not interval notation, since the answers here were lists of \(x\)-values (for the domain) and \(y\)-values (for the range). Also note that we could graph the information that we have about \(k\) in Figure 10.2.29, and the visualization of âsliding inkâ to determine domain and range still works.
Exercises 10.2.4 Exercises
Review and Warmup
1.
For the interval expressed in the number line, write it using set-builder notation and interval notation.
In set-builder notation:
In interval notation:
2.
For the interval expressed in the number line, write it using set-builder notation and interval notation.
In set-builder notation:
In interval notation:
3.
For the interval expressed in the number line, write it using set-builder notation and interval notation.
In set-builder notation:
In interval notation:
4.
For the interval expressed in the number line, write it using set-builder notation and interval notation.
In set-builder notation:
In interval notation:
Domain and Range From a Graph
5.
A function is graphed.
This function has domain and range .
6.
A function is graphed.
This function has domain and range .
7.
A function is graphed.
This function has domain and range .
8.
A function is graphed.
This function has domain and range .
9.
A function is graphed.
This function has domain and range .
10.
A function is graphed.
This function has domain and range .
11.
A function is graphed.
This function has domain and range .
12.
A function is graphed.
This function has domain and range .
13.
A function is graphed.
This function has domain and range .
14.
A function is graphed.
This function has domain and range .
15.
A function is graphed.
This function has domain and range .
16.
A function is graphed.
This function has domain and range .
17.
A function is graphed.
The function has domain and range .
18.
A function is graphed.
The function has domain and range .
19.
A function is graphed.
The function has domain and range .
20.
A function is graphed.
The function has domain and range .
21.
A function is graphed.
The function has domain and range .
22.
A function is graphed.
The function has domain and range .
23.
A function is graphed.
The function has domain and range .
24.
A function is graphed.
The function has domain and range .
25.
A function is graphed.
The function has domain and range .
26.
A function is graphed.
The function has domain and range .
27.
A function is graphed.
The function has domain and range .
28.
A function is graphed.
The function has domain and range .
Domain From a Formula
29.
Find the domain of \(g\) where \(g\!\left(x\right)=-2x+2\text{.}\)
30.
Find the domain of \(g\) where \(g\!\left(x\right)=-9x-10\text{.}\)
31.
Find the domain of \(h\) where \(\displaystyle{h(x)={{\frac{8}{5}}x^{3}}}\text{.}\)
32.
Find the domain of \(F\) where \(\displaystyle{F(x)={{\frac{4}{9}}x^{2}}}\text{.}\)
33.
Find the domain of \(G\) where \(\displaystyle{G(x)=\lvert {-10x-5} \rvert}\text{.}\)
34.
Find the domain of \(H\) where \(\displaystyle{H(x)=\lvert {4x+4} \rvert}\text{.}\)
35.
Find the domain of \(\displaystyle{H}\) where \(\displaystyle{H(x)={\frac{x}{x+4}}}\text{.}\)
36.
Find the domain of \(\displaystyle{K}\) where \(\displaystyle{K(x)={\frac{5x}{x-10}}}\text{.}\)
37.
Find the domain of \(\displaystyle{f}\) where \(\displaystyle{f(x)={\frac{8x}{7x-3}}}\text{.}\)
38.
Find the domain of \(\displaystyle{g}\) where \(\displaystyle{g(x)={\frac{3x}{7x+5}}}\text{.}\)
39.
Find the domain of \(\displaystyle{g}\) where \(\displaystyle{g(x)={\frac{9x+6}{x^{2}-15x+56}}}\text{.}\)
40.
Find the domain of \(\displaystyle{h}\) where \(\displaystyle{h(x)={\frac{2x-6}{x^{2}+8x+7}}}\text{.}\)
41.
Find the domain of \(\displaystyle{F}\) where \(\displaystyle{F(x)={\frac{2-5x}{x^{2}+x}}}\text{.}\)
42.
Find the domain of \(\displaystyle{G}\) where \(\displaystyle{G(x)={\frac{8x-10}{x^{2}-5x}}}\text{.}\)
43.
Find the domain of \(\displaystyle{H}\) where \(\displaystyle{H(x)={\frac{x-1}{x^{2}-100}}}\text{.}\)
44.
Find the domain of \(\displaystyle{H}\) where \(\displaystyle{H(x)={\frac{8-6x}{x^{2}-9}}}\text{.}\)
45.
Find the domain of \(\displaystyle{K}\) where \(\displaystyle{K(x)={\frac{7x-5}{36x^{2}-49}}}\text{.}\)
46.
Find the domain of \(\displaystyle{f}\) where \(\displaystyle{f(x)={\frac{4x-7}{36x^{2}-25}}}\text{.}\)
47.
Find the domain of \(\displaystyle{g}\) where \(\displaystyle{g(x)={-\frac{7x+8}{x^{2}+9}}}\text{.}\)
48.
Find the domain of \(\displaystyle{g}\) where \(\displaystyle{g(x)={\frac{6x+1}{x^{2}+7}}}\text{.}\)
49.
Find the domain of the function.
\(h(x)={-\frac{1}{\sqrt{x+9}}}\)
50.
Find the domain of the function.
\(F(x)={-\frac{8}{\sqrt{x-3}}}\)
51.
Find the domain of the function.
\(G(x)={\sqrt{8-x}}\)
52.
Find the domain of the function.
\(H(x)={\sqrt{5-x}}\)
53.
Find the domain of the function.
\(H(x)={\sqrt{2+13x}}\)
54.
Find the domain of the function.
\(K(x)={\sqrt{8+17x}}\)
55.
Find the domain of \(c\) where \(\displaystyle{c(x)=\frac{x+2}{x^2-64}}\text{.}\)
56.
Find the domain of \(p\) where \(\displaystyle{p(x)=\frac{x+4}{x^2-1}}\text{.}\)
57.
Find the domain of \(t\) where \(\displaystyle{t(x)= \frac{16x+4}{x^2+ 3 x-18} }\text{.}\)
58.
Find the domain of \(C\) where \(\displaystyle{C(x)= \frac{16x - 4}{x^2+ 4 x-32} }\text{.}\)
59.
Find the domain of \(y\) where \(\displaystyle{y(x)= \frac{\sqrt{10 + x}}{10 - x}}\text{.}\)
60.
Find the domain of \(A\) where \(\displaystyle{A(x)= \frac{\sqrt{13 + x}}{7 - x}}\text{.}\)
Domain and Range Using Context
61.
Haley bought a used car for \({\$9{,}000}\text{.}\) The carâs value decreases at a constant rate each year. After \(7\) years, the value decreased to \({\$6{,}900}\text{.}\)
Use a function to model the carâs value as the number of years increases. Find this functionâs domain and range in this context.
The functionâs domain in this context is .
The functionâs range in this context is .
62.
Sharnell bought a used car for \({\$9{,}600}\text{.}\) The carâs value decreases at a constant rate each year. After \(7\) years, the value decreased to \({\$6{,}800}\text{.}\)
Use a function to model the carâs value as the number of years increases. Find this functionâs domain and range in this context.
The functionâs domain in this context is .
The functionâs range in this context is .
63.
Assume a car uses gas at a constant rate. After driving \(15\) miles since a full tank of gas was purchased, there was \(16.65\) gallons of gas left; after driving \(50\) miles since a full tank of gas was purchased, there was \(13.5\) gallons of gas left.
Use a function to model the amount of gas in the tank (in gallons). Let the independent variable be the number of miles driven since a full tank of gas was purchased. Find this functionâs domain and range in this context.
The functionâs domain in this context is .
The functionâs range in this context is .
64.
Assume a car uses gas at a constant rate. After driving \(30\) miles since a full tank of gas was purchased, there was \(6.8\) gallons of gas left; after driving \(70\) miles since a full tank of gas was purchased, there was \(5.2\) gallons of gas left.
Use a function to model the amount of gas in the tank (in gallons). Let the independent variable be the number of miles driven since a full tank of gas was purchased. Find this functionâs domain and range in this context.
The functionâs domain in this context is .
The functionâs range in this context is .
65.
Assume a tree grows at a constant rate. When the tree was planted, it was \(2.3\) feet tall. After \(8\) years, the tree grew to \(8.7\) feet tall.
Use a function to model the treeâs height as time passes. With the context that the tree can live \(200\) years after planting, find this functionâs domain and range.
The functionâs domain in this context is .
The functionâs range in this context is .
66.
Assume a tree grows at a constant rate. When the tree was planted, it was \(2.5\) feet tall. After \(5\) years, the tree grew to \(5\) feet tall.
Use a function to model the treeâs height as time passes. With the context that the tree can live \(180\) years after planting, find this functionâs domain and range.
The functionâs domain in this context is .
The functionâs range in this context is .
67.
Kara inherited a collection of coins when she was \(12\) years old. Ever since, she has been adding into the collection the same number of coins each year. When she was \(19\) years old, there were \(465\) coins in the collection. When she was \(28\) years old, there were \(780\) coins in the collection. At the age of \(60\text{,}\) Kara donated all her coins to a museum.
Use a function to model the number of coins in Karaâs collection, starting in the year she inherited the collection, and ending in the year the collection was donated. Find this functionâs domain and range in this context.
The functionâs domain in this context is .
The functionâs range in this context is .
68.
Scot inherited a collection of coins when he was \(12\) years old. Ever since, he has been adding into the collection the same number of coins each year. When he was \(17\) years old, there were \(540\) coins in the collection. When he was \(26\) years old, there were \(990\) coins in the collection. At the age of \(54\text{,}\) Scot donated all his coins to a museum.
Use a function to model the number of coins in Scotâs collection, starting in the year he inherited the collection, and ending in the year the collection was donated. Find this functionâs domain and range in this context.
The functionâs domain in this context is .
The functionâs range in this context is .
69.
An object was shot up into the air at an initial vertical speed of \(512\) feet per second. Its height as time passes can be modeled by the quadratic function \(f\text{,}\) where \(f(t)={-16t^{2}+512t}\text{.}\) Here \(t\) represents the number of seconds since the objectâs release, and \(f(t)\) represents the objectâs height in feet.
Find the functionâs domain and range in this context.
The functionâs domain in this context is .
The functionâs range in this context is .
70.
An object was shot up into the air at an initial vertical speed of \(544\) feet per second. Its height as time passes can be modeled by the quadratic function \(f\text{,}\) where \(f(t)={-16t^{2}+544t}\text{.}\) Here \(t\) represents the number of seconds since the objectâs release, and \(f(t)\) represents the objectâs height in feet.
Find the functionâs domain and range in this context.
The functionâs domain in this context is .
The functionâs range in this context is .
71.
From a clifftop over the ocean \({137.69\ {\rm m}}\) above sea level, an object was shot straight up into the air with an initial vertical speed of \({132.79\ {\textstyle\frac{\rm\mathstrut m}{\rm\mathstrut s}}}\text{.}\) On its way down it missed the cliff and fell into the ocean, where it floats on the surface. Its height (above sea level) as time passes can be modeled by the quadratic function \(f\text{,}\) where \(f(t)={-4.9t^{2}+132.79t+137.69}\text{.}\) Here \(t\) represents the number of seconds since the objectâs release, and \(f(t)\) represents the objectâs height (above sea level) in meters.
Find the functionâs domain and range in this context.
The functionâs domain in this context is .
The functionâs range in this context is .
72.
From a clifftop over the ocean \({120.54\ {\rm m}}\) above sea level, an object was shot straight up into the air with an initial vertical speed of \({115.64\ {\textstyle\frac{\rm\mathstrut m}{\rm\mathstrut s}}}\text{.}\) On its way down it missed the cliff and fell into the ocean, where it floats on the surface. Its height (above sea level) as time passes can be modeled by the quadratic function \(f\text{,}\) where \(f(t)={-4.9t^{2}+115.64t+120.54}\text{.}\) Here \(t\) represents the number of seconds since the objectâs release, and \(f(t)\) represents the objectâs height (above sea level) in meters.
Find the functionâs domain and range in this context.
The functionâs domain in this context is .
The functionâs range in this context is .
73.
You will build a rectangular sheep pen next to a river. There is no need to build a fence along the river, so you only need to build three sides. You have a total of \(400\) feet of fence to use. Use a function to model the area, where the input is the length of the two sides perpendicular to the river. Find the functionâs domain and range in this context.
The functionâs domain is .
The functionâs range is .
74.
You will build a rectangular sheep pen next to a river. There is no need to build a fence along the river, so you only need to build three sides. You have a total of \(410\) feet of fence to use. Use a function to model the area, where the input is the length of the two sides perpendicular to the river. Find the functionâs domain and range in this context.
The functionâs domain is .
The functionâs range is .
75.
A student's first name is a function of their student identification number.
- Describe the domain for this function in a sentence. Specifics are not needed.
- Describe the range for this function in a sentence. Specifics are not needed.
76.
The year a car was made is a function of its VIN (Vehicle Identification Number).
- Describe the domain for this function in a sentence. Specifics are not needed.
- Describe the range for this function in a sentence. Specifics are not needed.