Functions & Graphs

Domain and Range: Read What a Graph Can and Cannot Show

Short answer: The domain is every x value the function accepts; the range is every y value it produces. y = √x has domain x ≥ 0 and range y ≥ 0. y = x² − 4 has domain all real numbers and range y ≥ −4. A graphing window shows only part of either set.

The curve y = √x starting at the origin, with the domain x ≥ 0 shaded along the x-axis and the range y ≥ 0 shaded along the y-axis.

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.

Plot y = √x →

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
Two graphs: y = √x with domain x ≥ 0 shaded and a closed dot at the origin, and y = x² − 4 with the range y ≥ −4 shaded.
y = √x: domain x ≥ 0, range y ≥ 0. y = x² − 4: domain all real x, range y ≥ −4. Shading marks the allowed region.

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.

Rule of thumb Find domain and range from the rule and use the graph to confirm. A window shows a sample, not the whole function.

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

Domain and range of common functions
FunctionDomainRange
y = 2x + 1all real xall real y
y = x² − 4all real xy ≥ −4
y = √xx ≥ 0y ≥ 0
y = 1/xx ≠ 0y ≠ 0
y = 2xall real xy > 0
y = log₁₀ xx > 0all real y
y = sin xall real x−1 ≤ y ≤ 1

Common mistakes

Watch for these
  • 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.

The two branches of y = 1/x with dashed asymptotes along x = 0 and y = 0.
Functions & Graphs

Rational Graphs and Asymptotes Explained

y = 1/x has two branches, an excluded value at x = 0 and two asymptotes. See valid points, the gap, and the plotting error to avoid.

Updated 3 min read
The parabola y = x² − 4 with its roots at (−2, 0) and (2, 0) and its vertex at (0, −4) highlighted.
Functions & Graphs

How to Graph Quadratic Functions

Find the roots, vertex and axis of symmetry of y = x² − 4, sketch the parabola, and see how a repeated root like (x − 1)² touches the axis.

Updated 4 min read