Chapter 9 ยท Functions
Domain and Range of a Function
Learn that the domain is a function's permitted inputs and the range is the outputs they produce. Find both from tables, plotted points, rules and lines.
You already know that a function gives exactly one output for each input it is permitted, or allowed, to take. You have also used a graph to find the output for a chosen input. Now you will describe a whole function at once by answering two questions:
- Which inputs is the function permitted to take?
- Which outputs do those inputs produce?
Try both questions on a small function. The rule is "double the input", and the only permitted inputs are , and . Doubling gives , and . So the inputs are , , and the outputs are , , . Each of these two lists has a name.
Key concept
Domain and range
The domain of a function is the set of all its permitted inputs. The range is the set of all the outputs those inputs produce. A set is a collection of values, each listed once, written inside curly braces. For the doubling function, the domain is and the range is .
- In a function, each permitted input has exactly one output. Different inputs may share an output; list a shared output once in the range.
- The domain has to be stated or shown: by a list, a table, points with exact coordinates, or a sentence naming the permitted inputs. A situation can restrict it.
- A table or a group of plotted points gives only the inputs and outputs it shows, unless a rule is also stated.
| Input | Output |
|---|---|
Worked example
Domain and range from a table
The table above lists every pair of a function: input gives output , input gives , input gives , and input gives . No rule is given. Find the domain and the range.
Read the input column. Each input appears in exactly one row, so each has exactly one output. These four inputs are the whole domain, because the table lists every pair and no rule adds more.
Test a number that is not in the table, such as 3. It lies between the inputs 2 and 5, but it has no row and no rule gives it an output. So 3 is not in the domain.
Read the output column from top to bottom. The inputs 0 and 5 share the output 7. A function allows that, because each of those inputs still has exactly one output.
Write the outputs as a set and list the shared output 7 once. The order does not change a set, but writing the values from least to greatest makes them easy to check.
Answer
The domain is and the range is .
A function can also be shown as points on a coordinate plane, the grid formed by a horizontal -axis and a vertical -axis. Each point stands for one input-output pair, written . The first number, , is the input; you read it along the -axis. The second number, , is the output; you read it along the -axis.
The figure below shows a function that has exactly four points. Each point is labelled with its exact coordinates, so use the labels instead of judging positions by eye. For example, the point labelled is units to the left of the -axis and units above the -axis. It tells you that the input has the output .
Worked example
Domain and range from plotted points
A function is made of exactly the four points in the figure above: , , and . Find its domain and its range.
Collect the first coordinate of each point. First coordinates are inputs, so they form the domain. The four inputs are all different, so each one has exactly one output.
Collect the second coordinate of each point, in the same order. Second coordinates are outputs.
The output 3 appears twice because the inputs -4 and 4 share it: both of those points are 3 units above the x-axis. List 3 once and write the set from least to greatest.
Answer
The domain is and the range is . No other values belong, because the function has only these four points.
Worked example
A rule with a domain set by the situation
At a school fair, entry costs dollar and each ride costs dollars. Let be the number of rides and the total cost in dollars. Then , because each of the rides costs dollars and entry adds dollar. A wristband is sold for exactly , , or rides. Find the domain and the range of this function.
Take the domain from the situation, not from the rule alone. The rule can be worked out for other numbers, but the fair sells wristbands only for 1, 2, 3 or 4 rides, so those are the only permitted inputs.
Multiply each permitted input by 2, the cost in dollars of one ride.
Add the 1 dollar for entry to each product. Each sum is the output for that input.
Collect the four outputs. They are all different, so each one is listed once.
Answer
The domain is , the permitted numbers of rides, and the range is , the possible total costs in dollars.
Now set the fair aside and keep only the rule , where is the input and is the output. Suppose every real number is a permitted input. The real numbers are all the numbers on the number line: negative numbers, zero, positive numbers, fractions, decimals and numbers such as . This time the domain is stated in words: all real numbers.
There is now one point for every real number , and together these points make a whole straight line. It is Line A in the figure below. The fair's four points , , and are on Line A. So are unlabelled pairs such as and , because and . The figure shows only a window of the plane, from to and from to . Line A itself keeps going beyond that window in both directions.
So what is the range when every real number is a permitted input? Choose a number and ask whether some permitted input produces it. Try . You need . Subtract from both sides, which keeps the two sides equal, to get . Divide both sides by , which is allowed because is not , to get . Since is a real number, it is a permitted input, so is an output. The pair is on Line A, far outside the window of the figure.
The same two moves work for any real number you choose. Call it . Subtracting and then dividing by gives the input , which is a real number. Check it: . So every real number is an output, and the range is all real numbers.
The takeaway. The domain of a function is the set of its permitted inputs, and the range is the set of outputs those inputs produce. Find the domain first, from what is stated or shown. A table or a group of plotted points gives only the inputs it shows, read from exact values, unless a rule is also stated. A situation can limit the inputs, and a sentence such as "every real number" can open them up. Then find the outputs of those permitted inputs and list each one once. The edges of a picture never decide the domain.