Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Range of a Function

How to use
  1. Pick a function in the Function menu at the top; the four groups are the four shapes a range can take here. The slider values stay as they are. Learn more about picking a function
  2. The range of g(x)=a⋅f(b(x−h))+kg(x) = a \cdot f(b(x - h)) + k is the blue stretch on the y-axis, with filled or hollow circles at its ends. Learn more about reading the range
  3. The tab Output: a, k holds the sliders that can move the range; Input: b, h holds the ones that cannot. Learn more about why only a and k change the range
  4. The test level slider moves the dashed line y=qy = q from −10-10 to 1010; the dot on the y-axis says in the range or outside. Learn more about the test level
  5. The text on the right gives the base range, the current range as an inequality and the verdict for the test level. Learn more about the explanation
  6. ▶ runs a slider by itself, Reset puts back the sliders of the current tab, and the switches hide the base curve or the range marks. Learn more about the switches and the Concepts tab


Range of a function
f(x)=x2f\left(x\right)={x}^{2}
g(x)=a⋅f(b(x−h))+kg(x) = a \cdot f\big(b(x - h)\big) + k
a=1a = 1k=0k = 0b=1b = 1h=0h = 0q=1q = 1
Range · Quadratic
g(x)=a⋅f(b(x−h))+k\displaystyle g(x) = a \cdot f\big(b(x - h)\big) + k
For the current setup

Base function · f(x)=x2f(x) = x^2

Base range · y≥0y \geq 0

Current range · y≥0y \geq 0

Test level · y=1y = 1 is in the range: some input gives g(x)=1g(x) = 1.

How parameters affect the range

Only aa and kk can change the range. They transform the output of the base function:

  • kk — shifts every output up or down by the same amount
  • aa — scales every output by aa; if a<0a < 0, the range flips across the line y=ky = k

bb and hh transform the input — they change which xx gives each output, but the set of outputs the function can reach stays the same. Move them and the range stays put.

a=1a = 1
k=0k = 0
q=1q = 1
Speed






Getting Started with the Visualizer

DemoGetting started
Step 0 of 3
The tool has three parts. Across the top runs a bar with the Function menu and the buttons for zooming, the starting view, saving a picture and full screen. On the left is the graph. On the right is the explanation, with the controls under it.

The graph shows the base function f(x)f(x) as a dashed gray curve and the transformed function g(x)=a⋅f(b(x−h))+kg(x) = a \cdot f(b(x - h)) + k in blue. The range of gg is drawn as a blue stretch on the y-axis itself, so you can see at once which outputs the curve reaches. A dashed horizontal line marks the test level y=qy = q, with a dot on the y-axis that says whether that output is reached.

The tool opens with the quadratic f(x)=x2f(x) = x^2. Its range is y≥0y \geq 0, so the blue stretch starts at 00 with a filled circle and runs upward. The test level y=1y = 1 is in the range: the parabola reaches it.

Picking a Function

DemoPicking a function
Step 0 of 3
The Function menu groups eleven base functions by the shape of their range:

• Unrestricted (R\mathbb{R}) — Identity, Linear (2x), Cubic, Logarithmic. Every real number is an output.
• Bounded below — Quadratic, Absolute, Square root (range y≥0y \geq 0) and Exponential (range y>0y > 0).
• Bounded between $-1$ and $1$ — Sine and Cosine.
• One value left out — the Reciprocal, whose range is y≠0y \neq 0.

Comparing the groups is the point: a floor, a ceiling and a missing value are the three ways a range can be smaller than R\mathbb{R}, and transformations move each of them in a predictable way.

A new function keeps the slider values, so the same stretch or shift can be compared across functions.

Why Only aa and kk Change the Range

DemoOutput moves the range, input does not
Step 0 of 3
The four parameters of g(x)=a⋅f(b(x−h))+kg(x) = a \cdot f(b(x - h)) + k are split between two tabs above the sliders:

• Output: a, k — aa, the vertical scale, multiplies every output, and kk, the vertical shift, adds to it.
• Input: b, h — bb, the horizontal scale, and hh, the horizontal shift, change which input reaches ff.

Both tabs also hold the test level slider. The split is the lesson, and the mirror image of the domain case. bb and hh act before ff runs: they relabel the inputs, but the outputs ff can produce stay the same. Only aa and kk act on the outputs, so only they move the range: a floor at 00 becomes a floor at kk, a negative aa turns it into a ceiling, and a=0a = 0 squeezes the range to the single value kk.

