In Class XI, when you write f(x)=x−3x−1 without specifying a domain, the convention is that the domain is the largest subset of 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), the natural domain is
Dom(f)={x∈R:f(x) is a real number}.
The range is
Range(f)={f(x):x∈Dom(f)}.
Equivalently, y is in the range iff the equation f(x)=y has a real solution x in the domain.
Restrictions to watch for
When you build the natural domain you must rule out:
Division by zero. Denominators must be non-zero. For g(x)1, require g(x)=0.
Square roots (and even roots) of negatives.g(x) requires g(x)≥0.
Logarithms of non-positive numbers.logg(x) requires g(x)>0 (later chapters).
Trigonometric undefined points.tanx and secx require cosx=0; cotx and cscx require sinx=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) for x. Express x in terms of y; the range is the set of y's for which x is real and lies in the domain.
(b) Completing the square. Works for any quadratic.
(c) Inspection. For ∣x∣,x2,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 y-axis is the range.
Worked examples
Example 1. Find the domain of f(x)=x2−41.
Denominator zero when x2−4=0, i.e. x=±2. So domain =R∖{−2,2}.
Example 2. Find the domain of f(x)=x−2+5−x.
Need x−2≥0 and 5−x≥0, i.e. x≥2 and x≤5. Intersection: [2,5]. Domain =[2,5].
Example 3. Find the range of f(x)=x2−6x+11.
Complete the square: f(x)=(x−3)2+2≥2. Equality at x=3. Domain is R, so all values ≥2 are attained. Range =[2,∞).
Example 4. Find the range of f(x)=1+x2x.
Let y=1+x2x. Then y(1+x2)=x, so yx2−x+y=0. For real x we need discriminant ≥0:
1−4y2≥0⟺y2≤41⟺−21≤y≤21.
Range =[−21,21]. (Both endpoints achieved at x=±1.)
Example 5 (harder). Find the domain and range of f(x)=x−3x−1.
Domain: need x−1≥0 and x−3=0, i.e. x≥1 and x=3. Domain =[1,3)∪(3,∞).
Range: write y=x−3x−1. Let t=x−1≥0, so x=t2+1 and x−3=t2−2. Then y=t2−2t for t≥0, t=2.
At t=0: y=0.
As t→2−: y→−∞. As t→2+: y→+∞. As t→∞: y→0+.
Solving y(t2−2)=t⇒yt2−t−2y=0, real t exists iff discriminant 1+8y2≥0, which is always true. But we also need t≥0.
A cleaner answer: range =R. (You can verify: for any y∈R, set t=2y1+1+8y2 when y=0; check t≥0.)
Try it yourself
Find the domain of f(x)=x−11.
Find the domain of f(x)=16−x2.
Find the domain of f(x)=x2−4.
Find the range of f(x)=x2+2x+5.
Find the range of f(x)=−x2+6x−8.
Find the domain of f(x)=x−11.
Find the range of f(x)=∣x−3∣.
Find the range of f(x)=1+x21.
Find the domain of f(x)=x2−5x+6x−2.
Find the range of f(x)=1+x2x2.
Find the domain of f(x)=x−1+6−x.
Find the range of f(x)=sin2x+cos4x (use cos2x=1−sin2x).
Pitfalls / Tricks
Always check all restrictions and intersect. A common error: x−1/(x−3) , students remember x≥1 but forget x=3.
For square roots, strict inequality>0 is needed when the square root sits in a denominator.
Range = codomain. The codomain is declared; the range is computed.
Insight. When the formula resists direct inspection, set y=f(x) and solve for x. The conditions for x to be real and inside the domain give the range exactly.