Math Lab
Home/Class XI/Ch 2/Domain and range of real functions

Domain and range of real functions

In Class XI, when you write f(x)=x−1x−3f(x) = \dfrac{\sqrt{x - 1}}{x - 3} without specifying a domain, the convention is that the domain is the largest subset of R\mathbb{R} for which the formula makes sense. We call this the natural domain. Computing it is a step-by-step affair; computing the range is the harder half.

Definitions

Given a formula f(x)f(x), the natural domain is Dom(f)={x∈R:f(x) is a real number}.\text{Dom}(f) = \{x \in \mathbb{R} : f(x) \text{ is a real number}\}.

The range is Range(f)={f(x):x∈Dom(f)}.\text{Range}(f) = \{f(x) : x \in \text{Dom}(f)\}.

Equivalently, yy is in the range iff the equation f(x)=yf(x) = y has a real solution xx in the domain.

Restrictions to watch for

When you build the natural domain you must rule out:

  1. Division by zero. Denominators must be non-zero. For 1g(x)\dfrac{1}{g(x)}, require g(x)≠0g(x) \ne 0.
  2. Square roots (and even roots) of negatives. g(x)\sqrt{g(x)} requires g(x)≥0g(x) \ge 0.
  3. Logarithms of non-positive numbers. log⁡g(x)\log g(x) requires g(x)>0g(x) > 0 (later chapters).
  4. Trigonometric undefined points. tan⁡x\tan x and sec⁡x\sec x require cos⁡x≠0\cos x \ne 0; cot⁡x\cot x and csc⁡x\csc x require sin⁡x≠0\sin x \ne 0.

To find the domain of a compound expression, take the intersection of every individual restriction.

Strategies for finding the range

Several methods, used as the problem demands.

(a) Solving y=f(x)y = f(x) for xx. Express xx in terms of yy; the range is the set of yy's for which xx is real and lies in the domain.

(b) Completing the square. Works for any quadratic.

(c) Inspection. For ∣x∣,x2,x|x|, x^2, \sqrt{x} etc., recognise the standard ranges.

(d) Calculus (later). Find maxima and minima , but this waits until Chapter 12.

(e) Graph reading. Draw the graph; the projection on the yy-axis is the range.

Worked examples

Example 1. Find the domain of f(x)=1x2−4f(x) = \dfrac{1}{x^2 - 4}.

Denominator zero when x2−4=0x^2 - 4 = 0, i.e. x=±2x = \pm 2. So domain =R∖{−2,2}= \mathbb{R} \setminus \{-2, 2\}.

Example 2. Find the domain of f(x)=x−2+5−xf(x) = \sqrt{x - 2} + \sqrt{5 - x}.

Need x−2≥0x - 2 \ge 0 and 5−x≥05 - x \ge 0, i.e. x≥2x \ge 2 and x≤5x \le 5. Intersection: [2,5][2, 5]. Domain =[2,5]= [2, 5].

Example 3. Find the range of f(x)=x2−6x+11f(x) = x^2 - 6x + 11.

Complete the square: f(x)=(x−3)2+2≥2f(x) = (x - 3)^2 + 2 \ge 2. Equality at x=3x = 3. Domain is R\mathbb{R}, so all values ≥2\ge 2 are attained. Range =[2,∞)= [2, \infty).

Example 4. Find the range of f(x)=x1+x2f(x) = \dfrac{x}{1 + x^2}.

Let y=x1+x2y = \dfrac{x}{1 + x^2}. Then y(1+x2)=xy(1 + x^2) = x, so yx2−x+y=0yx^2 - x + y = 0. For real xx we need discriminant ≥0\ge 0: 1−4y2≥0  ⟺  y2≤14  ⟺  −12≤y≤12.1 - 4y^2 \ge 0 \iff y^2 \le \tfrac{1}{4} \iff -\tfrac{1}{2} \le y \le \tfrac{1}{2}. Range =[−12,12]= \left[-\tfrac{1}{2}, \tfrac{1}{2}\right]. (Both endpoints achieved at x=±1x = \pm 1.)

