What this les­son cov­ers

Find­ing the domain and the range of a func­tion is one of the most com­mon tasks in this chap­ter. This les­son gives work­ing rules for the domain of alge­braic, trigono­met­ric and inverse trigono­met­ric func­tions, ten meth­ods for the range, and ref­er­ence tables of domains and ranges for the stan­dard func­tions, includ­ing the hyper­bolic func­tions and their inverses.

Work­ing rules for the domain

The domain DfD_f is the set of val­ues of xx for which f(x)f(x) is defined.

Alge­braic func­tions.

  1. A denom­i­na­tor must be non-zero.
  2. An expres­sion under an even root must be non-neg­a­tive (≥0\ge 0).

Trigono­met­ric func­tions.

  1. sin⁡x\sin x and cos⁡x\cos x are defined for all real xx.
  2. tan⁡x\tan x and sec⁡x\sec x are defined for all real xx except x=(2n+1)π2\displaystyle x = (2n+1)\frac{\pi}{2}, n∈Zn \in \mathbb{Z}.
  3. cot⁡x\cot x and cosec⁡x\operatorname{cosec} x are defined for all real xx except x=nπx = n\pi, n∈Zn \in \mathbb{Z}.

Inverse trigono­met­ric func­tions.

  1. sin⁡−1x\sin^{-1} x and cos⁡−1x\cos^{-1} x are defined for −1≤x≤1-1 \le x \le 1.
  2. tan⁡−1x\tan^{-1} x and cot⁡−1x\cot^{-1} x are defined for x∈Rx \in \mathbb{R}.
  3. sec⁡−1x\sec^{-1} x and cosec⁡−1x\operatorname{cosec}^{-1} x are defined for x≤−1x \le -1 or x≥1x \ge 1.

Work­ing rules for the range

The range RfR_f is the set of images of the ele­ments of the domain. There is no sin­gle method for it; here are the main ones.

Type 1. If the domain is a finite set, find the image of each ele­ment. The set of images is the range.

Type 2. If the domain is (−∞,∞)(-\infty, \infty), let y=f(x)y = f(x), express xx in terms of yy as x=g(y)x = g(y) if pos­si­ble, and find the val­ues of yy for which xx is defined.

Type 3. If the graph of the func­tion is known, read the range from the graph.

Type 4. Use A.M.≥G.M.≥H.M.A.M. \ge G.M. \ge H.M. for pos­i­tive quan­ti­ties. For instance, the range of x+1x\displaystyle x + \frac1x is (−∞,−2]∪[2,∞)(-\infty, -2] \cup [2, \infty).

Type 5. The range of y=ax2+bx+cy = ax^2 + bx + c over R\mathbb{R} is [4ac−b24a,∞)\displaystyle \left[\frac{4ac - b^2}{4a}, \infty\right) if a>0a > 0 and (−∞,4ac−b24a]\displaystyle \left(-\infty, \frac{4ac - b^2}{4a}\right] if a<0a < 0. If the domain is restricted, draw the graph and decide the range.

Type 6. For f(x)=P(x)Q(x)\displaystyle f(x) = \dfrac{P(x)}{Q(x)} with poly­no­mi­als of degree 22, write y Q(x)=P(x)y\,Q(x) = P(x). This is a qua­dratic equa­tion in xx; since xx is real, its dis­crim­i­nant Δ≥0\Delta \ge 0, and this con­di­tion gives the range.

Type 7. If ff is strictly increas­ing on [a,b][a, b], its range is [f(a),f(b)][f(a), f(b)]. If ff is strictly decreas­ing on [a,b][a, b], its range is [f(b),f(a)][f(b), f(a)].

Type 8. For ff on [a,b][a, b]: find f′(x)f'(x), solve f′(x)=0f'(x) = 0 to get x=α,β,γ,…x = \alpha, \beta, \gamma, \dots, keep those lying in [a,b][a, b], and eval­u­ate ff there and at aa and bb. The least and great­est of these val­ues are the min­i­mum and max­i­mum of ff on [a,b][a, b].

