Class 12 Maths, Worked in Full Past papersGet updates
Chapter 5 · Continuity and Differentiability

Example 18: tan⁡x\tan x is a continuous function

ExamplesAlgebra of continuous functions · Section 5.2.1
The question

Prove that the function defined by f(x)=tan⁡xf(x) = \tan x is a continuous function.

Exam answer

f(x)=tan⁡x=sin⁡xcos⁡xf(x) = \tan x = \dfrac{\sin x}{\cos x} is defined when cos⁡x≠0\cos x \ne 0⁠, that is, for x≠(2n+1)π2x \ne (2n + 1)\frac{\pi}{2}⁠, n∈Zn \in \Z⁠.

Let cc be in the domain, so cos⁡c≠0\cos c \ne 0⁠. Since sin⁡x\sin x and cos⁡x\cos x are continuous,

lim⁡x→ctan⁡x=lim⁡x→csin⁡xlim⁡x→ccos⁡x=sin⁡ccos⁡c=tan⁡c=f(c)\begin{aligned} \lim_{x\to c}\tan x &= \frac{\lim_{x\to c}\sin x}{\lim_{x\to c}\cos x} \\ &= \frac{\sin c}{\cos c} = \tan c = f(c) \end{aligned}

∴ f\therefore\ f is continuous at every point of its domain, so f(x)=tan⁡xf(x) = \tan x is a continuous function. Hence proved.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

tan⁡x=sin⁡xcos⁡x\tan x = \frac{\sin x}{\cos x} is a quotient of two continuous functions (Example 17 and its Remark). Theorem 1(4) makes a quotient continuous at every point where the denominator is not 0, and "cos⁡x≠0\cos x \ne 0" is exactly the condition for tan⁡x\tan x to be defined. So tan⁡x\tan x is continuous at every point of its domain. The breaks in its graph occur only at the excluded points x=(2n+1)π2x = (2n+1)\frac{\pi}{2}⁠.

Given, to show, and the plan
Given
f(x)=tan⁡x=sin⁡xcos⁡xf(x) = \tan x = \frac{\sin x}{\cos x}⁠; sin⁡x\sin x and cos⁡x\cos x are continuous at every real number (Example 17).
To show
ff is continuous at every point of its domain, so it is a continuous function.
Plan
Find where cos⁡x=0\cos x = 0 to get the domain. At each point cc of the domain apply Theorem 1(4). Conclude with Definition 2, and explain the excluded points.

Basics you need

1Where cos⁡x=0\cos x = 0

cos⁡x=0\cos x = 0 exactly when xx is an odd multiple of π2\frac{\pi}{2}⁠: x=(2n+1)π2x = (2n+1)\frac{\pi}{2}⁠, n∈Zn \in \Z⁠, that is …,−3π2,−π2,\dots, -\frac{3\pi}{2}, -\frac{\pi}{2}, π2,3π2,…\frac{\pi}{2}, \frac{3\pi}{2}, \dots (Class XI). Basics: trigonometric identities

2Sine and cosine are continuous

Proved in Example 17 (sine) and its Remark (cosine): lim⁡x→csin⁡x=sin⁡c\lim_{x\to c}\sin x = \sin c and lim⁡x→ccos⁡x=cos⁡c\lim_{x\to c}\cos x = \cos c for every real cc⁠.

3Theorem 1(4)

If ff and gg are continuous at cc and g(c)≠0g(c) \ne 0⁠, then fg\frac{f}{g} is continuous at cc⁠. The book proves only part (1) and leaves part (4) to the reader; it follows from the quotient rule of limits (Class XI), as Step 3 shows for sin⁡xcos⁡x\frac{\sin x}{\cos x}⁠. Lesson: algebra of continuous functions

4Definition 2

A function is continuous if it is continuous at every point of its domain. Lesson: continuity at a point

