The Domain and Range of a Function
The domain of a function is the complete set of values that can be input into the function. It answers the question, “What values am I allowed to put into this function?” To identify the domain, we look for values that will make the function work without causing mathematical errors such as division by zero or taking the square root of a negative number.
The range of a function, conversely, is the complete set of all output values that the function can produce. When we ask, “What values can come out of this function?” we are essentially inquiring about the range. The range is determined by taking all the possible values of the domain and observing what outputs are produced by the function.
domain and range of a function
The set of inputs is called the domain of the function.
The set of outputs is called the range of the function.
How to: Determine the Domain and Range of a Function
Determining the Domain:
- Examine the function for any mathematical restrictions (like division by zero or even roots of negative numbers).
- Exclude these restricted values from the domain.
- Express the domain using set notation or interval notation based on what the question is asking for, considering whether the endpoints are included (closed interval) or not (open interval)
Determining the Range:
- Use the domain to calculate possible outputs.
- Consider the nature of the function: Is it linear, quadratic, exponential? What behavior do these types of functions typically exhibit?
- Determine if there are any maximum or minimum values the outputs cannot exceed.
- Express the range using set notation or interval notation based on what the question is asking for, including endpoints where appropriate.
When describing domains and ranges, both “set notation” and “interval notation” are commonly used.
For the functions [latex]f(x)=x^2[/latex] and [latex]f(x)=\sqrt{x}[/latex], the domains are sets with an infinite number of elements. Clearly we cannot list all these elements. When describing a set with an infinite number of elements, it is often helpful to use set-builder or interval notation. When using set-builder notation to describe a subset of all real numbers, denoted [latex]ℝ[/latex], we write
We read this as the set of real numbers [latex]x[/latex] such that [latex]x[/latex] has some property. For example, if we were interested in the set of real numbers that are greater than one but less than five, we could denote this set using set-builder notation by writing
A set such as this, which contains all numbers greater than [latex]a[/latex] and less than [latex]b[/latex], can also be denoted using the interval notation [latex](a,b)[/latex]. Therefore,
The numbers 1 and 5 are called the endpoints of this set. If we want to consider the set that includes the endpoints, we would denote this set by writing
We can use similar notation if we want to include one of the endpoints, but not the other. To denote the set of nonnegative real numbers, we would use the set-builder notation
The smallest number in this set is zero, but this set does not have a largest number. Using interval notation, we would use the symbol [latex]\infty[/latex], which refers to positive infinity, and we would write the set as
It is important to note that [latex]\infty[/latex] is not a real number. It is used symbolically here to indicate that this set includes all real numbers greater than or equal to zero. Similarly, if we wanted to describe the set of all nonpositive numbers, we could write
Here, the notation [latex]−\infty[/latex] refers to negative infinity, and it indicates that we are including all numbers less than or equal to zero, no matter how small. The set
refers to the set of all real numbers.
Using the union symbol allows us to describe the domain and range of functions that aren’t continuous across all numbers and have breaks or gaps in between.
Consider a function [latex]h(x)[/latex] that represents the reciprocal squared, defined as [latex]h(x) = \frac{1}{(x-1)^2}[/latex].
For the function [latex]h(x)[/latex], the domain excludes [latex]x=1[/latex] because the denominator becomes zero at this point, which is undefined in real number arithmetic.
The domain notation here, using the union symbol [latex]\cup[/latex] communicates that [latex]h(x)[/latex] is defined for all real numbers except [latex]x=1[/latex].
For each of the following functions, determine the domain and range.
- [latex]f(x)=(x-4)^2+5[/latex]
- [latex]f(x)=\sqrt{3x+2}-1[/latex]
- [latex]f(x)=\dfrac{3}{x-2}[/latex]