In short
The domain of a function is the set of all inputs for which the function produces a valid output. The range is the set of all outputs the function actually produces. For real-valued functions, finding the domain means locating values that cause division by zero, square roots of negatives, or logarithms of non-positives — and excluding them. Finding the range means determining which output values are actually achieved. When no domain is stated, the natural (implied) domain is the largest subset of \mathbb{R} where the formula works.
A railway ticket counter sells tickets from Delhi to Jaipur. The counter accepts cash in denominations of ₹10, ₹20, ₹50, ₹100, ₹200, ₹500, and ₹2000. For each denomination you hand over, the counter gives back a specific change amount and a ticket. But hand over a ₹5 coin and the counter refuses — that denomination is not in the system.
The set of denominations the counter accepts is its domain. The set of change amounts it actually returns is its range. A ₹2000 note and a ₹500 note might both produce the same change amount (if the ticket costs ₹480, both produce valid change), but the counter will never accept a denomination it was not programmed for.
Functions work the same way. The formula f(x) = \frac{1}{x-3} accepts every real number except 3 — feed in 3 and the machine breaks (division by zero). The domain is \mathbb{R} \setminus \{3\}. The outputs that actually come out — that is the range. Finding both is the core skill of this article.
What domain and range mean
From the article on functions, you know that a function f: A \to B assigns each element of A to exactly one element of B. The set A is the domain, and the range is the subset of B that actually gets hit:
When A and B are subsets of \mathbb{R}, the domain is an interval or a union of intervals on the x-axis, and the range is an interval or union of intervals on the y-axis. The graph of the function sits inside the rectangle \text{domain} \times \text{codomain}, and its shadow on the y-axis is the range.
Natural domain (implied domain)
When a problem says "find the domain of f(x) = \sqrt{x - 2}" without specifying a set A, it is asking for the natural domain — the largest subset of \mathbb{R} for which the formula produces a real output. This is also called the implied domain.
Three operations create restrictions on the natural domain:
- Division by zero. If the formula has a denominator, exclude every x that makes the denominator 0.
- Even roots of negatives. If the formula contains \sqrt[n]{\text{expression}} with n even, require the expression inside to be \ge 0.
- Logarithms of non-positives. If the formula contains \log(\text{expression}), require the expression inside to be > 0.
These three rules cover virtually every domain question in class 11. Odd roots (\sqrt[3]{x}) and polynomials (x^3 - 5x + 2) are defined for all real numbers, so they impose no restrictions.
Finding the domain: the systematic method
Here is a clean procedure for any formula-based function.
Step 1. Identify every sub-expression that creates a restriction: denominators, even roots, logarithms.
Step 2. For each restriction, write an inequality or an exclusion.
Step 3. Intersect all the conditions. The intersection is the domain.
Take f(x) = \frac{\sqrt{x+1}}{x-2}. Two restrictions appear:
- The square root requires x + 1 \ge 0, i.e., x \ge -1.
- The denominator requires x - 2 \ne 0, i.e., x \ne 2.
Intersect: x \ge -1 and x \ne 2. In interval notation: [-1, 2) \cup (2, \infty).
Finding the range: algebraic method
Finding the range is harder than finding the domain because you need to determine which output values are actually achieved. The standard algebraic method works like this:
Step 1. Set y = f(x).
Step 2. Rearrange to express x in terms of y (or to get a polynomial in x with coefficients involving y).
Step 3. Determine which values of y allow at least one real solution for x that lies in the domain.
The values of y that survive are the range.
For a quadratic function f(x) = ax^2 + bx + c with a > 0, the parabola opens upward. Its minimum value is at the vertex: y_{\min} = c - \frac{b^2}{4a}. The range is \left[c - \frac{b^2}{4a}, \infty\right).
For a rational function like f(x) = \frac{1}{x}, you set y = \frac{1}{x}, which gives x = \frac{1}{y}. This has a solution for every y \ne 0, so the range is \mathbb{R} \setminus \{0\}.
Graphical method: reading domain and range from a graph
When you have the graph of a function, the domain and range are visible.
- Domain: look along the x-axis. Every x-value where the curve exists is in the domain.
- Range: look along the y-axis. Every y-value where the curve has a point is in the range.
This is the "shadow" idea from the first figure. Project the curve onto the x-axis for the domain, and onto the y-axis for the range.
Two worked examples
Example 1: Find the domain and range of $f(x) = \sqrt{4 - x^2}$
Step 1. Identify the restriction. The square root requires 4 - x^2 \ge 0.
Why: you cannot take the square root of a negative number in \mathbb{R}, so the expression under the root must be non-negative.
Step 2. Solve the inequality.
Why: rearranging gives x^2 \le 4. Since x^2 is non-negative, this holds exactly when |x| \le 2, i.e., x \in [-2, 2].
Step 3. State the domain.
Step 4. Find the range. The expression under the root, 4 - x^2, takes its maximum when x = 0: \sqrt{4 - 0} = 2. It takes its minimum when x = \pm 2: \sqrt{4 - 4} = 0. As x moves from 0 to \pm 2, the value \sqrt{4 - x^2} decreases continuously from 2 to 0. Every value between 0 and 2 is achieved.
Why: the square root function is continuous, so by the intermediate value theorem, every y between 0 and 2 is hit.
Step 5. State the range.
Result: Domain = [-2, 2]. Range = [0, 2].
The graph is the upper semicircle of x^2 + y^2 = 4. You can see that x cannot go beyond \pm 2 (that is the domain) and y never exceeds 2 or goes below 0 (that is the range).
Example 2: Find the domain and range of $g(x) = \frac{x+1}{x-3}$
Step 1. Find the domain. The denominator x - 3 must not be zero, so x \ne 3.
Why: division by zero is undefined. Every other real number produces a valid output.
Step 2. State the domain.
Step 3. Find the range. Set y = \frac{x+1}{x-3} and solve for x.
Why: by isolating x, you determine which y-values produce a valid x. This expression is defined when y - 1 \ne 0, i.e., y \ne 1.
Step 4. Check that the solution x lies in the domain. You need x \ne 3. Substitute: \frac{3y+1}{y-1} = 3 gives 3y + 1 = 3y - 3, i.e., 1 = -3, which is impossible. So no value of y forces x = 3. Every y \ne 1 is achieved.
Why: the impossible equation confirms that x = 3 never arises as a solution, so no additional values of y need to be excluded beyond y = 1.
Result: Domain = \mathbb{R} \setminus \{3\}. Range = \mathbb{R} \setminus \{1\}.
The horizontal asymptote tells you the missing value in the range. As x \to \pm\infty, the function approaches 1 but never equals it — and the algebra confirms this: y = 1 has no solution for x.
Domain and range of common functions
Here is a quick reference for functions you will see repeatedly.
| Function | Domain | Range |
|---|---|---|
| f(x) = c (constant) | \mathbb{R} | \{c\} |
| f(x) = x (identity) | \mathbb{R} | \mathbb{R} |
| f(x) = x^2 | \mathbb{R} | [0, \infty) |
| f(x) = x^3 | \mathbb{R} | \mathbb{R} |
| f(x) = |x| | \mathbb{R} | [0, \infty) |
| f(x) = \sqrt{x} | [0, \infty) | [0, \infty) |
| f(x) = \frac{1}{x} | \mathbb{R} \setminus \{0\} | \mathbb{R} \setminus \{0\} |
Each row encodes a pair of facts: what you can feed in, and what comes out. The graphs of basic functions article draws all of these curves, so you can verify each row visually.
Common confusions
-
"The domain is always \mathbb{R}." Only for functions like polynomials and exponentials. Any formula involving division, even roots, or logarithms can restrict the domain. Always check.
-
"Range and codomain are the same." The codomain is the set you declare as the target; the range is what actually gets hit. For f(x) = x^2 with codomain \mathbb{R}, the range is only [0, \infty). The codomain is the whole real line, but negative numbers are never outputs.
-
"If x = a makes the denominator zero, then y = f(a) is not in the range." This is backwards. Excluding x = a from the domain tells you nothing directly about the range. To find the missing range values, you must check which y-values have no valid x mapping to them. Sometimes the excluded x-value and the excluded y-value are related (as with asymptotes), but the connection is indirect.
-
"The range of \sqrt{x} is (0, \infty)." Close, but wrong — \sqrt{0} = 0 is a valid output. The range is [0, \infty), with the square bracket including 0.
-
"Domain restrictions only come from denominators." Even roots and logarithms also impose restrictions. The function f(x) = \sqrt{x} + \log(x-1) has two restrictions: x \ge 0 from the root and x > 1 from the logarithm. The domain is the intersection: (1, \infty).
Going deeper
If you are comfortable finding domains and ranges for class 11 functions, the material above is sufficient. The rest of this section covers two subtler points.
Piecewise functions and domain by cases
A piecewise function defines different rules on different intervals. Each piece has its own natural domain, and the overall domain is the union of the intervals where each piece is defined.
Take:
The first piece is x^2, defined for all x < 0. The second piece is \sqrt{x}, defined for all x \ge 0. The union is (-\infty, 0) \cup [0, \infty) = \mathbb{R}. For the range: the first piece gives (0, \infty) (since x^2 > 0 for x < 0). The second piece gives [0, \infty). The union is [0, \infty).
Domain of composite functions
When you have h(x) = f(g(x)), the domain of h is the set of all x such that:
- x is in the domain of g (so g(x) is defined), and
- g(x) is in the domain of f (so f(g(x)) is defined).
For example, h(x) = \sqrt{\frac{1}{x}}. Think of this as f(g(x)) where g(x) = \frac{1}{x} and f(t) = \sqrt{t}. Condition 1: x \ne 0. Condition 2: \frac{1}{x} \ge 0, which means x > 0. Intersecting: x > 0, i.e., the domain is (0, \infty).
This becomes important in function composition, which you will study in a later chapter.
Where this leads next
You now know how to find the domain and range of real-valued functions using algebraic methods, graphical inspection, and the three key restriction rules. Here is where this knowledge connects.
- Graphs of Basic Functions — see the shapes of the standard functions whose domains and ranges you just catalogued.
- Functions — Definition and Notation — revisit the formal definition of domain, codomain, and range if the distinction is not yet sharp.
- Types of Functions — injective, surjective, bijective: classifications that depend directly on how domain maps to range.
- Intervals and Inequalities — Preview — the interval notation used throughout this article.
- Quadratic Expression and Function — finding the range of quadratic functions using vertex form.