Drag bb or hh as far as you like — the curve changes, the blue stretch on the y-axis does not. Drag aa or kk and it moves at once.

Reading the Range on the Y-Axis

The range is drawn on the y-axis of the graph, in the same coordinates as the curve, as a blue stretch covering every output the function reaches. The ends tell you what kind of boundary it is:

• A filled circle — the boundary value is reached, as y=0y = 0 for the square root.
• A hollow circle — the boundary is approached but never reached, as y=0y = 0 for the exponential.
• No circle and the stretch running off the edge — the outputs go on without end in that direction.

For the reciprocal the stretch covers the whole y-axis except a hollow circle at y=ky = k: the one output the function never produces, the level of its horizontal asymptote.

The text on the right writes the same range as an inequality, such as y≥0y \geq 0, −1≤y≤3-1 \leq y \leq 3 or y≠2y \neq 2.

Probing with the Test Level Slider

DemoProbing with the test level
Step 0 of 3
The test level slider, qq, sits in both tabs. Drag it from −10-10 to 1010. As you move it:

• A dashed horizontal line follows it across the graph.
• A dot on the y-axis at y=qy = q is navy and labelled in the range when some input gives that output, and red and labelled outside when none does.
• The text on the right repeats the verdict.

The dashed line makes the question visible: an output is in the range exactly when the horizontal line y=qy = q meets the curve. That is the horizontal line picture of the range, the partner of the vertical line picture of the domain.

The Explanation and the Labels

The text on the right follows the function and the sliders. It gives the base function and its base range, then the current range of gg as an inequality, and the verdict for the test level. A short note under How parameters affect the range explains why only aa and kk matter.

The special cases are spelled out: a negative aa flips the range across the line y=ky = k, turning a floor into a ceiling, and a=0a = 0 makes gg the constant kk, so the range shrinks to that one value.

Along the bottom of the graph, small labels show aa, kk, bb, hh and qq; a label turns blue once its value has moved from the start.

Switches, Zoom and the Concepts Tab

Two switches under the sliders change what is drawn: Original function f hides or shows the dashed base curve, and Range and test level hides or shows the blue stretch, the dashed line and the dot.

The buttons at the top right zoom in and out, return to the starting view, save the graph as a picture and open the tool full screen. ▶ beside a slider runs it by itself, Speed sets how fast, and Reset puts back the sliders of the current tab.

Above the explanation, the Concepts tab holds a page that does not change with the controls: what a range is, open and closed ends, excluded values, and why the input parameters cannot move it.

What Is the Range of a Function?

The range of a function is the set of all outputs it can produce — equivalently, the image of the domain under the function. If yy is in the range, then there exists at least one xx such that f(x)=yf(x) = y. If yy is not in the range, no input produces it.

Different function families have qualitatively different ranges:

• x2x^2 — always non-negative; the range is [0,∞)[0, \infty)
• exe^x — always strictly positive; the range is (0,∞)(0, \infty)
• sin⁡(x)\sin(x) and cos⁡(x)\cos(x) — always between −1-1 and 11 inclusive
• 1/x1/x — reaches every real number except 00
• x3x^3, ln⁡x\ln x, identity — reach every real number

Range is independent of domain. A function can have a tiny domain and reach every real number, or have an enormous domain and stay confined to a small interval. The natural logarithm illustrates both points at once: domain restricted to x>0x > 0, range equal to all of R\mathbb{R}.

The range together with the domain fully characterizes the input-output behavior of a function. Together they answer "what goes in" and "what can come out."

Open vs Closed Endpoints and Excluded Values

Three subtle distinctions show up in the visualizer's range bar:

• Closed endpoint (filled circle) — the boundary value is reached. Square root has range y≥0y \geq 0 with a closed endpoint at 00, because 0=0\sqrt{0} = 0 exactly. The range bar shows a filled dot.

• Open endpoint (hollow circle) — the boundary value is approached but never reached. Exponential has range y>0y > 0 with an open endpoint at 00, because exe^x gets arbitrarily close to 00 as x→−∞x \to -\infty but never equals 00. The range bar shows a hollow dot.

• Excluded value (red ×) — the function reaches every value except one. Reciprocal has range y≠0y \neq 0 — every nonzero real number is hit somewhere on the curve, but 00 is the horizontal asymptote, never touched. The range bar shows a full fill broken by a small red × at the excluded value.

The distinction between open and closed endpoints is genuinely important in calculus and analysis: it determines whether the function attains its extreme values, whether continuity holds at the boundary, and whether a maximum or minimum exists.