Type 9. For ff on the open inter­val (a,b)(a, b), fol­low the same pro­ce­dure to get the least and great­est val­ues mm and MM among the crit­i­cal points. If lim⁡x→a+f(x)\displaystyle \lim_{x\to a^+} f(x) and lim⁡x→b−f(x)\displaystyle \lim_{x\to b^-} f(x) are both greater than mm, then mm is the least value. Sim­i­larly, if both lim­its are less than MM, then MM is the great­est value. Oth­er­wise the least or great­est value can­not be decided this way.

Type 10. If func­tions of dif­fer­ent kinds appear together, find the com­mon domain first and then the range.

Use­ful results.

  1. The range of ∣x−a∣+∣x−b∣|x - a| + |x - b| (with b>ab > a) is [b−a,∞)[b - a, \infty).
  2. The range of acos⁡x+bsin⁡x+ca\cos x + b\sin x + c is [c−a2+b2, c+a2+b2]\left[c - \sqrt{a^2 + b^2},\ c + \sqrt{a^2 + b^2}\right].
  3. The range of sin⁡3x+cos⁡3x\sin^3 x + \cos^3 x is [−1,1][-1, 1].
  4. If a2+b2+c2=ka^2 + b^2 + c^2 = k, then the range of ab+bc+caab + bc + ca is [−k2,k]\displaystyle \left[-\frac{k}{2}, k\right].

Domains and ranges of stan­dard func­tions

Alge­braic and related func­tions.

Func­tion Domain Range
log⁡ax\log_a x (0,∞)(0, \infty) R\mathbb{R}
axa^x R\mathbb{R} (0,∞)(0, \infty)
[x][x] R\mathbb{R} Z\mathbb{Z}
{x}=x−[x]\{x\} = x - [x] R\mathbb{R} [0,1)[0, 1)
∣x∣\lvert x \rvert R\mathbb{R} [0,∞)[0, \infty)
x\sqrt{x} [0,∞)[0, \infty) [0,∞)[0, \infty)
x+1x\displaystyle x + \frac1x R−{0}\mathbb{R} - \{0\} (−∞,−2]∪[2,∞)(-\infty, -2] \cup [2, \infty)

Trigono­met­ric func­tions.

Func­tion Domain Range
sin⁡x\sin x R\mathbb{R} [−1,1][-1, 1]
cos⁡x\cos x R\mathbb{R} [−1,1][-1, 1]
tan⁡x\tan x R−{(2n+1)π2:n∈Z}\displaystyle \mathbb{R} - \left\{(2n+1)\frac{\pi}{2} : n \in \mathbb{Z}\right\} R\mathbb{R}
cot⁡x\cot x R−{nπ:n∈Z}\mathbb{R} - \{n\pi : n \in \mathbb{Z}\} R\mathbb{R}
sec⁡x\sec x R−{(2n+1)π2:n∈Z}\displaystyle \mathbb{R} - \left\{(2n+1)\frac{\pi}{2} : n \in \mathbb{Z}\right\} (−∞,−1]∪[1,∞)(-\infty, -1] \cup [1, \infty)
cosec⁡x\operatorname{cosec} x R−{nπ:n∈Z}\mathbb{R} - \{n\pi : n \in \mathbb{Z}\} (−∞,−1]∪[1,∞)(-\infty, -1] \cup [1, \infty)

Inverse trigono­met­ric func­tions.

