Lesson 3 of 8 · 17 min

Domain and range

Find the domain and range of a function from its graph or its rule, including implied domains, and write them in interval and set notation.

What you will be able to do

  • Define the domain and range of a relation.
  • Write sets of numbers as inequalities, in interval notation and in set notation, with open and closed endpoints.
  • Find the range of a function on a restricted domain from its graph and its turning point.
  • State the implied domain of a rule by avoiding division by zero and square roots of negative numbers.

A function has a set of inputs it accepts and a set of outputs it produces. A taxi meter accepts distances from 00 km upwards; a calculator refuses −4\sqrt{-4} and 10\frac{1}{0}. Describing these sets precisely — the domain and the range — is part of describing any function.

Definition

Domain and range

The domain of a relation is the set of all its input values (xx-values).

The range is the set of all output values (yy-values) that the relation actually takes.

On a graph, the domain is the shadow the graph casts on the xx-axis, and the range is the shadow it casts on the yy-axis.

Three ways to write the same set. R\mathbb{R} is the set of all real numbers; ∞\infty is not a number, so it never takes a square bracket.
In wordsInequalityInterval notationSet notation
From −2-2 to 33, both included−2≤x≤3-2 \le x \le 3[−2,3][-2, 3]{x:−2≤x≤3}\{x : -2 \le x \le 3\}
Greater than 11x>1x > 1(1,∞)(1, \infty){x:x>1}\{x : x > 1\}
At most 44x≤4x \le 4(−∞,4](-\infty, 4]{x:x≤4}\{x : x \le 4\}
Above −1-1, up to and including 55−1<x≤5-1 < x \le 5(−1,5](-1, 5]{x:−1<x≤5}\{x : -1 < x \le 5\}
All real numbers—(−∞,∞)(-\infty, \infty)R\mathbb{R}
All real numbers except 22x≠2x \ne 2(−∞,2)∪(2,∞)(-\infty, 2) \cup (2, \infty)R∖{2}\mathbb{R} \setminus \{2\}

The interval [−2,3)[-2, 3), which is −2≤x<3-2 \le x < 3. The closed dot at −2-2 is included; the open circle at 33 is not.

Tip

Brackets match dots

A square bracket [  ][\;] means the endpoint is included — a closed dot on a graph or number line. A round bracket (  )(\;) means it is excluded — an open circle. Infinity is not a number you can reach, so it always takes a round bracket: [3,∞)[3, \infty).

Write −3<x≤2-3 < x \le 2 in interval notation.

Choose one answer

To read the domain and range from a graph, look along each axis for the lowest and highest values the graph reaches. Check three things: the endpoints (and whether they are open or closed), any turning points, and anywhere the graph runs off forever or approaches an asymptote.

Interactive

Range on a restricted domain

The domain is fixed at [−1,4][-1, 4]. The lowest output comes from the turning point, but the highest comes from an endpoint — so you need both to state the range.

Common mistake

The range is not just the endpoint values

For f(x)=x2−2xf(x) = x^2 - 2x on [−1,4][-1, 4], the endpoints give f(−1)=3f(-1) = 3 and f(4)=8f(4) = 8. It is tempting to say the range is [3,8][3, 8], but the turning point (1,−1)(1, -1) is lower than both. The range is [−1,8][-1, 8].

Always look for a turning point inside the domain before using the endpoints.

Worked example

Find the range of f(x)=x2−4x+1f(x) = x^2 - 4x + 1 for −1≤x<5-1 \le x < 5

  • Complex familiar
  • Technology free

Find the range of f(x)=x2−4x+1f(x) = x^2 - 4x + 1 on the domain −1≤x<5-1 \le x < 5.

5 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Find the turning point (complete the square) and check it lies in the domain.

  2. Evaluate the function at both endpoints, noting which are included.

  3. The range runs from the smallest to the largest output; decide each bracket by whether that output is actually reached.

Watch out for

  • Using only the endpoints, and so missing the minimum at the turning point.

  • Writing [−3,6)[-3, 6) because x=5x = 5 is excluded, when 66 is reached at x=−1x = -1.

Often a function is given by a rule with no domain stated. Then its domain is the largest set of real numbers the rule can accept: the implied domain (also called the maximal or natural domain). In this course two things restrict it — you cannot divide by zero, and you cannot take the square root of a negative number.

Finding the implied domain

  1. Look for division

    Any denominator must not be zero. Solve "denominator =0= 0" and exclude those values.

  2. Look for square roots

    The expression under a square root must be zero or positive. Solve "inside ≥0\ge 0".

  3. Watch for both at once

    A square root in a denominator must be strictly positive: solve "inside >0> 0".

  4. Combine and write it neatly

    Put the conditions together and write the domain as an interval, in set notation or with R∖{…}\mathbb{R} \setminus \{\ldots\}.

State the implied domain of f(x)=x−3f(x) = \sqrt{x - 3}.

Choose one answer

Worked example

Find implied domains and ranges

  • Simple familiar
  • Technology free

State the implied domain and the range of each function.

(a) f(x)=6−2x+1f(x) = \sqrt{6 - 2x} + 1 (b) g(x)=2x+4g(x) = \dfrac{2}{\sqrt{x + 4}}

5 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Denominators: exclude the values that make them zero.

  2. Square roots: the inside must be ≥0\ge 0; in a denominator, >0> 0.

  3. Combine the conditions and write the domain with the right brackets.

  4. Find the range from the smallest and largest outputs on that domain.

Watch out for

  • Reversing the inequality: 6−2x≥06 - 2x \ge 0 gives x≤3x \le 3, not x≥3x \ge 3.

  • Including x=−4x = -4 in (b), which would divide by zero.

Which values of xx are excluded from the implied domain of g(x)=5x2−4g(x) = \dfrac{5}{x^2 - 4}?

x =

Press Enter or type a comma after each value.

Exam tip

Writing domains and ranges in an exam

Interval notation, set notation and inequalities all describe the same set, so use whichever the question uses. What earns the mark is the right endpoints with the right brackets. Label which set is which ("domain: [3,∞)[3, \infty); range: [0,∞)[0, \infty)"), and never put a square bracket next to ∞\infty.

Summary

  • The domain is the set of inputs; the range is the set of outputs the function actually takes.

  • Square brackets (closed dots) include an endpoint; round brackets (open circles) exclude it; ∞\infty always takes a round bracket.

  • For the range on a restricted domain, compare the turning point with the endpoint values.

  • The implied domain is every real number the rule accepts: no zero denominators and no negatives under a square root.

  • Write "all real numbers except hh" as R∖{h}\mathbb{R} \setminus \{h\} or (−∞,h)∪(h,∞)(-\infty, h) \cup (h, \infty).

Finished the lesson?

Try the 3 quick checks above and the lesson completes itself, or mark it complete now.

Lesson 3 of 80% read

Save your progress with a free account