Mathematics ยท Functions

Domain and Range of Real Functions

Reference entry · last updated September 20, 2026

A function assigns to each element of its domain exactly one element of its range. For a real-valued function of a real variable, the domain is the set of real inputs for which the rule produces a real output, and the range is the set of all outputs the function actually attains.

1. First principles and interval notation

A relation is a function when no input maps to two different outputs. The vertical line test checks this on a graph: every vertical line meets the graph at most once. The domain and range are sets of real numbers, written in interval notation [1, 2]:

InequalityIntervalMeaning
\( a < x < b \)\( (a, b) \)Open interval, endpoints excluded
\( a \le x \le b \)\( [a, b] \)Closed interval, endpoints included
\( x \ge a \)\( [a, \infty) \)Unbounded above
\( x < b \)\( (-\infty, b) \)Unbounded below
All real \(x\)\( (-\infty, \infty) \)Every real number

2. Natural domain restrictions

When a function is given by a formula with no stated domain, the natural domain is every real number for which the formula is defined. Three operations restrict it:

3. Worked domains

4. Finding the range

The range is the set of outputs. Common routes:

Example: for \( f(x) = x^2 \), solving \( x = \pm\sqrt{y} \) requires \( y \ge 0 \), so the range is \( [0, \infty) \).

5. Edge cases

See also

References

  1. ^OpenStax, College Algebra 2e, Rice University (Domain and range).
  2. ^James Stewart, Lothar Redlin, and Saleem Watson, Precalculus: Mathematics for Calculus, 7th ed., Cengage Learning, 2015.