On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Advanced Functions · Grade 9-12

Range

The range is the set of all output values a function actually produces.

Range(f)={f(x)∣x∈Dom(f)}

Quick Answer

The range is the set of all output values a function actually produces. You need it when a question asks which results are possible: the heights a thrown ball reaches, the lowest price a formula can give, whether a model can ever output a negative number. Squares, absolute values and exponentials often set a floor (for instance, x2+3 never goes below 3), while a rational function can skip a single value it approaches but never reaches.

Why This Matters

The range tells you what a model can and cannot say. If a temperature model never outputs less than −5, it cannot predict a −10 night. An equation f(x)=k has a solution exactly when k is in the range, so knowing the range tells you before any algebra that x2+3=1 has no real solution.

Intuitive Explanation

Feed the rule f(x)=x2 some inputs: −3→9, −1→1, 0→0, 0.5→0.25, 2→4. The outputs pile up at 0 and above, and nothing ever lands below 0. The range is the set of landing spots, here [0,∞), even though the domain was every real number. Range is about what comes out, and it is often smaller than you might first assume.

Two tools find most ranges. First, look for a built-in floor or ceiling: squares and absolute values are never negative, 2x is always positive, sin⁡x stays between −1 and 1. Then shift or stretch that bound: x2+3≥3, −x2≤0, and 5sin⁡x lies in [−5,5]. Second, solve y=f(x) for x: any y that leaves no possible x is missing from the range. That is how you find that x+1x−3 never equals 1.

The range is not the codomain, the set a function is declared to map into. Saying f maps reals to reals allows any real output in principle, but x2 only reaches the non-negative ones. Nor is the range a single peak: the highest output of −x2+4 is 4, yet the range is every number up to 4, written (−∞,4].

Think of it like this. The range is the patch of lawn a sprinkler actually wets. The valve accepts any setting (the domain), but water lands only inside a certain region, and asking 'can it reach the fence?' is asking whether a value is in the range. Unlike a wet patch, a range can have a gap, such as one missing value.

Core idea. The range is every value the function can reach as the input runs over the whole domain.


When to Use

Find the range when a question asks which outputs are possible, whether a function can ever equal or exceed some value, or what the lowest or highest result is over all inputs. Typical sources of limits are squares, absolute values, square roots and exponentials (floors), sine and cosine (a floor and a ceiling), and rational functions (a skipped value). If the question asks which inputs are allowed, find the domain; if it wants only the single largest output, find the maximum.

Tip. Ask: Which output values does the function actually reach as x runs over its domain?

How to Recognize It

Before writing a range, look for anything in the formula or the situation that puts a floor, a ceiling or a gap on the outputs.

  1. Does the formula contain a square, an absolute value, an even root, or a positive base raised to x?

    Yes usually means a floor: x2−5 never drops below −5 and 2x stays above 0. With no such piece, as in 3x+1 on all reals, every real output may be reached.

  2. Is there a value the outputs approach but never equal, such as a horizontal asymptote?

    Yes means a gap: 1x+2 takes every value except 2. Check by trying to solve f(x)=2; if that equation has no solution, the value is missing from the range.

  3. Is the domain cut down, by the situation or by a stated interval?

    Yes means find the outputs over that interval only: f(x)=x2 on [−1,3] gives outputs from 0 to 9, not from 1 to 9, because the vertex lies inside. With no cut, use the natural domain.

  4. Does the question want only the largest or smallest output, not the whole set?

    Yes points to a maximum or minimum value, a single number. The range is the full set of reachable outputs; a question about allowed inputs points to the domain instead.

Range compared with Domain, Codomain, and Maximum value

Every row is a set or value tied to a function's outputs or inputs, which is why they blur. Ask whether you need every output the rule actually produces (range), its declared target set (codomain), one extreme output (maximum), or the allowed inputs (domain).

Range

