- Range (mathematics)
In

mathematics , the**range**of a function is the set of all "output" values produced by that function. Sometimes it is called the image, or more precisely, the image of the domain of the function. Range is also occasionally used to indicate the difference between the largest and smallest numbers in a set of real-valued data. If a function is asurjection then its range is equal to itscodomain . In a representation of a function in a "xy"Cartesian coordinate system , the range is represented on theordinate (on the "y" axis).**Examples**Let "f" be a function on the

real numbers $fcolon\; mathbb\{R\}\; ightarrowmathbb\{R\}$ defined by $f(x)\; =\; 2x$. This function takes as input any real number and multiplies it by two. Multiplication by any real number can yield any real number, therefore f(x) may be any real number, which is to say that the range of "f" is (−∞, ∞).In other instances, range may be restricted by the domain of the function. Consider the function "g" such that $gcolon\; mathbb\{R\}^+\; ightarrowmathbb\{R\},\; g(x)\; =\; 2x$. Since the

codomain is $mathbb\{R\}$, any real number is a legal value for g(x). However, the domain of "g" is $mathbb\{R\}^+$, so the input for "g" may only be a real number greater than zero. Multiplying any positive real number by two will always yield another positive real number, so the range of "g" is [0, ∞). Note here that the range of the function is not equal to its codomain, though the range is (and always will be) a subset of the codomain.Range may also be restricted by the definition of the function. Consider the function "h" such that $hcolon\; mathbb\{R\}\; ightarrowmathbb\{R\},\; h(x)\; =\; x^2$. Here the input is again any real number, though squaring any real number will never yield a negative number, and so the output of "h" may be any nonnegative number (including zero), thus the range is [0, ∞).

**ee also***

Domain (mathematics)

*Bijection, injection and surjection

*Rescaled range

*Sequence

*Range of a matrix

*Wikimedia Foundation.
2010.*