Module 3 · Functions · Lesson 17 of 84

Domain and range

Finding domains from formulas and graphs, interval notation and piecewise functions.

In this lesson · about 18 minutes

  • Find the domain of a function from its formula
  • Read domain and range from a graph
  • Know the domain and range of the toolkit functions
  • Evaluate and graph piecewise functions

The domain is every input a function will accept. Unless a problem says otherwise, it is all real numbers, minus anything that would break the formula. Two things break formulas in this course:

  1. Division by zero. In f(x) = 1/(x − 4), x cannot be 4.
  2. Even roots of negative numbers. In g(x) = √(x + 2), we need x + 2 ≥ 0, so x ≥ −2.

Real situations add their own limits. If C(n) is the cost of n concert tickets, n must be a whole number from 0 up to the number of seats.

The range is every output. On a graph, the domain is the spread of the graph from left to right and the range is its spread from bottom to top.

Try it · interactive

Domain and range explorer

Pick a function and move a. The shaded band is the domain; watch how the restriction moves with a.

What is under the square root cannot be negative: x − 2 ≥ 0, so x ≥ 2.

Domain (allowed inputs)

[2, ∞)

Range (possible outputs)

[0, ∞)

−6−4−2246−3−2−112345

The blue band shows the domain: the x values where the function is defined.

Loading practice…

Whiteboard · watch and try

Piecewise functions: a parking fee

4 steps
Press Play and the tutor will talk you through it while writing on the board. Pause any time to write on the board yourself.

Tip: press Pause, then use the pen to work along on the board. Space plays and pauses; Ctrl+Z undoes your last mark.

Domains and ranges of the toolkit functions

FunctionDomainRange
f(x) = x, x³, ∛x(−∞, ∞)(−∞, ∞)
f(x) = x², |x|(−∞, ∞)[0, ∞)
f(x) = √x[0, ∞)[0, ∞)
f(x) = 1/x(−∞, 0) ∪ (0, ∞)(−∞, 0) ∪ (0, ∞)
f(x) = 1/x²(−∞, 0) ∪ (0, ∞)(0, ∞)

Check your understanding0 of 4 correct

Question 1

1.What is the domain of f(x) = 3/(x + 5)?

Question 2

2.What is the domain of g(x) = √(6 − 2x)?

Question 3

3.What is the range of f(x) = x² + 4?

Question 4

4.f(x) = 4 if x < 2, and f(x) = x² if x ≥ 2. What is f(2)?

Key terms

Say the meaning to yourself, then tap a card to check.

Quiz score: 0 of 4

Practice sets mastered: 0 of 1

Tip: answer every quiz question correctly first.

Based on Algebra and Trigonometry 2e by Jay Abramson and others (OpenStax, Rice University), openstax.org/details/books/algebra-and-trigonometry-2e, licensed under CC BY-NC-SA 4.0. Noviq Academy rewrote and reorganized the material in its own words and added its own examples, whiteboard lessons, tools and quizzes; this adapted course is free and shared under the same license. Not endorsed by OpenStax or Rice University. Read-aloud and the whiteboard voice use your device's built-in voices, so the voice varies by device.