Solution

  1. Find the domain

    tan⁡x=sin⁡xcos⁡x\tan x = \frac{\sin x}{\cos x} is defined exactly when cos⁡x≠0\cos x \ne 0⁠. Since cos⁡x=0\cos x = 0 precisely at the odd multiples of π2\frac{\pi}{2}⁠,

    domain={x∈R:x≠(2n+1)π2, n∈Z}.\text{domain} = \Big\{x \in \R : x \ne (2n+1)\tfrac{\pi}{2},\ n \in \Z\Big\}.
    Division by 0 is undefined, so every zero of the denominator must be removed. Knowing the domain tells us exactly which points need to be checked, as Definition 2 requires.
    On the unit circle, cos⁡x\cos x is the horizontal coordinate, which is 0 only at the top (0,1)(0, 1) and bottom (0,−1)(0, -1)⁠, that is at angles π2+nπ=(2n+1)π2\frac{\pi}{2} + n\pi = (2n+1)\frac{\pi}{2}⁠. Basics: trigonometric identities
  2. Fix a point cc of the domain

    Let cc be any real number with c≠(2n+1)π2c \ne (2n+1)\frac{\pi}{2}⁠, so cos⁡c≠0\cos c \ne 0⁠. By Example 17 and its Remark,

    lim⁡x→csin⁡x=sin⁡c,lim⁡x→ccos⁡x=cos⁡c.\lim_{x\to c}\sin x = \sin c, \qquad \lim_{x\to c}\cos x = \cos c.
    These two continuity facts hold at every real number, so in particular at our cc⁠. They are the two ingredients needed by Theorem 1(4).
    Example 17: sine and cosine are continuous.
  3. Apply Theorem 1(4)

    sin⁡\sin and cos⁡\cos are continuous at cc and cos⁡c≠0\cos c \ne 0⁠, so sin⁡cos⁡=tan⁡\frac{\sin}{\cos} = \tan is continuous at cc⁠:

    lim⁡x→ctan⁡x=lim⁡x→csin⁡xlim⁡x→ccos⁡x=sin⁡ccos⁡c=tan⁡c.\begin{aligned} \lim_{x\to c}\tan x &= \frac{\lim_{x\to c}\sin x}{\lim_{x\to c}\cos x} \\ &= \frac{\sin c}{\cos c} = \tan c. \end{aligned}
    The quotient of the limits makes sense because the limit of the denominator, cos⁡c\cos c⁠, is not 0. That is exactly the proviso "g(c)≠0g(c) \ne 0" of Theorem 1(4), and it holds because cc is in the domain.
  4. Conclude with Definition 2

    cc was an arbitrary point of the domain, so tan⁡x\tan x is continuous at every point of its domain. By Definition 2, f(x)=tan⁡xf(x) = \tan x is a continuous function.

    This is the book's sentence "tan⁡x\tan x being a quotient of two continuous functions is continuous wherever it is defined", with each part justified.
  5. The excluded points

    At x=(2n+1)π2x = (2n+1)\frac{\pi}{2} the value tan⁡x\tan x does not exist, so these points are not in the domain and, in this book's sense, are not points of discontinuity. The graph does break there: just left of π2\frac{\pi}{2}⁠, tan⁡x\tan x is large and positive, and just right of it, large and negative (neither one-sided limit is a real number). But since π2\frac{\pi}{2} is not in the domain, this does not stop tan⁡x\tan x being a continuous function.

    x y O −3π/2 −π/2 π/2 3π/2 −4 −2 2 4
    The graph of y=tan⁡xy = \tan x for −5.2≤x≤5.2-5.2 \le x \le 5.2 (horizontal unit 48 px, vertical unit 40 px). Each blue branch is unbroken. The dashed rose lines at x=±π2x = \pm\frac{\pi}{2}⁠, ±3π2\pm\frac{3\pi}{2} mark points outside the domain, where the graph breaks.
    Compare Example 12 and 1x\frac{1}{x} in Example 9: a graph in several pieces is fine for a continuous function, as long as the breaks happen only at points where the function is not defined.
Result

tan⁡x\tan x is defined for x≠(2n+1)π2x \ne (2n+1)\frac{\pi}{2}⁠, n∈Zn \in \Z⁠, and at every such cc⁠, lim⁡x→ctan⁡x=tan⁡c\lim_{x\to c}\tan x = \tan c⁠. Hence f(x)=tan⁡xf(x) = \tan x is a continuous function. This agrees with the textbook's solution.

Check it with numbers

At c=π4≈0.785398c = \frac{\pi}{4} \approx 0.785398⁠: tan⁡c=1\tan c = 1⁠. With inputs c±0.001c \pm 0.001⁠:

tan⁡(0.784398)≈0.998002,\tan(0.784398) \approx 0.998002, tan⁡(0.786398)≈1.002002,\tan(0.786398) \approx 1.002002,

both within 0.00210.0021 of 1. Near the excluded point π2≈1.570796\frac{\pi}{2} \approx 1.570796⁠: tan⁡1.57≈1255.77\tan 1.57 \approx 1255.77 but tan⁡1.5716≈−1244.29\tan 1.5716 \approx -1244.29⁠, showing the break where tan⁡\tan is undefined.

Common mistakes
  1. Calling π2\frac{\pi}{2} a point of discontinuity. It is not in the domain of tan⁡x\tan x⁠, so it is not a point of discontinuity in this book's sense.
  2. Leaving out the condition cos⁡c≠0\cos c \ne 0⁠. Theorem 1(4) needs a non-zero denominator at cc⁠; that condition is what limits the result to the domain.
  3. Writing the excluded points as nπn\pi⁠. Those are the zeros of sin⁡x\sin x⁠, where tan⁡x=0\tan x = 0⁠. The zeros of cos⁡x\cos x are the odd multiples of π2\frac{\pi}{2}⁠.
What to take away
  1. Quotients of continuous functions are continuous wherever the denominator is non-zero: here tan⁡=sin⁡cos⁡\tan = \frac{\sin}{\cos}⁠.
  2. The same reasoning shows cot⁡x=cos⁡xsin⁡x\cot x = \frac{\cos x}{\sin x}⁠, sec⁡x=1cos⁡x\sec x = \frac{1}{\cos x} and csc⁡x=1sin⁡x\csc x = \frac{1}{\sin x} are continuous functions (by Theorem 1(4) and Remark (ii)).
  3. Continuous functions can have graphs in several separate pieces, provided the gaps are outside the domain.

Every fact used, and where it comes from

FactUsed inSource
tan⁡x=sin⁡xcos⁡x\tan x = \frac{\sin x}{\cos x}Steps 1, 3Class XI, Trigonometric Functions
cos⁡x=0  ⟺  x=(2n+1)π2\cos x = 0 \iff x = (2n+1)\frac{\pi}{2}Steps 1, 5Class XI, Trigonometric Functions (Basics: trigonometric identities)
Sine and cosine are continuousStep 2Example 17 and its Remark, Section 5.2.1
fg\frac{f}{g} is continuous at cc if ff⁠, gg are and g(c)≠0g(c) \ne 0Step 3Theorem 1(4), Section 5.2.1 (Lesson: algebra of continuous functions)
Continuous function; points outside the domain are not testedSteps 4, 5Definitions 1 and 2, Section 5.2 (Lesson: continuity at a point)
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →