Domain and Range

What may go in, and what can come out.

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 f(x) = x². 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.

xy

The graph of y = x². It carries on to the left and to the right without end, because every x has a square.

The range of x²

A square is never negative. A positive number times itself is positive, a negative number times itself is also positive, and 0² = 0. So no output of x² 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 x = √2. So the range of x² is every number from 0 upward, written f(x) ≥ 0. 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 f(x) = x² + 5, the smallest x² is 0, so the smallest output is 0 + 5 = 5, and the range is f(x) ≥ 5.

Division by zero

For f(x) = 1/x, 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 x ≠ 0.

The output is never 0 either, because 1 divided by any number is not 0. Every other output is reached: 5 comes from x = 1/5, and −2 from x = −1/2. So the range is f(x) ≠ 0.

Find the forbidden input by asking what makes the denominator 0. For f(x) = 1/(x − 6), the denominator x − 6 is 0 when x = 6, so the domain is x ≠ 6. The input 0 is allowed there: it gives 1/(−6).

xy

The graph of y = 1/x 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 f(x) = √x, the input must be 0 or more: the domain is x ≥ 0. The square root sign means the root that is not negative, so the range is f(x) ≥ 0 as well.

What has to be 0 or more is the whole expression inside the root. For f(x) = √(x − 5), x − 5 ≥ 0, so x ≥ 5. The smallest input is 5, where the output is √0 = 0. The input 0 is not allowed: it puts −5 under the root.

domain ℝrange [0, ∞)f(2) = 4√x1/xx²

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 √x 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 f(x) = √(x − 3) + 1, the root needs x − 3 ≥ 0, so the domain is x ≥ 3. The smallest the root can be is 0, at x = 3, so the smallest output is 0 + 1 = 1, and the range is f(x) ≥ 1. Test a value: x = 7 gives √4 + 1 = 3, which is in the range.

For f(x) = 4 − x², every input is allowed. x² is never negative, so 4 − x² is never more than 4, and it equals 4 at x = 0. The range is f(x) ≤ 4.

domain ℝrange (−∞, 4]f(1) = 3√(x + 3)1/(x − 1)4 − x²

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. 4 − x² accepts every input, and its range stops at 4. 1/(x − 1) leaves out x = 1 and the output 0. Choose √(x + 3) 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 f(x) = x² with the domain −1 ≤ x ≤ 3. 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 0 ≤ f(x) ≤ 9, not 1 ≤ f(x) ≤ 9. 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 x² + 5 is not 0: the smallest x² is 0, and then 5 is added, so it is 5.

Excluding the wrong input. For 1/(x − 6), x = 0 gives 1/(−6), which is fine, and x = −6 gives 1/(−12). Only x = 6 makes the denominator 0.

Starting a root’s domain at 0. For √(x − 5), 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. 1.The number of buyers cannot be more than the 400 seats: 600 − 20x ≤ 400, so 200 ≤ 20x and x ≥ 10.

    0200040000102030price of a ticket ($), xtakings ($), Rx ≥ 10no more buyers than seats: 600 − 20x ≤ 400200 ≤ 20x, so x ≥ 10
    0200040000102030price of a ticket ($), xtakings ($), Rx ≥ 10no more buyers than seats: 600 − 20x ≤ 400200 ≤ 20x, so x ≥ 10
    The buyers cannot outnumber the seats: 600 − 20x ≤ 400, so x ≥ 10.
  2. 2.The number of buyers cannot be negative: 600 − 20x ≥ 0, so 20x ≤ 600 and x ≤ 30.

    0200040000102030price of a ticket ($), xtakings ($), Rx ≥ 10x ≤ 30no fewer than none: 600 − 20x ≥ 020x ≤ 600, so x ≤ 30
    0200040000102030price of a ticket ($), xtakings ($), Rx ≥ 10x ≤ 30no fewer than none: 600 − 20x ≥ 020x ≤ 600, so x ≤ 30
    The number of buyers cannot be negative: 600 − 20x ≥ 0, so x ≤ 30.
  3. 3.(a) Both limits must hold, so the domain is 10 ≤ x ≤ 30.

    0200040000102030price of a ticket ($), xtakings ($), R10 ≤ x ≤ 30the domain is 10 ≤ x ≤ 30
    0200040000102030price of a ticket ($), xtakings ($), R10 ≤ x ≤ 30the domain is 10 ≤ x ≤ 30
    (a) The domain is 10 ≤ x ≤ 30. Only that part of the curve belongs to the situation.
  4. 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.

    0200040000102030price of a ticket ($), xtakings ($), R10 ≤ x ≤ 30(15, 4500)zeros at 0 and 30: the axis is x = 15R(15) = 15 × 300 = 4500, the greatest
    0200040000102030price of a ticket ($), xtakings ($), R10 ≤ x ≤ 30(15, 4500)zeros at 0 and 30: the axis is x = 15R(15) = 15 × 300 = 4500, the greatest
    The turning point is on the axis of symmetry x = 15, inside the domain, and R(15) = 4500 is the greatest value.
  5. 5.Now the two ends of the domain: R(10) = 10 × 400 = 4000 and R(30) = 30 × 0 = 0. The least value is 0.

    0200040000102030price of a ticket ($), xtakings ($), R(15, 4500)(10, 4000)(30, 0)R(10) = 10 × 400 = 4000R(30) = 30 × 0 = 0, the least
    0200040000102030price of a ticket ($), xtakings ($), R(15, 4500)(10, 4000)(30, 0)R(10) = 10 × 400 = 4000R(30) = 30 × 0 = 0, the least
    At the ends of the domain R(10) = 4000 and R(30) = 0, so the least value is 0.
  6. 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.

    0200040000102030price of a ticket ($), xtakings ($), R(15, 4500)(10, 4000)(30, 0)the range is 0 ≤ R ≤ 4500from nothing at $30 up to $4500 at $15
    0200040000102030price of a ticket ($), xtakings ($), R(15, 4500)(10, 4000)(30, 0)the range is 0 ≤ R ≤ 4500from nothing at $30 up to $4500 at $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.

More functions problems, worked step by step →

Practice Domain and Range in the app