Skip to content
Family Table Math

The Tangent Function

Sine and cosine give smooth waves. The tangent ratio gives a very different graph: it repeats, but it shoots off to infinity, with vertical asymptotes. Seeing why comes straight from the unit circle and the fact that tan⁡x=sin⁡xcos⁡x\tan x = \dfrac{\sin x}{\cos x}. All angles on this page are in radians.

For an angle xx in standard position, the terminal arm meets the unit circle at the point (cos⁡x,sin⁡x)(\cos x, \sin x). The tangent ratio is the yy-coordinate of that point divided by its xx-coordinate:

tan⁡x=sin⁡xcos⁡x\tan x = \frac{\sin x}{\cos x}

Treating each angle as an input and its tangent as the output gives the tangent function, f(x)=tan⁡xf(x) = \tan x. The tangent is also the slope of the terminal arm (rise over run), which is a handy way to picture it.

Here are its values for −π2≤x≤π2-\tfrac{\pi}{2} \le x \le \tfrac{\pi}{2}, from the special angles:

xx−π2-\tfrac{\pi}{2}−π3-\tfrac{\pi}{3}−π4-\tfrac{\pi}{4}−π6-\tfrac{\pi}{6}00π6\tfrac{\pi}{6}π4\tfrac{\pi}{4}π3\tfrac{\pi}{3}π2\tfrac{\pi}{2}
tan⁡x\tan xundefined−3≈−1.73-\sqrt{3} \approx -1.73−1-1−33≈−0.58-\tfrac{\sqrt{3}}{3} \approx -0.580033≈0.58\tfrac{\sqrt{3}}{3} \approx 0.58113≈1.73\sqrt{3} \approx 1.73undefined

tan⁡x=sin⁡xcos⁡x\tan x = \dfrac{\sin x}{\cos x} is undefined wherever cos⁡x=0\cos x = 0: at x=π2x = \tfrac{\pi}{2}, 3π2\tfrac{3\pi}{2}, −π2-\tfrac{\pi}{2}, and so on. Near those angles, the denominator is tiny, so the fraction is huge.

  • As xx gets close to π2\tfrac{\pi}{2} from the left, sin⁡x\sin x is close to 11 and cos⁡x\cos x is a tiny positive number, so tan⁡x\tan x becomes a very large positive number.
  • Just to the right of π2\tfrac{\pi}{2}, cos⁡x\cos x is a tiny negative number, so tan⁡x\tan x is a very large negative number.

That’s a vertical asymptote, the same behaviour you see in reciprocal functions. In slope terms: as the terminal arm turns toward vertical, its slope grows without limit, and a vertical line has no slope at all.

Graph of y = tan x from just past -3 pi/2 to just past 3 pi/2 radians. Dashed vertical asymptotes at x = -3 pi/2, -pi/2, pi/2 and 3 pi/2. Zeros at -pi, 0 and pi; points (pi/4, 1) and (-pi/4, -1). Each branch rises from left to right. −4 −3 −2 −1 1 2 3 4 −π π (π/4, 1) x = −3π/2 x = −π/2 x = π/2 x = 3π/2
y=tan⁡xy = \tan x: the same branch repeats every π\pi, between asymptotes at x=π2+nπx = \tfrac{\pi}{2} + n\pi.
Propertyy=tan⁡xy = \tan x
Periodπ\pi
Domain{x∈R∣x≠π2+nπ, n∈Z}\left\{x \in \mathbb{R} \mid x \ne \tfrac{\pi}{2} + n\pi,\ n \in \mathbb{Z}\right\}
Range{y∈R}\{y \in \mathbb{R}\}
Vertical asymptotesx=π2+nπx = \tfrac{\pi}{2} + n\pi, n∈Zn \in \mathbb{Z}
Zerosx=nπx = n\pi, n∈Zn \in \mathbb{Z}
yy-intercept00
Amplitudenone (no maximum or minimum)
Behaviourincreasing on every interval between asymptotes

