Domain and range of functions

Every calculator, spreadsheet formula and physics equation is quietly asking two questions before it does anything else: what inputs am I allowed to feed this rule, and what outputs can it possibly hand back? A function is a relation with one extra guarantee — every permitted input produces exactly one output — and the domain and range are simply the honest bookkeeping of those allowed inputs and achievable outputs. This article stays inside the ISC Class 11 "Relations and Functions" scope: defining a function as a special relation y=f(x)y = f(x), and finding the domain and range of the nine standard real-valued functions — constant, identity, polynomial, rational, modulus, signum, exponential, logarithmic, and greatest-integer. Formal classification (one-one, onto, bijective) and composition or inverse of functions belong to Class XII and are not covered here. By the end you should be able to spot instantly why 1x−3\frac{1}{x-3} excludes x=3x=3, why [−1.3]=−2[-1.3]=-2 and not −1-1, and how to hunt for a range by solving for xx in terms of yy.

The core insight

A function assigns each input in its domain exactly one output, and finding domain/range means locating every input where the rule breaks down (domain) and every output value the rule can actually produce (range).

The core idea

A function ff from set AA to set BB is a relation f⊆A×Bf \subseteq A \times B in which every element of AA appears as the first entry of exactly one ordered pair. Writing y=f(x)y = f(x) means: for each input xx in the domain, ff assigns a unique output yy. Two definitions do all the work in this topic:

  • Domain = the set of all permissible inputs xx, i.e. the values for which f(x)f(x) is actually defined.
  • Range = the set of all outputs f(x)f(x) actually attained as xx ranges over the domain — not just "wherever the formula could land," but every value it truly reaches.

That distinction between domain and range mirrors two different kinds of question. Domain-hunting is about spotting forbidden inputs: division by zero, a negative number under an even root, a non-positive argument inside a logarithm. Range-hunting is about tracing achievable outputs, usually by solving the equation y=f(x)y = f(x) for xx and asking which yy values leave a valid xx behind.

Domain(f)={x∈R:f(x) is defined},Range(f)={f(x):x∈Domain(f)}\text{Domain}(f) = \{x \in \mathbb{R} : f(x) \text{ is defined}\}, \qquad \text{Range}(f) = \{f(x) : x \in \text{Domain}(f)\}

where: f(x)f(x) is the rule assigning an output to each input xx; "defined" means the arithmetic in the rule does not break (no division by zero, no even root of a negative, no logarithm of a non-positive number). The nine standard real-valued functions on the syllabus, with their domain and range:

FunctionRuleDomainRange
Constantf(x)=cf(x) = cR\mathbb{R}{c}\{c\}
Identityf(x)=xf(x) = xR\mathbb{R}R\mathbb{R}
Polynomialf(x)=anxn+⋯+a0f(x) = a_nx^n + \dots + a_0R\mathbb{R}depends on degree
Rationalf(x)=p(x)q(x)f(x) = \dfrac{p(x)}{q(x)}R\mathbb{R} except where q(x)=0q(x)=0depends
Modulusf(x)=∣x∣f(x) = |x|R\mathbb{R}[0,∞)[0,\infty)
Signumf(x)={1,x>00,x=0−1,x<0f(x) = \begin{cases}1,& x>0\\0,& x=0\\-1,& x<0\end{cases}R\mathbb{R}{−1,0,1}\{-1,0,1\}
Exponentialf(x)=ax, a>0,a≠1f(x) = a^x,\ a>0, a\ne 1R\mathbb{R}(0,∞)(0,\infty)
Logarithmicf(x)=log⁡ax, a>0,a≠1f(x) = \log_a x,\ a>0,a\ne1(0,∞)(0,\infty)R\mathbb{R}
Greatest integerf(x)=[x]f(x) = [x], largest integer ≤x\le xR\mathbb{R}Z\mathbb{Z}

For a rational function the domain excludes zeros of the denominator; the range then depends on whether the equation y=p(x)/q(x)y = p(x)/q(x) can be solved back for xx at every yy. For modulus and greatest-integer functions the domain is all of R\mathbb{R}, but the outputs are restricted in a distinctive shape. The greatest integer function always "rounds down" toward −∞-\infty, never toward zero: [2.7]=2[2.7] = 2, but [−1.3]=−2[-1.3] = -2 (not −1-1), since the largest integer that is still ≤−1.3\le -1.3 is −2-2.

Figure
Number line picture of the domain of one over x minus three showing every real number allowed except the single excluded point three
Domain of f(x) = 1 / (x minus 3): every real number except x = 3 minus infinity plus infinity x = 3 excluded included included
Derivation AFinding the range by solving for x in terms of y

For a function given by an algebraic formula, the range is found not by guessing but by treating y=f(x)y = f(x) as an equation, solving it for xx in terms of yy, and asking for which values of yy that expression for xx is itself a valid real number lying in the original domain — every such yy is in the range, and every yy that breaks the solved expression is excluded.

Step 1. Start from y=f(x)y = f(x) and rearrange algebraically until xx is isolated as an expression in yy, exactly as you would solve any equation for one variable given the other.

Step 2. Examine the resulting expression x=g(y)x = g(y) for restrictions: division by an expression in yy that could be zero, a square root of an expression in yy that could be negative, or any other operation that fails for particular yy values.

Step 3. Every value of yy for which g(y)g(y) is defined and gives an xx actually inside the domain of ff belongs to the range; every value of yy that makes g(y)g(y) undefined is excluded from the range.

Step 4. Write the range as the set of all such permissible yy, usually as R\mathbb{R} minus a finite set of excluded points, or as an interval, matching the shape of the restriction found in Step 2.

Worked example

Problem. Find the domain and range of f(x)=1x−3f(x) = \dfrac{1}{x-3}, and then find the domain and range of g(x)=∣x−2∣−3g(x) = |x-2| - 3.

Step 1. For f(x)=1x−3f(x) = \dfrac{1}{x-3}, this is a rational function, undefined wherever the denominator is zero. Setting x−3=0x - 3 = 0 gives x=3x = 3, so

Domain(f)=R−{3}=(−∞,3)∪(3,∞)\text{Domain}(f) = \mathbb{R} - \{3\} = (-\infty, 3) \cup (3, \infty)

Step 2. To find the range of ff, let y=1x−3y = \dfrac{1}{x-3} and solve for xx:

y(x−3)=1  ⟹  x−3=1y  ⟹  x=3+1yy(x-3) = 1 \implies x - 3 = \frac{1}{y} \implies x = 3 + \frac{1}{y}

This expression for xx is defined for every real yy except y=0y=0 (division by yy), and no value of xx ever makes y=0y=0 since 1x−3=0\frac{1}{x-3}=0 has no solution. So Range(f)=R−{0}\text{Range}(f) = \mathbb{R} - \{0\}.

Step 3. For g(x)=∣x−2∣−3g(x) = |x-2| - 3, the modulus ∣x−2∣|x-2| is defined for every real xx, and subtracting the constant 33 does not restrict this further, so Domain(g)=R\text{Domain}(g) = \mathbb{R}. Since ∣x−2∣≥0|x-2| \ge 0 for all xx, with the minimum value 00 at x=2x=2, g(x)≥0−3=−3g(x) \ge 0-3 = -3, and as xx moves away from 22 in either direction ∣x−2∣|x-2| grows without bound, so gg takes every value from −3-3 upward.

Step 4. Hence Range(g)=[−3,∞)\text{Range}(g) = [-3, \infty). Checking one point, g(−1)=∣−1−2∣−3=∣−3∣−3=3−3=0g(-1) = |-1-2| - 3 = |-3| - 3 = 3 - 3 = 0.

Final answer: Domain(f)=R−{3}\text{Domain}(f) = \mathbb{R}-\{3\}, Range(f)=R−{0}\text{Range}(f) = \mathbb{R}-\{0\}; Domain(g)=R\text{Domain}(g) = \mathbb{R}, Range(g)=[−3,∞)\text{Range}(g) = [-3,\infty), with g(−1)=0g(-1)=0.

Competitive stretch

For h(x)=1x−3h(x) = \dfrac{1}{\sqrt{x-3}}, the domain tightens further: the denominator must be nonzero and the quantity under the square root must be nonnegative, so x−3>0x - 3 > 0 (strict, since x=3x=3 still gives division by zero), giving Domain(h)=(3,∞)\text{Domain}(h) = (3, \infty) — combining a rational restriction with a square-root restriction in a single expression.

Common traps

  • Forgetting to exclude denominator zeros when finding the domain of a rational function — always factor and solve q(x)=0q(x) = 0 first, then remove those points from R\mathbb{R}.
  • Rounding the greatest integer function toward zero instead of toward −∞-\infty: [−1.3]=−2[-1.3] = -2, not −1-1, because [x][x] is the largest integer that is less than or equal to xx.
  • Assuming the domain of log⁡ax\log_a x allows zero or negative inputs — log⁡ax\log_a x is defined only for x>0x>0; log⁡a0\log_a 0 and log⁡a(negative)\log_a(\text{negative}) are undefined, not zero or negative outputs.
  • Confusing signum's three-value range {−1,0,1}\{-1,0,1\} with a continuous interval — signum only ever outputs one of these three exact numbers, never anything between them.

Ask the tutor: Ask the AI tutor to walk through finding the domain and range of two or three more mixed functions — like a rational function combined with a square root, or a modulus function combined with a greatest-integer function — using the solve-for-x technique step by step.

Why does the greatest integer function round down instead of to the nearest integer

Because [x][x] is defined as the largest integer that is less than or equal to xx, not the closest one. For a positive number like 2.72.7, rounding down and rounding to nearest happen to agree at first glance, but for a negative number like −1.3-1.3 the largest integer still ≤−1.3\le -1.3 is −2-2, since −1-1 is actually greater than −1.3-1.3. The rule always moves toward −∞-\infty, which is why it is also called the "floor function."

How do I know when to use the solve-for-x method versus just reasoning about the shape of the function

Use the solve-for-x method whenever the formula is algebraic and rearrangeable, like a rational function — it gives an exact, provable range. For functions built from modulus, signum, or greatest-integer, algebraic rearrangement is often clumsy, so it is faster to reason about the shape directly: modulus expressions have a known minimum, signum only ever takes three fixed values, and greatest-integer only ever outputs integers. Both methods must agree when applicable — the algebra is just the rigorous backup.

Is every relation a function, and how can I quickly check

No — a relation is a function only if every input has exactly one output. The quickest check on a graph is the vertical line test: if any vertical line crosses the graph more than once, some input has two outputs, so it fails to be a function. Algebraically, watch for rules like y2=xy^2 = x, which give two values of yy (positive and negative square root) for most positive xx, so it is a relation but not a function.

Before this

Where this leads