Ranges Covering All of the Reals

Four functions in the picker produce every real number as an output: the identity, the scaled linear, the cubic, and — the surprise of the group — the logarithm. Their range bar is one unbroken green band up the whole y-axis.

The logarithm's membership is the teaching moment: a function with a heavily restricted domain can still have a complete range. Domain and range restrictions are independent, and this group proves it in one glance.

The Identity Function

The identity outputs exactly what it receives, so its range is all of R\mathbb{R} — every height on the y-axis gets hit exactly once.
-10-5510-55f(x) = x
f(x) = x, range frozen

One unbroken green band up the y-axis: every height is an output, each hit exactly once.

The green band runs the whole axis with nothing to mark. As with the domain tool, the identity is the control case: switch here and every red stripe vanishes.

One nuance worth a look: the identity hits each output exactly once. The cubic also covers everything, but with a different rhythm — the comparison shows that "range = ℝ" says nothing about how often each value is reached.

The Scaled Linear Function

Doubling still reaches every height: f(x)=2xf(x) = 2x has range R\mathbb{R}, just traversed twice as fast.
-10-5510-55f(x) = 2x
f(x) = 2x, range frozen

Full green band: doubling covers every output, just twice as fast.

Every nonzero linear function is onto the reals — steepness changes the pace, never the coverage. Only the degenerate a=0a = 0 collapses the range to a single value, which you can watch happen by dragging the vertical-scale slider through zero.

That collapse is the range tool's most dramatic slider moment: an entire axis of outputs shrinking to one green dot at y=ky = k.

The Cubic Function

Odd powers are onto: x3x^3 produces every real output, from arbitrarily negative to arbitrarily positive.
-10-5510-55f(x) = x³
f(x) = x³, range frozen

Odd power, full coverage: from arbitrarily deep to arbitrarily high, nothing on the y-axis is missed.

The cubic pairs with the quadratic as the parity lesson of this page: an odd power covers the whole y-axis, an even power only half of it. One sign change in the exponent, half the range gone.

Full range plus full domain also makes the cubic invertible everywhere — the cube root needs no restriction, unlike the square root story on the domain page.

The Logarithmic Function

The logarithm climbs without bound and dives without bound: its range is all of R\mathbb{R}, despite a domain of only half the line.
-10-5510-55f(x) = ln(x)
f(x) = ln(x), range frozen

The curve lives only on the right half-plane, yet the green band covers the entire y-axis — restricted domain, complete range.

Slow growth is still unbounded growth — ln⁡(x)\ln(x) eventually exceeds any height, and near zero it plunges below any depth. The green band covers the entire y-axis while the curve itself lives only on the right half-plane.

This is the mirror image of its inverse: the exponential has full domain and restricted range; the logarithm has restricted domain and full range. Inversion swaps the two restrictions — the cleanest statement of the domain-range duality this pair of tools is built around.

Ranges Bounded Below

Four functions never output anything below a floor: the quadratic, the absolute value, and the square root all bottom out at 00 and include it — while the exponential presses toward 00 forever without ever reaching it.

Same floor, two different relationships with it: three closed dots and one open circle. Whether the boundary output is attained is exactly the open-versus-closed distinction, now on the y-axis.

The Quadratic Function

Squares are never negative: the parabola's outputs fill [0,∞)[0, \infty), with the floor value 00 genuinely attained at the vertex.
-10-5510-55f(x) = x²
f(x) = x², range frozen

Green from zero upward with a filled dot at the floor: 0 is genuinely attained at the vertex; below it, red.

The filled green dot at y=0y = 0 records the attainment: f(0)=0f(0) = 0 is a real output, produced by a real input. Everything below the floor is red — no input, however clever, squares to a negative.

Every output above the floor is hit twice (xx and −x-x), the vertex value once. That double-covering is why inverting the parabola requires choosing a branch.

Drag aa negative and the whole picture flips: range (−∞,0](-\infty, 0], the floor becoming a ceiling — the range rule y=aL+ky = aL + k acting live.

The Absolute Value Function

The V outputs distances, and distances start at zero: range [0,∞)[0, \infty), floor attained at the corner.
-10-5510-55f(x) = |x|
f(x) = |x|, range frozen

The same range as the parabola — [0, ∞), floor attained at the corner — from a different shape.

Identical range to the quadratic — same closed floor, same double-covering of positive outputs — from a completely different shape. Range, like domain, is a coarse fingerprint: it cannot tell the parabola from the V.