(Z\mathbb{Z} is the set of integers, so nn can be …,−2,−1,0,1,2,…\ldots, -2, -1, 0, 1, 2, \ldots)

  • Period π\pi, not 2π2\pi. Turning the terminal arm half a turn (π\pi) takes the point (cos⁡x,sin⁡x)(\cos x, \sin x) to the opposite point (−cos⁡x,−sin⁡x)(-\cos x, -\sin x). Both coordinates change sign, so their ratio doesn’t change: tan⁡(x+π)=tan⁡x\tan(x + \pi) = \tan x.
  • Zeros. tan⁡x=0\tan x = 0 exactly where sin⁡x=0\sin x = 0.
  • No amplitude. The range is all real numbers, so there’s no maximum or minimum, and amplitude doesn’t apply.
  • Symmetry. tan⁡(−x)=−tan⁡x\tan(-x) = -\tan x: the graph is symmetric about the origin.

Use a calculator (radian mode) to evaluate tan⁡x\tan x for x=1.5x = 1.5, 1.551.55, 1.571.57, 1.581.58, and 1.61.6, to 33 decimal places. What do the values show?

Solution.

xx1.51.51.551.551.571.571.581.581.61.6
tan⁡x\tan x14.10114.10148.07848.0781255.7661255.766−108.649-108.649−34.233-34.233

Since π2≈1.5708\tfrac{\pi}{2} \approx 1.5708, the first three inputs are just to the left of π2\tfrac{\pi}{2}, and the tangent grows very quickly through large positive values. The last two are just to the right, and the tangent is large and negative. The graph jumps from the top of the screen to the bottom across the vertical asymptote x=π2x = \tfrac{\pi}{2}.

For −2π≤x≤2π-2\pi \le x \le 2\pi, list the zeros and the equations of the vertical asymptotes of y=tan⁡xy = \tan x.

Solution. Zeros are at multiples of π\pi:

x=−2π, −π, 0, π, 2πx = -2\pi,\ -\pi,\ 0,\ \pi,\ 2\pi

Asymptotes are halfway between the zeros, at odd multiples of π2\tfrac{\pi}{2}:

x=−3π2,x=−π2,x=π2,x=3π2x = -\frac{3\pi}{2},\quad x = -\frac{\pi}{2},\quad x = \frac{\pi}{2},\quad x = \frac{3\pi}{2}

That’s three full branches between the asymptotes, plus half a branch at each end of the interval.

Given tan⁡π3=3\tan\dfrac{\pi}{3} = \sqrt{3}, find tan⁡4π3\tan\dfrac{4\pi}{3}, tan⁡(−2π3)\tan\left(-\dfrac{2\pi}{3}\right), and tan⁡7π3\tan\dfrac{7\pi}{3} without a calculator. Then explain why tan⁡2π3\tan\dfrac{2\pi}{3} is different.

Solution. The period is π\pi, so adding or subtracting any multiple of π\pi doesn’t change the tangent:

tan⁡4π3=tan⁡(π3+π)=3tan⁡(−2π3)=tan⁡(π3−π)=3tan⁡7π3=tan⁡(π3+2π)=3\begin{aligned} \tan\frac{4\pi}{3} &= \tan\left(\frac{\pi}{3} + \pi\right) = \sqrt{3} \\ \tan\left(-\frac{2\pi}{3}\right) &= \tan\left(\frac{\pi}{3} - \pi\right) = \sqrt{3} \\ \tan\frac{7\pi}{3} &= \tan\left(\frac{\pi}{3} + 2\pi\right) = \sqrt{3} \end{aligned}

But 2π3\tfrac{2\pi}{3} is not a multiple of π\pi away from π3\tfrac{\pi}{3} (the difference is π3\tfrac{\pi}{3}). It’s in quadrant II, where tangent is negative: tan⁡2π3=−3\tan\tfrac{2\pi}{3} = -\sqrt{3}.

