Two questions describe the reach of a function: which inputs are allowed? (the domain) and which outputs come out? (the range). Graphs make both easy to see — as long as you remember that a screen only shows a window.
Definitions
- Domain: the set of x values for which f(x) has a real value.
- Range: the set of y values that f(x) actually takes.
On a graph, the domain is the “shadow” of the curve on the x-axis and the range is its shadow on the y-axis.
Example 1: y = √x
The square root of a negative number is not a real number, so x must be at least 0. Outputs start at √0 = 0 and grow without limit.
- Domain: x ≥ 0
- Range: y ≥ 0
The point (0, 0) is included, so it is drawn as a closed (filled) dot. In interval notation the domain is [0, ∞).
Our calculator draws y = √x starting exactly at the origin. It never draws anything for x < 0, and if you Evaluate at x = −1 it says “Square root of a negative number has no real value” rather than showing 0.
Example 2: y = x² − 4
Any real number can be squared, so the domain is all real numbers. The smallest output is at the vertex, (0, −4), and outputs grow without limit in both directions.
- Domain: all real x (ℝ)
- Range: y ≥ −4
Full answer versus visible window
A window from x = −10 to 10 might show y = x² − 4 only from y = −4 to 96. That does not make the range −4 ≤ y ≤ 96; the curve keeps rising off-screen. Similarly, the visible x-range is not the domain.
Endpoints: included or not?
- Closed dot (included): the value is allowed, like (0, 0) on y = √x. Use ≥, ≤ or square brackets.
- Open dot (excluded): the curve gets arbitrarily close but never reaches the point. Use >, < or round brackets.
- Asymptotes: y = 1/x never reaches y = 0, so 0 is excluded from its range. See rational graphs and asymptotes.
Sampling limits
A screen graph is drawn by sampling many x values and joining the points. Tiny features between samples can be missed, and the edge of a domain may be approximated. Our calculator searches for the exact edge when a function stops being defined (so √x starts at x = 0, not at the nearest pixel), but at extreme zoom levels you will still meet the limits of floating-point arithmetic.
Quick reference
| Function | Domain | Range |
|---|---|---|
| y = 2x + 1 | all real x | all real y |
| y = x² − 4 | all real x | y ≥ −4 |
| y = √x | x ≥ 0 | y ≥ 0 |
| y = 1/x | x ≠ 0 | y ≠ 0 |
| y = 2x | all real x | y > 0 |
| y = log₁₀ x | x > 0 | all real y |
| y = sin x | all real x | −1 ≤ y ≤ 1 |
Common mistakes
- Using the window edges as the domain or range.
- Mixing up domain (x) and range (y).
- Including an excluded endpoint, such as y = 0 in the range of 1/x.
- Assuming a calculator gap means "zero". It means "no real value".
Common questions
Does the calculator state domain and range for me?
No. It shows where a function is defined by drawing gaps and by its messages, but deciding the domain and range is part of the maths you do.
What notation should I use?
Follow your course. Inequalities (x ≥ 0), interval notation ([0, ∞)) and set-builder notation are all common in Australian classrooms.
How this guide was made: drafted with AI assistance under the site’s editorial policy. Worked examples and plotted figures are computed by the same maths engine as our calculators and checked by automated tests. Found an error? Report a correction.