What distinguishes them is how the floor is touched: the parabola kisses it smoothly, the V hits it at a corner. The range bar sees only the same green dot.

The Square Root Function

The square root returns the non-negative root only: range [0,∞)[0, \infty), starting from the attained output 0=0\sqrt{0} = 0.
-10-5510-55f(x) = √x
f(x) = √x, range frozen

Range [0, ∞), floor attained at the origin — and each output reached exactly once.

Here range and domain have the same shape — [0,∞)[0, \infty) both ways — a coincidence peculiar to this function among the picker's eleven. The curve starts at the origin and covers each output exactly once, making it invertible without any branch-picking.

The single-covering is the point of contrast with its siblings in the bounded-below group: same green half-axis, but reached once per value rather than twice.

The Exponential Function

The exponential outputs only positive values — and the boundary 00 is approached forever but never produced: range (0,∞)(0, \infty), open at the floor.
-10-5510-55f(x) = eˣ
f(x) = eˣ, range frozen

Green above zero with an OPEN circle at the floor: the curve presses toward y = 0 forever without producing it.

The open circle at y=0y = 0 is the range-side signature of a horizontal asymptote: the curve flattens toward the floor as x→−∞x \to -\infty, yet ex=0e^x = 0 has no solution. An asymptote is precisely an output the function approaches but never attains.

Compare the quadratic's filled dot: same-looking floor, opposite answer to "is the floor a real output?" — the whole open/closed lesson in two markers.

Shift kk upward and the excluded floor rides with it: range (k,∞)(k, \infty), the asymptote always exactly at the open circle.

Ranges Bounded on Both Sides

Sine and cosine are the picker's only two-sided prisoners: every output lands in [−1,1][-1, 1], with both walls included. Green band from −1-1 to 11, closed dots at both ends, red everywhere else.

A bounded range is what makes amplitude a meaningful idea — and it is why these two functions model oscillation: outputs that can neither escape upward nor downward have nowhere to go but back and forth.

The Sine Function

Sine's outputs sweep [−1,1][-1, 1] and touch both walls: sin⁡(π/2)=1\sin(\pi/2) = 1 and sin⁡(−π/2)=−1\sin(-\pi/2) = -1 are attained exactly, infinitely often.
-10-5510-55f(x) = sin(x)
f(x) = sin(x), range frozen

A green band from −1 to 1 with filled dots at both walls — the extremes are real outputs, hit once per period.

Both endpoint dots are filled — the extremes are genuine outputs, hit once per period — and every interior value is hit twice per period. Nothing outside the band is ever produced, however far xx travels.

Under the transformation asin⁡(x)+ka \sin(x) + k the band becomes [k−∣a∣,k+∣a∣][k - |a|, k + |a|]: amplitude is nothing more than the half-width of the range. Watching the green band stretch as you drag aa is the best definition of amplitude the tool can offer.

The Cosine Function

Cosine shares sine's prison exactly: range [−1,1][-1, 1], both walls attained — only the inputs achieving each output differ.
-10-5510-55f(x) = cos(x)
f(x) = cos(x), range frozen

The identical band to sine : range cannot tell the two apart — the phase difference lives on the x-axis.

The range bar cannot distinguish sine from cosine at all — identical green band, identical closed dots. The phase shift between them lives entirely on the x-axis, invisible to any output-side measurement.

That invisibility is the deeper point: range collapses a function to the set of its outputs, forgetting when and how often each occurs. Two functions can be output-identical yet nowhere equal.

The Reciprocal and Its Missing Output

The reciprocal produces every real output except one: 1/x=01/x = 0 has no solution, so the range is R∖{0}\mathbb{R} \setminus \{0\} — a green axis with a single puncture.
-10-5510-55f(x) = 1/x
f(x) = 1/x, range frozen

Green in both directions with one puncture at y = 0: the single output no input can produce.

The open circle at y=0y = 0 is the output-side twin of the reciprocal's excluded input: this function misses exactly one value in each direction, and both misses trace back to the same fraction 1/x1/x never being zero and never accepting zero.

The missing output is again a horizontal asymptote wearing range clothing: both branches flatten toward y=0y = 0 without arriving, just like the exponential's floor — but here the asymptote is approached from both sides, puncturing the middle of the range rather than capping its end.

Shift kk and the puncture rides to y=ky = k: every transformed reciprocal misses exactly one output, always at its horizontal asymptote.