Summary: This module defines the domain and range of a function.
Note: Your browser may not currently support MathML. See our browser support page for additional details. You can always view the correct math in the PDF version.
Consider the function
On the other hand, what if this function is handed –4? There is no
A square root cannot successfully act on a negative number. We say that “The domain of
such that
” meaning that if you give this function zero or a positive number, it can act on it; if you give this function a negative number, it cannot.
A subtler example is the function
You are probably familiar with two mathematical operations that are not allowed. The first is, you are not allowed to take the square root of a negative number. As we have seen, this leads to restrictions on the domain of any function that includes square roots.
The second restriction is, you are not allowed to divide by zero. This can also restrict the domain of functions. For instance, the function
So: if you are given a function, how can you find its domain? Look for any number that puts a negative number under the square root; these numbers are not in the domain. Look for any number that causes the function to divide by zero; these numbers are not in the domain. All other numbers are in the domain.
| Function | Domain | Comments |
|---|---|---|
|
|
|
You can take the square root of 0, or of any positive number, but you cannot take the square root of a negative number. |
|
|
|
If you plug in any number greater than or equal to –7, you will be taking a legal square root. If you plug in a number less than –7, you will be taking the square root of a negative number.This domain can also be understood graphically: the graph
|
|
|
|
In other words, the domain is “all numbers except 0.” You are not allowed to divide by 0. You are allowed to divide by anything else. |
|
|
|
If
|
|
|
|
Or, “
|
|
|
All numbers | You can plug any
|
|
|
|
In words, the domain is all numbers greater than or equal to 3, except the number 5. Numbers less than 3 put negative numbers under the square root; 5 causes a division by 0. |
You can confirm all these results with your calculator; try plugging numbers into these functions, and see when you get errors!
A related concept is range.
To illustrate this example, let us return to the function
What numbers might come out of this function? If you put in a –7 you get out a 0. (
It’s easy to get the words domain and range confused—and it’s important to keep them distinct, because although they are related concepts, they are different from each other. One trick that sometimes helps is to remember that, in everyday useage, “your domain” is your home, your land—it is where you begin. A function begins in its own domain. It ends up somewhere out on the range.
Domains and ranges above are sometimes expressed as intervals, using the following rules:
This is easiest to explain with examples.
| This notation... | ...means this... | ...or in other words |
|---|---|---|
|
|
All numbers between –3 and 5, not including –3 and 5. |
|
|
|
All numbers between –3 and 5, including –3 and 5. |
|
|
|
All numbers between –3 and 5, including –3 but not 5. |
|
|
|
All numbers less than or equal to 10. |
|
|
|
All numbers greater than 23. |
|
|
|
All numbers less than 4, and all numbers greater than 4. In other words, all numbers except 4. |
|
"This is the "concepts" book in Kenny Felder's "Advanced Algebra II" series. This text was created with a focus on 'doing' and 'understanding' algebra concepts rather than simply hearing about […]"