What may go in, and what can come out
The domain of a function is the set of inputs it accepts. The range is the set of outputs it actually produces.
Take . Any number at all can be squared: positive, negative, zero, whole or not. So every real number is allowed in, and the domain of f is all real numbers.
The graph of . It carries on to the left and to the right without end, because every x has a square.
The range of
A square is never negative. A positive number times itself is positive, a negative number times itself is also positive, and . So no output of is below 0.
Every other output is reached. 0 comes from x = 0, and any positive number comes from its square root: 9 from x = 3 or x = −3, and 2 from . So the range of is every number from 0 upward, written . On the graph, the curve never goes below the x-axis, and it touches it at the origin.
Adding a number moves the whole range. For , the smallest is 0, so the smallest output is 0 + 5 = 5, and the range is .
Division by zero
For , the input x = 0 would mean dividing by 0, which has no answer. Every other number is allowed, so the domain is all real numbers except 0, written .
The output is never 0 either, because 1 divided by any number is not 0. Every other output is reached: 5 comes from , and −2 from . So the range is .
Find the forbidden input by asking what makes the denominator 0. For , the denominator x − 6 is 0 when x = 6, so the domain is . The input 0 is allowed there: it gives .
The graph of comes in two pieces, one on each side of the y-axis, which is the line x = 0. No point of the graph has x = 0, and none has y = 0.
Square roots
No real number squares to a negative number, so a negative number has no real square root. For , the input must be 0 or more: the domain is . The square root sign means the root that is not negative, so the range is as well.
What has to be 0 or more is the whole expression inside the root. For , , so . The smallest input is 5, where the output is . The input 0 is not allowed: it puts −5 under the root.
x²: every x is allowed, so the whole x-axis is lit; but x² ≥ 0, so the y-shadow starts at 0 and never goes below
Choose √x and drag the point to where its shadow starts
The gold band on the x-axis is the domain and the green band on the y-axis is the range. A ring marks a value that is left out. The figure writes all real numbers as ℝ. For every number from 0 upward it writes an interval: a square bracket before the 0, which means 0 is included, then with a round bracket, because the numbers go on without end. Choose and move the point left: it stops at x = 0, where the domain begins.
Start from every number, then remove
To find a domain, start with all real numbers and remove every input that breaks a rule: a denominator of 0, or a negative number under a square root.
For , the root needs , so the domain is . The smallest the root can be is 0, at x = 3, so the smallest output is 0 + 1 = 1, and the range is . Test a value: x = 7 gives , which is in the range.
For , every input is allowed. is never negative, so is never more than 4, and it equals 4 at x = 0. The range is .
4 − x²: every x is allowed, so the whole x-axis is lit; but 4 − x² ≤ 4, so the y-shadow stops at 4 and never goes above
Choose √(x + 3) and drag the point to where its shadow starts
Three more functions. accepts every input, and its range stops at 4. leaves out x = 1 and the output 0. Choose and move the point left: it stops at x = −3, where x + 3 = 0.
When the domain is cut short
A real setting can make the domain smaller than the rule allows: a length must be positive, and a number of people cannot be negative. The range is then the set of outputs over that smaller domain.
Take with the domain . At the ends, f(−1) = 1 and f(3) = 9. But x = 0 is inside the domain too, and f(0) = 0 is smaller than either end. So the range is , not . Look at the ends of the domain and at any turning point inside it.
The usual mistakes
Forgetting the added number. The smallest output of is not 0: the smallest is 0, and then 5 is added, so it is 5.
Excluding the wrong input. For , x = 0 gives , which is fine, and x = −6 gives . Only x = 6 makes the denominator 0.
Starting a root’s domain at 0. For , x = 0 puts −5 under the root. The domain starts where the inside is 0, at x = 5.
Finding a range from the ends of the domain alone. A turning point inside the domain can give a smaller or larger output than either end.
Worked example: The Prices a Theater Can Charge and the Takings It Can Make: A Domain and a Range from the Limits of the Situation
Question A theater has 400 seats. When a ticket costs x dollars, 600 − 20x people want to buy one, so the takings are R(x) = x(600 − 20x) dollars. The theater uses only the prices at which the number of buyers is not negative and is not more than the number of seats. (a) Find the domain of R. (b) Find the range of R.
1.The number of buyers cannot be more than the 400 seats: 600 − 20x ≤ 400, so 200 ≤ 20x and x ≥ 10.
The buyers cannot outnumber the seats: 600 − 20x ≤ 400, so x ≥ 10. 2.The number of buyers cannot be negative: 600 − 20x ≥ 0, so 20x ≤ 600 and x ≤ 30.
The number of buyers cannot be negative: 600 − 20x ≥ 0, so x ≤ 30. 3.(a) Both limits must hold, so the domain is 10 ≤ x ≤ 30.
(a) The domain is 10 ≤ x ≤ 30. Only that part of the curve belongs to the situation. 4.For the range, find the turning point first. R(x) = x(600 − 20x) is zero at x = 0 and at x = 30, so the axis of symmetry is x = 15, which is inside the domain. R(15) = 15 × 300 = 4500. The coefficient of x2 is negative, so this is the greatest value.
The turning point is on the axis of symmetry x = 15, inside the domain, and R(15) = 4500 is the greatest value. 5.Now the two ends of the domain: R(10) = 10 × 400 = 4000 and R(30) = 30 × 0 = 0. The least value is 0.
At the ends of the domain R(10) = 4000 and R(30) = 0, so the least value is 0. 6.(b) The range is 0 ≤ R ≤ 4500. The takings run from nothing, at a price of $30, up to $4500, at a price of $15.
(b) The range is 0 ≤ R ≤ 4500.
Answer: (a) 10 ≤ x ≤ 30; (b) 0 ≤ R ≤ 4500
Common mistakes
- Finding the range from the two ends of the domain only, which gives 0 ≤ R ≤ 4000. The graph rises from x = 10 to its turning point at x = 15 before it falls, so the greatest value is R(15) = 4500 and not R(10).
- Giving the domain as 0 ≤ x ≤ 30 because the formula is zero at both of those prices. Below $10 more than 400 people want a ticket, and the theater cannot seat them, so the formula no longer gives the takings there.