y=tan⁡xy = \tan x

Graph of the Tangent Function y=tan⁡xy = \tan x

The tangent function y=tan⁡xy = \tan x is the sine divided by the cosine1. On the unit circle it is the slope of the line through the origin at angle xx, and in a right triangle it is the ratio of the opposite side to the adjacent side.

Definition

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

The denominator is cos⁡x\cos x, so the function is undefined wherever the cosine vanishes.

Domain and range

  • The domain is every real number with x≠π2+nπx \neq \dfrac{\pi}{2} + n\pi
  • The range is all real numbers
  • The period is π\pi
  • It is an odd function

Unlike the sine and cosine, the tangent has no upper or lower bound.

Periodicity

The period is π\pi, half that of the sine and cosine, since tan⁡(x+π)=tan⁡x\tan(x + \pi) = \tan x. The same branch repeats every π\pi.

Symmetry

Since tan⁡(−x)=−tan⁡x\tan(-x) = -\tan x, it is an odd function with point symmetry about the origin.

Asymptotes and limits

There is a vertical asymptote at each x=π2+nπx = \dfrac{\pi}{2} + n\pi. Which way the value flies off depends on the sign the denominator approaches from.

Approachcos⁡x\cos xtan⁡x\tan x
x→(π2)−x \to \left( \dfrac{\pi}{2} \right)^{-}0+0^{+}+∞+\infty
x→(π2)+x \to \left( \dfrac{\pi}{2} \right)^{+}0−0^{-}−∞-\infty

The graph is thus a family of branches, each penned in between two asymptotes.

Monotonicity

The derivative is y′=1cos⁡2x=sec⁡2xy' = \dfrac{1}{\cos^2 x} = \sec^2 x, positive wherever the function is defined, so the tangent increases monotonically within each branch.

It is not increasing on the real line as a whole: crossing an asymptote, the value drops from +∞+\infty back to −∞-\infty. The increase holds only inside a single branch.

Notable values

xxtan⁡x\tan x
0000
π6\dfrac{\pi}{6}13\dfrac{1}{\sqrt{3}}
π4\dfrac{\pi}{4}11
π3\dfrac{\pi}{3}3\sqrt{3}

The zeros are the solutions of sin⁡x=0\sin x = 0, namely x=nπx = n\pi. At π4\dfrac{\pi}{4}, that is 45∘45^\circ, the value is exactly 11, which corresponds to a line of slope 11.

Approximation near the origin

The tangent line at the origin is y=xy = x, of slope 11.

lim⁡x→0tan⁡xx=1\lim_{x \to 0} \frac{\tan x}{x} = 1

So tan⁡x≈x\tan x \approx x for small angles. Writing one more term of the expansion gives tan⁡x=x+x33+⋯\tan x = x + \dfrac{x^3}{3} + \cdots, so near the origin sin⁡x\sin x falls below xx while tan⁡x\tan x rises above it.

Relationships with other functions

It satisfies 1+tan⁡2x=1cos⁡2x1 + \tan^2 x = \dfrac{1}{\cos^2 x}, and its reciprocal is the cotangent cot⁡x\cot x. Because its range is the whole real line, restricting it to −π2<x<π2-\dfrac{\pi}{2} < x < \dfrac{\pi}{2} makes it one-to-one, and the inverse of that restriction is arctan⁡x\arctan x.

Applications

The angle θ\theta that the line y=mxy = mx makes with the xx-axis satisfies m=tan⁡θm = \tan\theta, so the tangent is the bridge between slope and angle.

  • The gradient of a road or a roof
  • Surveying, where a height is a distance times tan⁡θ\tan\theta
  • The relation between the field of view of a camera and its focal length
  1. Trigonometric functions, Wikipedia