Look at the graph: the blue stretch along the y-axis is the range. A filled end is a value the function reaches, a hollow end is a value it only approaches.
Read How it was found for the highest and lowest points and the levels the graph settles at.
Range
Range
[−4,∞)
How it was found
The range of f(x)=x2−4 is the set of values f 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.
Type the function in the f(x) box. The calculator works out the range as you type, writes it under Range, and paints it in blue along the y-axis of the graph.
You can use powers (x2), roots (sqrt(x), cbrt(x)), fractions with a slash, ln, log, ex, the trigonometric functions and ∣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 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,∞) means every value from −4 up, with −4 itself reached.
(0,∞) means every positive value; 0 is approached but never reached.
[−1,1] means every value between −1 and 1, both ends reached.
R∖{1} means every real number except 1.
On the graph the same set is the blue stretch on the y-axis. A filled end is a value the function takes at some x. 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 y for which f(x)=y has at least one solution x in the domain.
For f(x)=x2−4, a square is never negative, so f(x)≥−4, and every number from −4 up is reached: y=5 comes from x=3, y=−4 from x=0. The range is [−4,∞). A number such as −5 is not in it, because x2−4=−5 would need x2=−1.
On a graph, the range is the shadow of the curve on the y-axis: the heights the curve occupies.
The range of x2−4 is [−4,∞): the blue stretch of the y-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+k the vertex height k 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 ex settles toward 0, 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) stays between its low points at −1 and its high points at 1.
Reached or only approached
The difference between a square bracket and a round one is whether the end value is actually taken.
x2+11 equals 1 at x=0, so 1 is in the range. As x grows, the fraction shrinks toward 0 but stays positive, so 0 is not. The range is (0,1].
ex is positive for every x and can be made as small as you like by going far left, yet it never equals 0. Its range is (0,∞).
To test a value by hand, solve f(x)=y for it. If there is a solution in the domain, the value is reached.
ex comes close to 0 but never reaches it: the end at 0 is hollow.
A single value left out
A fraction of two lines, such as f(x)=x−1x+1, reaches every value except one. Setting x−1x+1=y and solving gives x=y−1y+1, which works for every y except y=1.
That missing value is the height of the horizontal asymptote: the graph settles toward y=1 on both sides and never crosses it. The calculator writes the range as R∖{1} and leaves a hollow gap at 1 on the y-axis.
For x−21 the value left out is 0, for the same reason: a fraction with numerator 1 is never zero.
x−1x+1 takes every value except 1.
Ranges of the common functions
Lines mx+c with m=0, and odd powers such as x3: R.
Parabolas a(x−h)2+k: [k,∞) if a>0, (−∞,k] if a<0.
x and ∣x∣: [0,∞).
ex and every bx: (0,∞).
ln(x): R.
sin(x) and cos(x): [−1,1]. tan(x): R.
x1: R∖{0}.
Shifting up by k adds k to every end of the range; multiplying by a multiplies every end by a (and swaps them if a is negative). Shifting or stretching sideways does not change the range at all.
What the calculator checks
The calculator studies the function numerically for x between −10 and 10 and looks at where the graph is heading beyond that. A turning point further out than 10 is not seen.
Ends of the range that are whole numbers, simple fractions or simple multiples of π are written exactly; others are decimals.
Common mistakes
Reading the range off the x-axis. The range is a set of outputs; it lives on the y-axis.
Including a level that is only approached.ex is never 0; x1 is never 0.
Forgetting the vertex. The range of x2−4x+3 is not [3,∞): the lowest point is at x=2, where the value is −1.
Assuming a fraction reaches everything.x−1x+1 never equals 1.
Using the domain's shape. A function with a small domain can have a large range: ln(x) accepts only x>0 but reaches every real number.
Related tools and lessons
To watch a range move as a function is shifted and stretched, on prepared examples, open the Range of a Function visual tool. The theory is in the lesson on the range of a function.
The inputs are the subject of the Domain Calculator, and the levels a graph settles at are found by the Asymptote Calculator. For the range together with everything else about one function, use the Function Explorer.