Func­tion Domain Range
sin⁡−1x\sin^{-1} x [−1,1][-1, 1] [−π2,π2]\displaystyle \left[-\frac{\pi}{2}, \frac{\pi}{2}\right]
cos⁡−1x\cos^{-1} x [−1,1][-1, 1] [0,π][0, \pi]
tan⁡−1x\tan^{-1} x R\mathbb{R} (−π2,π2)\displaystyle \left(-\frac{\pi}{2}, \frac{\pi}{2}\right)
cot⁡−1x\cot^{-1} x R\mathbb{R} (0,π)(0, \pi)
sec⁡−1x\sec^{-1} x (−∞,−1]∪[1,∞)(-\infty, -1] \cup [1, \infty) [0,π]−{π2}\displaystyle [0, \pi] - \left\{\frac{\pi}{2}\right\}
cosec⁡−1x\operatorname{cosec}^{-1} x (−∞,−1]∪[1,∞)(-\infty, -1] \cup [1, \infty) [−π2,π2]−{0}\displaystyle \left[-\frac{\pi}{2}, \frac{\pi}{2}\right] - \{0\}

Hyper­bolic func­tions

sinh⁡x=ex−e−x2,cosh⁡x=ex+e−x2,\displaystyle \sinh x = \frac{e^x - e^{-x}}{2}, \qquad \cosh x = \frac{e^x + e^{-x}}{2},

tanh⁡x=ex−e−xex+e−x,coth⁡x=ex+e−xex−e−x,sech⁡x=2ex+e−x,cosech⁡x=2ex−e−x.\displaystyle \tanh x = \frac{e^x - e^{-x}}{e^x + e^{-x}}, \quad \coth x = \frac{e^x + e^{-x}}{e^x - e^{-x}}, \quad \operatorname{sech} x = \frac{2}{e^x + e^{-x}}, \quad \operatorname{cosech} x = \frac{2}{e^x - e^{-x}}.

Func­tion Domain Range
sinh⁡x\sinh x R\mathbb{R} R\mathbb{R}
cosh⁡x\cosh x R\mathbb{R} [1,∞)[1, \infty)
tanh⁡x\tanh x R\mathbb{R} (−1,1)(-1, 1)
coth⁡x\coth x R−{0}\mathbb{R} - \{0\} (−∞,−1)∪(1,∞)(-\infty, -1) \cup (1, \infty)
sech⁡x\operatorname{sech} x R\mathbb{R} (0,1](0, 1]
cosech⁡x\operatorname{cosech} x R−{0}\mathbb{R} - \{0\} R−{0}\mathbb{R} - \{0\}

Inverse hyper­bolic func­tions

sinh⁡−1x=log⁡e(x+x2+1), x∈R\sinh^{-1} x = \log_e\left(x + \sqrt{x^2 + 1}\right), \ x \in \mathbb{R}

cosh⁡−1x=log⁡e(x+x2−1), x∈[1,∞)\cosh^{-1} x = \log_e\left(x + \sqrt{x^2 - 1}\right), \ x \in [1, \infty)

tanh⁡−1x=12log⁡e(1+x1−x), x∈(−1,1)\displaystyle \tanh^{-1} x = \frac12 \log_e\left(\frac{1 + x}{1 - x}\right), \ x \in (-1, 1)

coth⁡−1x=12log⁡e(x+1x−1), x∈(−∞,−1)∪(1,∞)\displaystyle \coth^{-1} x = \frac12 \log_e\left(\frac{x + 1}{x - 1}\right), \ x \in (-\infty, -1) \cup (1, \infty)

sech⁡−1x=log⁡e(1+1−x2x), x∈(0,1]\displaystyle \operatorname{sech}^{-1} x = \log_e\left(\frac{1 + \sqrt{1 - x^2}}{x}\right), \ x \in (0, 1]

