How do you find the domain and range of a function?
To find the domain of a function, you look for all the valid input values () that the function is allowed to use. To find the range, you figure out all the possible output values () the function can actually produce.
Think of a function like a vending machine. The domain is the type of money the machine accepts—if it only takes quarters, you can't put in a dollar bill. The range is the types of snacks that can come out. You can't get a hot dog if the machine is only stocked with chips and candy. In math, we're just figuring out what numbers are allowed in, and what numbers can come out.
The Domain: Finding Valid Inputs
When looking for the domain, start by assuming it is 'all real numbers.' This means any number will work. Then, play detective and look for math rules that would break the function. If there are no rule-breaking inputs, your domain is indeed all real numbers.
There are two main traps to watch out for. First, you can never divide by zero. If your function has a fraction with in the denominator, you must exclude any value that makes the bottom zero. Second, you cannot take the square root (or any even root) of a negative number in real-number algebra. If you have a square root, the expression inside must be greater than or equal to zero.
The Range: Finding Possible Outputs
Finding the range can be a little trickier than finding the domain because you have to imagine what happens to the function after you plug all those valid values in.
A great way to find the range is to sketch the graph of the function or use a graphing calculator. Look at the lowest point on the -axis the graph reaches and the highest point. For example, if you have a basic parabola , the lowest it ever goes is , but it goes up forever. So, its range is all numbers greater than or equal to .
Writing Your Answers
Your teacher will usually want your answer in either inequality notation or interval notation. Inequality notation uses signs like and . For example, .
Interval notation uses brackets and parentheses. A bracket or means the number is included (like or ). A parenthesis or means the number is not included, and it is always used for infinity ( or ). For example, is written as in interval notation.
Where Students Slip Up
A common mistake is forgetting that infinity always gets a parenthesis in interval notation. Infinity isn't a specific number you can reach and 'include,' so you can never put a hard bracket next to it.
Another common slip is swapping domain and range. Just remember: Domain is Input (), Range is Output (). It helps to remember that alphabetically, D comes before R, and comes before .
Worked through
Find the domain and range of the function . Write your answer in interval notation.
First, let's find the domain by looking for input restrictions. We have a square root, and we know the inside of a square root cannot be negative.
So, we set up an inequality:
Add to both sides:
In interval notation, the domain is .
Next, let's find the range. We know that the square root of any real number is always or positive. That means the smallest value can ever be is .
If the smallest value of that part is , then the smallest value of the whole function is:
Since the square root can grow infinitely large as gets larger, the values will just keep going up from .
In interval notation, the range is .
Questions students ask
Ask about this topic
Where this comes from: OpenStax College Algebra, Chapter 3: Functions · Khan Academy, Algebra 1: Domain and range of a function
See also