For 0≤x≤2π0 \le x \le 2\pi:

  • (a) Where is tan⁡x=−1\tan x = -1?
  • (b) Where is tan⁡x\tan x undefined?
  • (c) On which intervals is tan⁡x>0\tan x \gt 0?

Solution.

(a) The related angle is π4\tfrac{\pi}{4}, and tangent is negative in quadrants II and IV: x=3π4x = \tfrac{3\pi}{4} and x=7π4x = \tfrac{7\pi}{4}. These are one period apart, as they should be.

(b) Where cos⁡x=0\cos x = 0: x=π2x = \tfrac{\pi}{2} and x=3π2x = \tfrac{3\pi}{2}.

(c) The graph is above the xx-axis just after each zero, up to the next asymptote: 0<x<π20 \lt x \lt \tfrac{\pi}{2} and π<x<3π2\pi \lt x \lt \tfrac{3\pi}{2}. These are quadrants I and III, matching CAST. ✓

Saying the period is 2π. Sine and cosine repeat every 2π2\pi, but tangent repeats every π\pi. Look at the graph: a whole branch fits between two asymptotes π\pi apart.

Drawing the graph through the asymptote. The branches never touch or cross the dashed lines. Near an asymptote, the graph gets steeper and steeper on each side, heading in opposite directions.

Putting asymptotes at the zeros of sin x. tan⁡x=sin⁡xcos⁡x\tan x = \tfrac{\sin x}{\cos x} is undefined where the denominator, cos⁡x\cos x, is 00. Where sin⁡x=0\sin x = 0, the tangent is 00.

Giving tan x an amplitude. The range is all real numbers. There’s no maximum or minimum, so there’s no amplitude.

Leaving the asymptotes out of the domain statement. The domain isn’t all real numbers. Write {x∈R∣x≠π2+nπ, n∈Z}\left\{x \in \mathbb{R} \mid x \ne \tfrac{\pi}{2} + n\pi,\ n \in \mathbb{Z}\right\}.

1. (Warm-up) State the period, domain, and range of y=tan⁡xy = \tan x.

Solution

Period π\pi. Domain {x∈R∣x≠π2+nπ, n∈Z}\left\{x \in \mathbb{R} \mid x \ne \tfrac{\pi}{2} + n\pi,\ n \in \mathbb{Z}\right\}. Range {y∈R}\{y \in \mathbb{R}\}.

2. (Warm-up) Find the exact value: (a) tan⁡π4\tan\dfrac{\pi}{4} (b) tan⁡5π4\tan\dfrac{5\pi}{4} (c) tan⁡(−π4)\tan\left(-\dfrac{\pi}{4}\right)

Solution

(a) 11

(b) 5π4=π4+π\tfrac{5\pi}{4} = \tfrac{\pi}{4} + \pi, and the period is π\pi, so tan⁡5π4=1\tan\tfrac{5\pi}{4} = 1.

(c) Tangent is symmetric about the origin: tan⁡(−π4)=−tan⁡π4=−1\tan\left(-\tfrac{\pi}{4}\right) = -\tan\tfrac{\pi}{4} = -1.

3. (Warm-up) Write the equations of the vertical asymptotes of y=tan⁡xy = \tan x for 0≤x≤2π0 \le x \le 2\pi.

Solution

x=π2x = \dfrac{\pi}{2} and x=3π2x = \dfrac{3\pi}{2}.

4. (Core) Evaluate tan⁡1\tan 1, tan⁡1.4\tan 1.4, tan⁡1.5\tan 1.5, and tan⁡1.7\tan 1.7 to 33 decimal places. Explain the change in sign between the last two.

Solution

tan⁡1≈1.557\tan 1 \approx 1.557, tan⁡1.4≈5.798\tan 1.4 \approx 5.798, tan⁡1.5≈14.101\tan 1.5 \approx 14.101, tan⁡1.7≈−7.697\tan 1.7 \approx -7.697.