cosech⁡−1x={log⁡e(1+1+x2x),x>0log⁡e(1−1+x2x),x<0\displaystyle \operatorname{cosech}^{-1} x = \begin{cases} \log_e\left(\dfrac{1 + \sqrt{1 + x^2}}{x}\right), & x > 0 \\[3mm] \log_e\left(\dfrac{1 - \sqrt{1 + x^2}}{x}\right), & x < 0 \end{cases}

Func­tion Domain Range
sinh⁡−1x\sinh^{-1} x R\mathbb{R} R\mathbb{R}
cosh⁡−1x\cosh^{-1} x [1,∞)[1, \infty) [0,∞)[0, \infty)
tanh⁡−1x\tanh^{-1} x (−1,1)(-1, 1) R\mathbb{R}
coth⁡−1x\coth^{-1} x (−∞,−1)∪(1,∞)(-\infty, -1) \cup (1, \infty) R−{0}\mathbb{R} - \{0\}
sech⁡−1x\operatorname{sech}^{-1} x (0,1](0, 1] [0,∞)[0, \infty)
cosech⁡−1x\operatorname{cosech}^{-1} x R−{0}\mathbb{R} - \{0\} R−{0}\mathbb{R} - \{0\}

Exam­ple 1

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

We need 4−x2≥04 - x^2 \ge 0, so x∈[−2,2]x \in [-2, 2], and x≠1x \neq 1. The domain is [−2,1)∪(1,2][-2, 1) \cup (1, 2].

Exam­ple 2

Find the range of f(x)=x2+x+1x2+1\displaystyle f(x) = \dfrac{x^2 + x + 1}{x^2 + 1} (Type 6).

Let y=x2+x+1x2+1\displaystyle y = \frac{x^2 + x + 1}{x^2 + 1}. Then (y−1)x2−x+(y−1)=0(y - 1)x^2 - x + (y - 1) = 0. If y≠1y \neq 1, real xx needs

1−4(y−1)2≥0∣y−1∣≤1212≤ y≤32.\displaystyle \begin{aligned} 1 - 4(y - 1)^2 &\ge 0 \\ |y - 1| &\le \tfrac12 \\ \tfrac12 \le\ &y \le \tfrac32. \end{aligned}

The value y=1y = 1 is reached at x=0x = 0. So the range is [12,32]\displaystyle \left[\frac12, \frac32\right].

Prac­tice

  1. Find the domain of f(x)=x2−5x+6f(x) = \sqrt{x^2 - 5x + 6}.
  2. Find the domain of f(x)=19−x2\displaystyle f(x) = \dfrac{1}{\sqrt{9 - x^2}}.
  3. Find the domain of f(x)=sin⁡−1(2x−3)f(x) = \sin^{-1}(2x - 3).
  4. Find the range of f(x)=3cos⁡x+4sin⁡x+2f(x) = 3\cos x + 4\sin x + 2.
  5. Find the range of f(x)=∣x−1∣+∣x−6∣f(x) = |x - 1| + |x - 6|.
  6. Find the range of f(x)=x1+x2\displaystyle f(x) = \dfrac{x}{1 + x^2}, x∈Rx \in \mathbb{R}.
  7. Find the range of f(x)=x2−4x+1f(x) = x^2 - 4x + 1 on [0,3][0, 3].

Answers

Show answers
  1. (x−2)(x−3)≥0(x - 2)(x - 3) \ge 0, so (−∞,2]∪[3,∞)(-\infty, 2] \cup [3, \infty).
  2. 9−x2>09 - x^2 > 0, so (−3,3)(-3, 3).
  3. −1≤2x−3≤1-1 \le 2x - 3 \le 1, so [1,2][1, 2].
  4. 9+16=5\sqrt{9 + 16} = 5, so [−3,7][-3, 7].
  5. [5,∞)[5, \infty).
  6. yx2−x+y=0yx^2 - x + y = 0 needs 1−4y2≥01 - 4y^2 \ge 0, so [−12,12]\displaystyle \left[-\frac12, \frac12\right].
  7. f(x)=(x−2)2−3f(x) = (x - 2)^2 - 3: min­i­mum −3-3 at x=2x = 2; f(0)=1f(0) = 1, f(3)=−2f(3) = -2. Range [−3,1][-3, 1].