Example 5 (harder). Find the domain and range of f(x)=x−1x−3f(x) = \dfrac{\sqrt{x - 1}}{x - 3}.

Domain: need x−1≥0x - 1 \ge 0 and x−3≠0x - 3 \ne 0, i.e. x≥1x \ge 1 and x≠3x \ne 3. Domain =[1,3)∪(3,∞)= [1, 3) \cup (3, \infty).

Range: write y=x−1x−3y = \dfrac{\sqrt{x - 1}}{x - 3}. Let t=x−1≥0t = \sqrt{x - 1} \ge 0, so x=t2+1x = t^2 + 1 and x−3=t2−2x - 3 = t^2 - 2. Then y=tt2−2y = \dfrac{t}{t^2 - 2} for t≥0t \ge 0, t≠2t \ne \sqrt{2}.

At t=0t = 0: y=0y = 0.

As t→2−t \to \sqrt{2}^-: y→−∞y \to -\infty. As t→2+t \to \sqrt{2}^+: y→+∞y \to +\infty. As t→∞t \to \infty: y→0+y \to 0^+.

Solving y(t2−2)=t⇒yt2−t−2y=0y(t^2 - 2) = t \Rightarrow y t^2 - t - 2y = 0, real tt exists iff discriminant 1+8y2≥01 + 8y^2 \ge 0, which is always true. But we also need t≥0t \ge 0.

A cleaner answer: range =R= \mathbb{R}. (You can verify: for any y∈Ry \in \mathbb{R}, set t=1+1+8y22yt = \dfrac{1 + \sqrt{1 + 8y^2}}{2y} when y≠0y \ne 0; check t≥0t \ge 0.)

Try it yourself

  1. Find the domain of f(x)=1x−1f(x) = \dfrac{1}{x - 1}.
  2. Find the domain of f(x)=16−x2f(x) = \sqrt{16 - x^2}.
  3. Find the domain of f(x)=x2−4f(x) = \sqrt{x^2 - 4}.
  4. Find the range of f(x)=x2+2x+5f(x) = x^2 + 2x + 5.
  5. Find the range of f(x)=−x2+6x−8f(x) = -x^2 + 6x - 8.
  6. Find the domain of f(x)=1x−1f(x) = \dfrac{1}{\sqrt{x - 1}}.
  7. Find the range of f(x)=∣x−3∣f(x) = |x - 3|.
  8. Find the range of f(x)=11+x2f(x) = \dfrac{1}{1 + x^2}.
  9. Find the domain of f(x)=x−2x2−5x+6f(x) = \dfrac{x - 2}{x^2 - 5x + 6}.
  10. Find the range of f(x)=x21+x2f(x) = \dfrac{x^2}{1 + x^2}.
  11. Find the domain of f(x)=x−1+6−xf(x) = \sqrt{x - 1} + \sqrt{6 - x}.
  12. Find the range of f(x)=sin⁡2x+cos⁡4xf(x) = \sin^2 x + \cos^4 x (use cos⁡2x=1−sin⁡2x\cos^2 x = 1 - \sin^2 x).

Pitfalls / Tricks

  • Always check all restrictions and intersect. A common error: x−1/(x−3)\sqrt{x - 1}/(x - 3) , students remember x≥1x \ge 1 but forget x≠3x \ne 3.
  • For square roots, strict inequality >0> 0 is needed when the square root sits in a denominator.
  • Range ≠\ne codomain. The codomain is declared; the range is computed.
  • Insight. When the formula resists direct inspection, set y=f(x)y = f(x) and solve for xx. The conditions for xx to be real and inside the domain give the range exactly.

Test Your Knowledge

Quick MCQ check on this chapter

Start Quiz →

AI Summary

Summarize this page in your favorite LLM