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)=x1x3f(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)={xR: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):xDom(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. logg(x)\log g(x) requires g(x)>0g(x) > 0 (later chapters).
  4. Trigonometric undefined points. tanx\tan x and secx\sec x require cosx0\cos x \ne 0; cotx\cot x and cscx\csc x require sinx0\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)=1x24f(x) = \dfrac{1}{x^2 - 4}.

Denominator zero when x24=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)=x2+5xf(x) = \sqrt{x - 2} + \sqrt{5 - x}.

Need x20x - 2 \ge 0 and 5x05 - x \ge 0, i.e. x2x \ge 2 and x5x \le 5. Intersection: [2,5][2, 5]. Domain =[2,5]= [2, 5].

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

Complete the square: f(x)=(x3)2+22f(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 yx2x+y=0yx^2 - x + y = 0. For real xx we need discriminant 0\ge 0: 14y20    y214    12y12.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)=x1x3f(x) = \dfrac{\sqrt{x - 1}}{x - 3}.

Domain: need x10x - 1 \ge 0 and x30x - 3 \ne 0, i.e. x1x \ge 1 and x3x \ne 3. Domain =[1,3)(3,)= [1, 3) \cup (3, \infty).

Range: write y=x1x3y = \dfrac{\sqrt{x - 1}}{x - 3}. Let t=x10t = \sqrt{x - 1} \ge 0, so x=t2+1x = t^2 + 1 and x3=t22x - 3 = t^2 - 2. Then y=tt22y = \dfrac{t}{t^2 - 2} for t0t \ge 0, t2t \ne \sqrt{2}.

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

As t2t \to \sqrt{2}^-: yy \to -\infty. As t2+t \to \sqrt{2}^+: y+y \to +\infty. As tt \to \infty: y0+y \to 0^+.

Solving y(t22)=tyt2t2y=0y(t^2 - 2) = t \Rightarrow y t^2 - t - 2y = 0, real tt exists iff discriminant 1+8y201 + 8y^2 \ge 0, which is always true. But we also need t0t \ge 0.

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

Try it yourself

  1. Find the domain of f(x)=1x1f(x) = \dfrac{1}{x - 1}.
  2. Find the domain of f(x)=16x2f(x) = \sqrt{16 - x^2}.
  3. Find the domain of f(x)=x24f(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+6x8f(x) = -x^2 + 6x - 8.
  6. Find the domain of f(x)=1x1f(x) = \dfrac{1}{\sqrt{x - 1}}.
  7. Find the range of f(x)=x3f(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)=x2x25x+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)=x1+6xf(x) = \sqrt{x - 1} + \sqrt{6 - x}.
  12. Find the range of f(x)=sin2x+cos4xf(x) = \sin^2 x + \cos^4 x (use cos2x=1sin2x\cos^2 x = 1 - \sin^2 x).

Pitfalls / Tricks

  • Always check all restrictions and intersect. A common error: x1/(x3)\sqrt{x - 1}/(x - 3) , students remember x1x \ge 1 but forget x3x \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.

Practice quiz

Quick check on this topic.

Quiz
Quick check : Domain and range
6 questions · pick the best answer
Q1

Q2

Q3

Q4

Q5

Q6