Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

Range Calculator

How to use
  1. Type the function in the f(x)f(x) box, for example x2−4x^2 - 4, exe^x or 1x−2\dfrac{1}{x - 2}. Learn more about entering the function
  2. Read the range under Range, written in interval notation. Learn more about reading the answer
  3. Look at the graph: the blue stretch along the yy-axis is the range. A filled end is a value the function reaches, a hollow end is a value it only approaches.
  4. Read How it was found for the highest and lowest points and the levels the graph settles at.

Range
Range
[−4, ∞)\displaystyle [-4,\ \infty)
How it was found

The range of f(x)=x2−4f(x) = {x}^{2}-4 is the set of values ff actually takes. It is read from the lowest and highest points of the graph and from where the graph heads at its ends and beside its breaks.

The graph turns at a low point: f(0)=−4f(0) = -4.

f(x)=x2−4f\left(x\right)={x}^{2}-4


Finding the range

DemoFind the range
Step 0 of 4
Type the function in the f(x)f(x) box. The calculator works out the range as you type, writes it under Range, and paints it in blue along the yy-axis of the graph.

You can use powers (x2x^2), roots (sqrt(x), cbrt(x)), fractions with a slash, ln⁡\ln, log⁡\log, exe^x, the trigonometric functions and ∣x∣|x| as abs(x).

The range follows every change in the formula. Add a constant and watch the blue stretch slide up; multiply by −1-1 and watch it flip.

Reading the answer

DemoValues approached but never reached
Step 0 of 4
    The Range box gives the set of outputs in interval notation:

  • [−4, ∞)[-4,\ \infty) means every value from −4-4 up, with −4-4 itself reached.
  • (0, ∞)(0,\ \infty) means every positive value; 00 is approached but never reached.
  • [−1, 1][-1,\ 1] means every value between −1-1 and 11, both ends reached.
  • R∖{1}\mathbb{R} \setminus \{1\} means every real number except 11.

  • On the graph the same set is the blue stretch on the yy-axis. A filled end is a value the function takes at some xx. A hollow end is a level the graph comes ever closer to without touching; a dashed grey line is drawn at that level.

    How it was found lists the turning points of the graph with their heights and the levels the graph settles at far to the left and right.

What the range of a function is

The range of a function is the set of all values it actually gives: every number yy for which f(x)=yf(x) = y has at least one solution xx in the domain.

For f(x)=x2−4f(x) = x^2 - 4, a square is never negative, so f(x)≥−4f(x) \geq -4, and every number from −4-4 up is reached: y=5y = 5 comes from x=3x = 3, y=−4y = -4 from x=0x = 0. The range is [−4, ∞)[-4,\ \infty). A number such as −5-5 is not in it, because x2−4=−5x^2 - 4 = -5 would need x2=−1x^2 = -1.

On a graph, the range is the shadow of the curve on the yy-axis: the heights the curve occupies.
The range of x2−4x^2 - 4 is [−4, ∞)[-4,\ \infty): the blue stretch of the yy-axis.

How a range is found

    There is no single recipe, but the range of a function that is drawn without lifting the pen is settled by a few things:

  • Turning points. A lowest point gives the bottom of the range and a highest point gives the top, if the graph does not go beyond them elsewhere. For a parabola a(x−h)2+ka(x - h)^2 + k the vertex height kk is the end of the range.
  • End behaviour. If the graph climbs without bound, the range has no top; if it falls without bound, no bottom.
  • Levels approached. If the graph settles toward a height it never touches, as exe^x settles toward 00, that height is a hollow end.
  • Breaks. Each unbroken piece of the graph gives an interval of values; the range is all of them together.

  • The calculator reads these from the function numerically and puts the pieces together.
sin⁡(x)\sin(x) stays between its low points at −1-1 and its high points at 11.

Reached or only approached

The difference between a square bracket and a round one is whether the end value is actually taken.

1x2+1\dfrac{1}{x^2 + 1} equals 11 at x=0x = 0, so 11 is in the range. As xx grows, the fraction shrinks toward 00 but stays positive, so 00 is not. The range is (0, 1](0,\ 1].

exe^x is positive for every xx and can be made as small as you like by going far left, yet it never equals 00. Its range is (0, ∞)(0,\ \infty).

To test a value by hand, solve f(x)=yf(x) = y for it. If there is a solution in the domain, the value is reached.
exe^x comes close to 00 but never reaches it: the end at 00 is hollow.

A single value left out

A fraction of two lines, such as f(x)=x+1x−1f(x) = \dfrac{x + 1}{x - 1}, reaches every value except one. Setting x+1x−1=y\dfrac{x + 1}{x - 1} = y and solving gives x=y+1y−1x = \dfrac{y + 1}{y - 1}, which works for every yy except y=1y = 1.

That missing value is the height of the horizontal asymptote: the graph settles toward y=1y = 1 on both sides and never crosses it. The calculator writes the range as R∖{1}\mathbb{R} \setminus \{1\} and leaves a hollow gap at 11 on the yy-axis.

For 1x−2\dfrac{1}{x - 2} the value left out is 00, for the same reason: a fraction with numerator 11 is never zero.
x+1x−1\frac{x + 1}{x - 1} takes every value except 11.

Ranges of the common functions

  • Lines mx+cmx + c with m≠0m \neq 0, and odd powers such as x3x^3: R\mathbb{R}.
  • Parabolas a(x−h)2+ka(x - h)^2 + k: [k, ∞)[k,\ \infty) if a>0a > 0, (−∞, k](-\infty,\ k] if a<0a < 0.
  • x\sqrt{x} and ∣x∣|x|: [0, ∞)[0,\ \infty).
  • exe^x and every bxb^x: (0, ∞)(0,\ \infty).
  • ln⁡(x)\ln(x): R\mathbb{R}.
  • sin⁡(x)\sin(x) and cos⁡(x)\cos(x): [−1, 1][-1,\ 1]. tan⁡(x)\tan(x): R\mathbb{R}.
  • 1x\dfrac{1}{x}: R∖{0}\mathbb{R} \setminus \{0\}.

  • Shifting up by kk adds kk to every end of the range; multiplying by aa multiplies every end by aa (and swaps them if aa is negative). Shifting or stretching sideways does not change the range at all.

What the calculator checks

The calculator studies the function numerically for xx between −10-10 and 1010 and looks at where the graph is heading beyond that. A turning point further out than 1010 is not seen.

Ends of the range that are whole numbers, simple fractions or simple multiples of π\pi are written exactly; others are decimals.

Common mistakes

  • Reading the range off the xx-axis. The range is a set of outputs; it lives on the yy-axis.
  • Including a level that is only approached. exe^x is never 00; 1x\dfrac{1}{x} is never 00.
  • Forgetting the vertex. The range of x2−4x+3x^2 - 4x + 3 is not [3, ∞)[3,\ \infty): the lowest point is at x=2x = 2, where the value is −1-1.
  • Assuming a fraction reaches everything. x+1x−1\dfrac{x + 1}{x - 1} never equals 11.
  • Using the domain's shape. A function with a small domain can have a large range: ln⁡(x)\ln(x) accepts only x>0x > 0 but reaches every real number.