7Solve Blog
MathematicsClass 11, Class 12, JEE

Domain and Range of Functions — Explained With Examples

How to find the domain and range of any function, with the four cases that cover Class 11 and JEE questions and the mistakes that lose marks.

17 September 2026·3 min read·7Solve Team

Every "domain and range" question is the same two questions in disguise: what can go in, and what can come out. Once you check the inputs against three rules and read the outputs off the shape of the function, the whole topic takes ten minutes to learn and no time to forget.

Domain: what can go in

The domain is the set of x-values for which f(x) is a real number. Only three things ever break that:

If none of these appear, the domain is all real numbers, ℝ. Polynomials, |x|, sin x and cos x are all like that.

Example 1. f(x) = 1/(x − 3). The denominator is zero at x = 3, so the domain is ℝ − {3}.

Example 2. f(x) = √(x − 2). We need x − 2 ≥ 0, so x ≥ 2. Domain: [2, ∞).

Example 3. f(x) = √(4 − x²). We need 4 − x² ≥ 0, that is x² ≤ 4, so −2 ≤ x ≤ 2. Domain: [−2, 2]. (A common slip is writing x ≤ 2 and forgetting the left end.)

Example 4. f(x) = log(x² − 5x + 6). We need x² − 5x + 6 > 0, so (x − 2)(x − 3) > 0, so x < 2 or x > 3. Domain: (−∞, 2) ∪ (3, ∞).

Range: what comes out

The range is the set of outputs the function actually reaches. There are two reliable methods.

Method A — read the shape

For familiar shapes, you know the range:

FunctionRangeWhy
x²[0, ∞)a square is never negative
\x\[0, ∞)a modulus is never negative
sin x, cos x[−1, 1]the wave never leaves that band
eˣ(0, ∞)never zero, never negative
1/xℝ − {0}never exactly zero
√x[0, ∞)the principal root is non-negative

Shift and stretch rules carry over: x² + 3 has range [3, ∞); −|x| has range (−∞, 0]; 2 sin x + 1 has range [−1, 3].

Method B — solve for x

When the shape is unfamiliar, put y = f(x) and rearrange to get x in terms of y. Whatever makes that impossible is missing from the range.

Example 5. f(x) = (2x + 1)/(x − 1). Put y = (2x + 1)/(x − 1). Then y(x − 1) = 2x + 1, so yx − y = 2x + 1, so x(y − 2) = y + 1, so x = (y + 1)/(y − 2). This fails only at y = 2. Range: ℝ − {2}.

Example 6. f(x) = x² − 4x + 7. Complete the square: (x − 2)² + 3. The square is at least 0, so f is at least 3. Range: [3, ∞).

Where students go wrong

How it is tested

In Class 11 boards you will be asked to find the domain and range of two or three functions for 2–4 marks each — usually one rational, one root and one modulus or quadratic. In JEE the same idea appears inside bigger questions: composite functions, inverses, and "for how many integers is f defined". The method does not change; only the algebra around it gets longer.

A good habit: write the domain as an inequality first, solve it fully, then convert to interval notation at the end. Most lost marks are interval-notation slips, not conceptual ones.

Frequently asked questions

What is the domain of a function?

The set of all inputs (x-values) for which the function gives a real, defined output. Anything that makes a denominator zero, a square root negative, or a logarithm of a non-positive number is excluded.

What is the range of a function?

The set of all outputs (y-values) the function actually produces when x runs over the whole domain. It is what comes out, not what could in theory come out.

What is the range of f(x) = |x|?

All non-negative real numbers, written [0, ∞). The modulus is never negative and every non-negative value is reached.

How do I find the range of a rational function?

Put y = f(x), solve for x in terms of y, and see which y-values give a real x. The y that makes the rearranged expression impossible is excluded from the range.

Do it on 7Solve

ShareWhatsAppXTelegram

Related reading

Study smarter with 7By

7SolveAI-powered learning and problem solving
  • Solve doubts step by step
  • AI Tutor and practice
  • Check your own answers
Open 7Solve
7Marks by 7ByAdvanced exams and mock papers
  • Timed mock exams
  • Chapter-wise papers
  • Exam-style practice
Explore 7Marks Separate 7By product · opens in a new tab
7Solve appStudy anywhere with the 7Solve app
  • Solve from your phone
  • Snap a question with the camera
  • Pick up where you left off
Get the Android app
Chrome extensionUse 7Solve while you browse
  • Capture a question from a page or PDF
  • Solve it in a side panel
  • Open 7Solve in one click
Get the Chrome extension Desktop Chrome