Lesson 4.3 · Introduction to Functions
Domain and range
Every function has limits on what you can put in and what can come out. You can't rent a bike for hours, and you can't take the square root of in the real numbers. The domain and range describe these limits exactly.
Domain and range
Definition
Domain and range
The domain of a function is the set of all allowed inputs (-values). The range is the set of all outputs (-values) the function actually produces.
For a function given as a list of ordered pairs or a table, you simply collect the numbers. For :
- Domain:
- Range:
When a function has infinitely many inputs, like one given by a graph or an equation, you can't list them. Instead you describe them with an inequality, such as or , or with the words all real numbers.
Reading domain and range from a graph
The domain is how far the graph reaches left to right. The range is how far it reaches bottom to top.
From a graph
- Domain: squash the graph flat onto the -axis. The shadow it makes is the domain.
- Range: squash the graph flat onto the -axis. The shadow it makes is the range.
A solid dot at an endpoint means that point is included, so the inequality uses or . An arrow means the graph keeps going forever in that direction.
Worked example: A graph with endpoints
Find the domain and range of the function graphed below.
The graph starts at and ends at , including both endpoints. Its lowest point has and its highest has .
- Domain:
- Range:
The range is not always found by plugging in the endpoints. Look for the highest and lowest points anywhere on the graph.
Worked example: The highest point is in the middle
Find the domain and range of the function graphed below.
The graph runs from to , so the domain is .
For the range, the lowest point is the right endpoint, . But the highest point is the peak at , not either endpoint. So the range is .
Worked example: A graph that goes on forever
Find the domain and range of .
The arms of the parabola keep spreading left and right forever, so every is allowed: the domain is all real numbers. The graph never goes lower than its bottom point but rises forever, so the range is .
Domain and range from an equation
For most equations in Algebra 1, you can substitute any real number, so the domain is all real numbers. There are two situations to watch for.
- Division by zero. A denominator can never equal . For , the input makes the denominator , so is not in the domain. The domain is all real numbers except , written .
- Square roots of negatives. In the real numbers, the number under a square root can't be negative. For , you need , so the domain is .
A square root is never negative, so the range of is .
Common mistake
Don't mix up the two sets. The domain is always about (inputs) and the range is always about (outputs). For , the domain is and the range is . Writing the range as "" uses the wrong variable and describes the wrong thing.
Domain in a real situation
When a function models something real, the situation limits the domain even if the equation doesn't. The domain that makes sense is called the reasonable domain.
A function is discrete if its inputs are separate values, like whole numbers of people. Its graph is a set of dots. A function is continuous if its inputs fill a whole interval, like time or distance. Its graph is an unbroken curve.
Worked example: Discrete or continuous?
- A theater has seats and sells tickets for $12 each. The revenue is dollars for tickets sold. Find the reasonable domain and range.
- A -gallon tank drains at gallons per minute. The amount left is gallons after minutes. Find the reasonable domain and range.
Solutions.
- You can only sell whole tickets, from up to . The domain is the whole numbers , so the function is discrete. The range is , since .
- Time is continuous. The tank starts full at and is empty when , which is . The domain is and the range is .
Tip
To find a reasonable domain, ask: where does the situation start, where does it stop, and can the input be a fraction? The answers give the endpoints and tell you whether the graph is dots or a solid curve.
Practice
List the domain of .
Separate answers with commas, e.g. 2, -5
What is the domain of the function graphed below?
What is the range of the same function?
Find the range of , graphed below. Write your answer as an inequality in .
Enter an inequality, e.g. x >= 4, -2 < x <= 3, or x < 1 or x > 5
Find the domain of . Write your answer as an inequality in .
Enter an inequality, e.g. x >= 4, -2 < x <= 3, or x < 1 or x > 5
Which real number is not in the domain of ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
The graph below shows for . What is its range?
A school bus has seats. The number of empty seats when students are on board is . Which is the reasonable domain?