Meaning
Use this when you need the set of achievable output values, including which outputs are impossible.
Key test
Which output values does the function actually reach as x runs over its domain?
Formula
Range(f)={f(x)∣x∈Dom(f)}
Example
Find the range of f(x)=x2+3.

Domain

Meaning
The set of legal input values, not the outputs produced.
Key test
Use when the question asks which x you are allowed to plug in.
Formula
{x∣f(x) defined}
Example
f(x)=x has domain x≥0 but range y≥0 — found differently

Codomain

Meaning
The declared target set a function maps into, which may be larger than what is actually reached.
Key test
Use when a function is typed f ⁣:R→R and you mean the stated target, not the hit values.
Formula
f ⁣:X→Y
Example
f(x)=x2 has codomain R but range [0,∞)

Maximum value

Meaning
A single largest output, not the whole set of outputs.
Key test
Use when the problem asks for the peak value only, not every reachable value.
Example
f(x)=−x2+4 has maximum 4; its range is y≤4

Formula & Notation

Range(f)={f(x)∣x∈Dom(f)}
Im(f)={y∈Y∣∃ x∈X:f(x)=y}

How to read it: Range(f) or Im(f) denotes the range (image). Written in set or interval notation: [0,∞).

Worked Examples

Example 1 — Range of a shifted square

Easy

Find the range of f(x)=x2+3.
Show the steps and the answer
  1. Start from the piece with a known bound: x2≥0 for every real x, with x2=0 only at x=0.

    A square can be zero or positive but never negative, so it sets a floor.

  2. Add 3: f(x)=x2+3≥0+3=3, and f(0)=3.

    Adding 3 lifts every output by 3, so the floor moves from 0 to 3 and is actually reached.

  3. Show nothing above 3 is skipped: for a target such as y=12, solve x2+3=12 to get x=±3.

    In general x=y−3 works for any y≥3, so every value above the floor occurs.

  4. Write the range as [3,∞).

    The square bracket includes 3 because f(0)=3; the open end means there is no upper limit.

Answer: Range is y≥3, i.e. [3,∞)

Takeaway: Find the floor or ceiling the rule creates, confirm it is reached, then confirm no value beyond it is skipped.

Example 2 — Domain, not range

Standard

For f(x)=x−5, the question asks which inputs are legal. Same function, same shape?
Show the steps and the answer
  1. Read what is asked: legal inputs, so this is a domain question.

    The words 'which inputs' point to x-values, not to the outputs the function produces.

  2. Require a non-negative radicand: x−5≥0, so x≥5.

    x−5 is real only when x−5≥0; at x=4 it would be −1.

  3. For contrast, find the range: f(5)=0=0, and the output grows without limit as x grows, so the range is y≥0.

    Domain x≥5 and range y≥0 are different sets; copying one as the other gives a wrong answer.

Answer: Domain is x≥5

Takeaway: Inputs and outputs are separate sets: here the domain starts at 5 while the range starts at 0.

Example 3 — Find the mistake: a peak is not a range

Application

Find the range of g(x)=−2(x−1)2+8. Ava writes: "The vertex is (1,8), so the range is 8." Find the mistake and correct it.
Show the steps and the answer
  1. Check Ava's vertex: g(1)=−2(0)2+8=8.

    The vertex is right, and because −2<0 the parabola opens down, so 8 is the highest output.

  2. Try other inputs: g(3)=−2(2)2+8=0, g(−1)=0, g(5)=−2(16)+8=−24.

    The function produces many outputs besides 8, so its range cannot be one number.

  3. Describe all outputs: −2(x−1)2≤0, so g(x)≤8, and every value below 8 is reached as x moves away from 1.

    8 is a ceiling, and the range is everything at or under it.

  4. Write the range as (−∞,8].

    The bracket includes 8, which the vertex reaches; the other end has no limit.

Answer: (−∞,8]: every output less than or equal to 8.

Takeaway: A maximum is one output; the range is the whole set, here everything up to and including that maximum.