The values grow quickly as xx approaches π2≈1.571\tfrac{\pi}{2} \approx 1.571. Between 1.51.5 and 1.71.7 the input passes the vertical asymptote at x=π2x = \tfrac{\pi}{2}, where cos⁡x\cos x changes from positive to negative while sin⁡x\sin x stays positive, so the tangent changes from large positive to negative.

5. (Core) Explain why it makes sense to talk about the amplitude of y=sin⁡xy = \sin x but not of y=tan⁡xy = \tan x.

Solution

Amplitude is half the distance between the maximum and minimum values. y=sin⁡xy = \sin x has a maximum of 11 and a minimum of −1-1, so its amplitude is 11. y=tan⁡xy = \tan x takes every real value (its range is {y∈R}\{y \in \mathbb{R}\}) and has no maximum or minimum, so amplitude isn’t defined for it.

6. (Core) Find all xx with −π≤x≤π-\pi \le x \le \pi such that tan⁡x=3\tan x = \sqrt{3}.

Solution

tan⁡π3=3\tan\tfrac{\pi}{3} = \sqrt{3}, so x=π3x = \tfrac{\pi}{3} is one answer. The period is π\pi, so the others are π3+nπ\tfrac{\pi}{3} + n\pi. In the interval, π3−π=−2π3\tfrac{\pi}{3} - \pi = -\tfrac{2\pi}{3} also works (π3+π=4π3\tfrac{\pi}{3} + \pi = \tfrac{4\pi}{3} is too big).

x=−2π3orx=π3x = -\frac{2\pi}{3} \qquad\text{or}\qquad x = \frac{\pi}{3}

7. (Core) Using tan⁡x=sin⁡xcos⁡x\tan x = \dfrac{\sin x}{\cos x}, explain (a) why tan⁡x=0\tan x = 0 at exactly the same xx-values where sin⁡x=0\sin x = 0, and (b) why tan⁡x\tan x is positive in quadrants I and III.

Solution

(a) A fraction is 00 exactly when its numerator is 00 (and the denominator isn’t). Where sin⁡x=0\sin x = 0 (x=nπx = n\pi), cos⁡x=±1\cos x = \pm 1, so tan⁡x=0\tan x = 0.

(b) In quadrant I, sin⁡x\sin x and cos⁡x\cos x are both positive; in quadrant III, both are negative. Either way, the quotient is positive. In quadrants II and IV they have opposite signs, so the tangent is negative.

8. (Challenge) Find the period of y=tan⁡(2x)y = \tan(2x), and give its zeros and vertical asymptotes for 0≤x≤π0 \le x \le \pi.

Solution

A horizontal compression by a factor of 12\tfrac{1}{2} halves the period: π2\tfrac{\pi}{2}.

Zeros: tan⁡(2x)=0\tan(2x) = 0 when 2x=nπ2x = n\pi, so x=nπ2x = \tfrac{n\pi}{2}: x=0,π2,πx = 0, \tfrac{\pi}{2}, \pi.

Asymptotes: tan⁡(2x)\tan(2x) is undefined when 2x=π2+nπ2x = \tfrac{\pi}{2} + n\pi, so x=π4+nπ2x = \tfrac{\pi}{4} + \tfrac{n\pi}{2}: x=π4x = \tfrac{\pi}{4} and x=3π4x = \tfrac{3\pi}{4}.

9. (Challenge) A line through the origin makes an angle of 1.21.2 rad with the positive xx-axis.

  • (a) Find its slope to 33 decimal places.
  • (b) What happens to the slope as the angle increases toward π2\tfrac{\pi}{2}? How does this connect to the graph of y=tan⁡xy = \tan x?
Solution

(a) The slope is tan⁡1.2≈2.572\tan 1.2 \approx 2.572.

(b) The line gets steeper, and its slope increases without limit. At exactly π2\tfrac{\pi}{2} the line is vertical and its slope is undefined. On the graph of y=tan⁡xy = \tan x, that’s the branch rising toward the vertical asymptote at x=π2x = \tfrac{\pi}{2}.