When two numbers are connected, like hours worked and dollars earned, we pair them up as an input x and an output y, and we need a way to keep track of all the inputs that can go in and all the outputs that can come out.
1
Relations, Domain, and Range
A relation is any set of paired-up numbers (x,y). Its domain is the collection of all inputs (x-values), and its range is the collection of all outputs (y-values).
Relations, Domain, and Range
Whether a relation is written as a list of coordinates, a table, dots on a graph, or a mapping diagram with arrows from inputs to outputs, we read the domain and range from the exact same pairs.
Table
x
y
2
8
3
12
5
12
Graph
2
3
5
8
12
x
y
Mapping diagram
Input (x)
Output (y)
2
3
5
8
12
Text solution
Collect the inputs for the domainRead the first number (x-value) from each pair in {(2,8),(3,12),(5,12)} and list them in curly brackets.
Domain: {2,3,5}
Collect the outputs for the rangeRead the second number (y-value) from each pair, listing the repeated output 12 only once.
Range: {8,12}
2
What Makes a Relation a Function
Any set of number pairs is a relation, but in algebra we want relations that are predictable. A function is a relation where every input x goes to only one output y.
What Makes a Relation a Function
Input (x)
Output (y)
2
3
5
8
12
To test whether a relation is a function, we only need to check whether any single input goes to two different outputs.
Text solution
Check the inputs in a list or tableLook for a repeated x-value paired with different y-values; when we add (2,12) to our relation, the input 2 goes to two different outputs.
{(2,8),(2,12),(3,12),(5,12)}⟹Not a function
Check the arrows in a mapping diagramLook at the left oval to see if any input splits into two arrows, the way 2 points to both 8 and 12.
2→8and2→12⟹Not a function
Scan a graph with the Vertical Line TestBecause points with the same x-value stack directly on top of each other, any vertical line that hits a graph more than once shows a single input with multiple outputs.
Vertical line at x=3 hits the sidewaysparabola twice⟹Not a function
Two points lined up vertically mean one input has two outputs, so it is not a function. Two points lined up horizontally just mean two different inputs share the same output, which is allowed in a function.
Two distinct points with the same x-value give one input two different outputs, so the relation is not a function. Two different inputs may share an output.
3
Domain and Range of a Connected Graph
When a graph is a solid, connected curve instead of separate dots, it includes every decimal and fraction along the curve. Since we can no longer list all the numbers inside curly brackets, we find the domain and range by squashing the curve onto the x-axis and y-axis and writing inequalities from start to end.
Domain and Range of a Connected Graph
x
y
−3
4
5
(−3,1)
(4,2)
On the shaded axes, use < or > at a boundary value the graph does not reach, and ≤ or ≥ at one it does reach. There is no stopping number in a direction where the graph continues forever.
(1)
x
y
(0,5)
(4,2)
−3
4
1
5
Domain (x)Range (y)
(2)
x
y
(0,5)
−3
1
Domain (x)Range (y)
(3)
x
y
(1,−2)
−2
1
Domain (x)Range (y)
Text solution
Squash onto the x-axis for the domainLooking from left to right on the curve from (−3,1) to (4,2), the shaded x-axis runs from the open circle at −3 to the solid dot at 4.
Domain: −3<x≤4
Squash onto the y-axis for the rangeLooking from bottom to top, the shaded y-axis starts at the open circle at height 1 and reaches all the way to the solid peak at height 5, even though the right endpoint drops back down to height 2.
Range: 1<y≤5
Follow an arrow on one endWhen the right end of that curve is replaced with an arrow pointing right and up past height 5, there is no stopping number on the right or at the top.
Domain: xRange: y>−3,>1
Check both axes separately when both ends have arrowsFor the parabola with its lowest point at (1,−2) and arrows pointing up and outward on both sides, the curve widens across the entire x-axis, and on the y-axis it starts at height −2 and goes up forever.
Domain: Range: All real numbers,y≥−2
To find the range, check all the heights on the curve, not just the heights of its endpoints.
The range includes every height the curve reaches, even when the curve bends past the heights of its endpoints.
4
Domain and Range in Real-World Situations
In a word problem, the situation itself tells us where the domain and range start and stop, and whether the values in between are separate numbers or a smooth, connected stretch.
Domain and Range in Real-World Situations
Movie tickets
$10each
At most 4 tickets
Before writing the domain and range for a real-world problem, check the lowest and highest values that make sense, then ask whether decimals in between are possible.
Text solution
Counted items use curly bracketsWhen buying at most 4 movie tickets at $10 each, you can only buy whole tickets (no negatives and no decimals like 1.5 tickets), so both the ticket counts x and total prices y are lists of separate numbers.
Domain: Range: {0,1,2,3,4},{0,10,20,30,40}
Measured quantities use inequalitiesWhen pumping gas at $4 per gallon into an empty 10-gallon tank, the gas passes smoothly through every decimal from 0 to 10 gallons, so both the gallons x and total cost y form connected intervals.
Domain: 0Range: 0≤x≤10,≤y≤40
Key concepts
Everything here comes down to tracking inputs (x) and outputs (y):
Domain and Range
The domain is all possible inputs (x) and the range is all possible outputs (y). How you write them depends on whether decimals in between exist:
For separate points or counted whole items (like {(2,8),(3,12),(5,12)} or buying up to 4 movie tickets), list the exact values in curly brackets and write repeated numbers only once: Domain: {2,3,5},Range: {8,12}. Do not use an inequality like 0≤x≤4 when decimals like x=1.5 cannot happen.
For a solid connected curve or a smoothly measured quantity (like gallons of gas or a curve from (−3,1) to (4,2) with peak (0,5)), squash the graph onto the x-axis from left to right for the domain (−3<x≤4) and onto the y-axis from bottom to top for the range (1<y≤5). Use < or > at boundary values the graph does not reach and ≤ or ≥ at boundary values it does reach. Use a single inequality when the shaded part of an axis continues forever in one direction (y≥−2), and All real numbers when the shaded part covers the entire axis.
Function check
A relation is a function if every input x gives only one output y. It is not a function only when the same x goes to two different y's, which shows up as a repeated x paired with different y-values in a list or table, an input splitting into two arrows in a mapping diagram, or a vertical line hitting a graph more than once (Vertical Line Test). Do not be fooled by repeated y-values: (3,12) and (5,12) is still a function because each input has only one output.
5
Practice
1
For the relation {(−1,4),(2,7),(5,4),(6,9)}, find the domain and the range, and state whether the relation is a function.
Collect the first numbers (x) for the domain and the second numbers (y) for the range, then check whether any single input goes to two different outputs.
Collect the x-values for the domain and the y-values for the range:
Domain: Range: {−1,2,5,6},{4,7,9}
(Watch out: don't write {4,7,4,9} for the range. List the repeated output 4 only once.)
Check whether any x-value repeats with a different y-value: each of the four inputs −1,2,5,6 appears only once. (Watch out: seeing 4 twice in (−1,4) and (5,4) often tempts students to say "No," but two different inputs giving the same output is completely fine. Only a repeated x-value with different y-values makes it not a function.)
Domain: {−1,2,5,6}, Range: {4,7,9}; Yes, it is a function because each input goes to only one output
2
A mapping diagram has inputs −3,0, and 4 in the left oval and outputs 1,5, and 8 in the right oval, with arrows −3→1,0→5,0→8, and 4→8. Is this relation a function? Explain why or why not.
Look at the inputs in the left oval and check how many arrows leave each number.
Trace the arrows leaving each input in the left oval: −3 has one arrow (−3→1), 4 has one arrow (4→8), but 0 splits into two arrows (0→5 and 0→8). (Watch out: don't say it fails because 0 and 4 both point to 8 in the right oval. Two arrows landing on the same output 8 is allowed; it is the two arrows leaving the single input 0 that makes it not a function.)
No, it is not a function because the input 0 points to two different outputs, 5 and 8
3
A graph shows a circle centered at the origin that passes through (−4,0),(0,4),(4,0), and (0,−4). Is this graph a function? Explain how you know.
Imagine scanning a vertical line across the circle. What happens when the line passes through x=0?
Apply the Vertical Line Test by checking a vertical line such as x=0: it hits the circle at both (0,4) on top and (0,−4) on the bottom. (Watch out: a vertical line at the far left edge x=−4 or far right edge x=4 only touches the circle once, so don't stop there. If a vertical line hits the graph twice anywhere in between, the graph is not a function.)
No, it fails the Vertical Line Test because a vertical line (such as at x=0) touches the graph at two points at once, giving one input two outputs
4
A solid curve starts at an open circle at (−5,4), dips down to a lowest point at (−1,−2), and ends at a solid dot at (3,1). Find the domain and the range.
Squash the curve onto the x-axis from left to right for the domain, then onto the y-axis from bottom to top for the range, paying attention to the open circle at (−5,4).
From left to right on the x-axis, the curve starts at the open circle at x=−5(<) and ends at the solid dot at x=3(≤):
Domain: −5<x≤3
From bottom to top on the y-axis, the lowest height the curve touches is the solid dip at y=−2(≤) and the upper boundary is y=4, which is excluded because the curve only approaches that height at the open circle (<):
Range: −2≤y<4
(Watch out: looking only at the two endpoints gives the wrong range 1≤y<4 because it misses the dip down to y=−2, and using ≤ at −5 or 4 forgets that (−5,4) is an open circle.)
Domain: −5<x≤3, Range: −2≤y<4
5
A solid curve starts at a solid dot at (2,5) and continues left and down forever past (−3,0) with an arrow on the left end. Find the domain and the range.
Follow the arrow to see which direction has no stopping point, and use (2,5) as the highest value on both axes.
On the x-axis, the curve goes forever to the left and stops at the solid dot at x=2; on the y-axis, it goes forever downward and stops at the solid dot at y=5:(Watch out: don't write −3≤x≤2 and 0≤y≤5, because (−3,0) is just a point the arrow passes through, not an endpoint. Also don't flip the signs to x≥2,y≥5 just because you see an arrow, since this arrow points left and down toward smaller numbers.)
Domain: x≤2, Range: y≤5
6
A parabola opens downward from its highest point at (−2,7), with arrows pointing down and outward on both ends. Find the domain and the range.
Check how far left and right the two arrows spread along the x-axis, then check whether (−2,7) is the lowest or highest point on the y-axis.
Both arrows keep widening to the left and right forever, covering the entire x-axis.
On the y-axis, the graph reaches a highest height of y=7 at the peak (−2,7) and both arrows point downward from there forever. (Watch out: don't write y≤−2 by grabbing the x-value −2 from (−2,7) instead of the height y=7, and don't write y≥7 since this parabola opens downward from its peak.)
Domain: All real numbers, Range: y≤7
7
A school van holds at most 5 students, and each student ticket to a museum costs $8. Let x be the number of students in the van and y be the total ticket cost in dollars. Find the domain and the range.
Ask whether you can have a decimal number of students, and list every possible whole number of students from an empty van up to a full van.
Because you can only count whole students from 0 up to 5, list each possible input x and multiply by $8 to list each possible total cost y:(Watch out: writing inequalities 0≤x≤5 and 0≤y≤40 is wrong because you can't put 2.5 students in a van, and starting at 1 student instead of 0 leaves out the valid case of 0 students costing $0.)
Domain: {0,1,2,3,4,5}, Range: {0,8,16,24,32,40}
8
A 12-inch candle burns steadily at 2 inches per hour until it is completely gone after 6 hours. Let x be the time in hours and y be the height of the candle in inches. Find the domain and the range.
Time and candle height change smoothly through every fraction of an hour and inch, so find the lowest and highest values for time x and height y.
Time x runs smoothly from 0 hours at the start to 6 hours when the candle is gone, and height y covers every measurement between 0 inches and 12 inches: (Watch out: don't list whole numbers in curly brackets like {0,1,2,3,4,5,6} since the candle burns continuously through every decimal in between, and with ≤ signs, write the range from lowest to highest as 0≤y≤12 rather than backward as 12≤y≤0.)