Where You'll See It

  • How high a thrown ball goes

    A ball thrown upward has height h(t)=−5t2+20t metres until it lands at t=4 s. On 0≤t≤4 the range is [0,20]: the vertex at t=2 gives 20 m. A 25 m roof is outside the range, so this throw can never reach it.

  • Curving test scores

    A teacher curves raw scores from 0 to 100 with S(x)=10x. A raw 49 becomes 70, a raw 81 becomes 90, and a raw 100 stays 100. The range is still [0,100], so the curve lifts low scores without ever producing a mark above 100.

  • Water depth in a harbour

    If depth is d(t)=4+1.5sin⁡(πt6) metres, the sine part stays in [−1.5,1.5], so the range is [2.5,5.5]. A ship that needs 6 m can never enter; one that needs 3 m must wait for the right part of the tide.

Common Mistakes

  1. The slip: Copying the domain as the range

    Instead: inputs and outputs are different sets; compute outputs separately.

  2. The slip: Forgetting outputs a rule can never produce

    Instead: check for squares, absolute values, and exponentials that block negatives.

  3. The slip: Reporting one peak value instead of the full set

    Instead: the range is an interval or set, not a single number.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Find the range of f(x)=−x2+6.

    Hint: What is the largest value −x2 can ever have?

  2. Find the range of g(x)=∣x∣−2.

    Hint: An absolute value is never negative. What is its smallest value?

  3. Find the range of h(x)=2x+1.

    Hint: Can 2x ever equal 0 or be negative?

  4. Find the range of f(x)=2x+1 when the domain is 0≤x≤5.

    Hint: The function only increases. Evaluate it at both ends of the domain.

  5. A ball's height is h(t)=−5t2+20t metres for 0≤t≤4 seconds. The question asks for the greatest height. Is that the range, or the maximum value?

    Hint: Is the question asking for one number or for the whole set of heights?

  6. A student says the range of f(x)=x2−1 is all real numbers, 'because you can put in any x.' Find and correct the mistake.

    Hint: Being able to put in any x describes the inputs. What outputs come out?

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

How can I find a range without picturing the graph?

Solve y=f(x)y=f(x) for xx and ask which yy-values allow a solution. For y=2xx−1y=\frac{2x}{x-1}, rearranging gives x=yy−2x=\frac{y}{y-2}, which works for every yy except 2. So the range is all real numbers except 2. The method works because a yy-value belongs to the range exactly when some input produces it.

Can two functions have the same range but different domains?

Yes, and it happens all the time. f(x)=x2f(x)=x^2 on all real numbers and g(x)=x2g(x)=x^2 on x≥0x\ge 0 both have range y≥0y\ge 0, even though gg accepts only half the inputs. Cutting the domain this way, without losing any outputs, is exactly the trick that makes x2x^2 one-to-one so that it has an inverse, x\sqrt{x}.

How is the range of a function related to its inverse?

They swap. The range of ff becomes the domain of f−1f^{-1}, and the domain of ff becomes the range of f−1f^{-1}, because the inverse sends every output back to its input. For f(x)=2xf(x)=2^x the range is y>0y>0, which is why log⁡2x\log_2 x accepts only positive inputs. Swapping is a quick way to get one range when the other domain is easy.

Is the range of a real-life model the same as the range of its formula?

Not always, because the context can shrink it. A phone plan costing C(m)=20+0.1mC(m)=20+0.1m dollars for mm minutes, with 0≤m≤5000\le m\le 500, has outputs from $20 to $70 only, even though the formula alone could produce any number. Whole-number counts or rounded prices can also turn a smooth interval into a list of separate values.

Learning Path

← Before

FunctionDomain
Range

You are here

Next →

Nothing after this yet
You need Function and Domain first, since the range is built from the outputs of allowed inputs. Range adds the reverse question: which results can come out? With it you can decide whether an equation f(x)=k has any solution, describe a graph's vertical extent, and later find the domain of an inverse function, which is the range of the original.

See Also