The tangent function y=tanx is the sine divided by the cosine1. On the unit circle it is the slope of the line through the origin at angle x, and in a right triangle it is the ratio of the opposite side to the adjacent side.
Definition
tanx=cosxsinx
The denominator is cosx, so the function is undefined wherever the cosine vanishes.
Domain and range
The domain is every real number with x=2π+nπ
The range is all real numbers
The period is π
It is an odd function
Unlike the sine and cosine, the tangent has no upper or lower bound.
Periodicity
The period is π, half that of the sine and cosine, since tan(x+π)=tanx. The same branch repeats every π.
Symmetry
Since tan(−x)=−tanx, it is an odd function with point symmetry about the origin.
Asymptotes and limits
There is a vertical asymptote at each x=2π+nπ. Which way the value flies off depends on the sign the denominator approaches from.
Approach
cosx
tanx
x→(2π)−
0+
+∞
x→(2π)+
0−
−∞
The graph is thus a family of branches, each penned in between two asymptotes.
Monotonicity
The derivative is y′=cos2x1=sec2x, 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 +∞ back to −∞. The increase holds only inside a single branch.
Notable values
x
tanx
0
0
6π
31
4π
1
3π
3
The zeros are the solutions of sinx=0, namely x=nπ. At 4π, that is 45∘, the value is exactly 1, which corresponds to a line of slope 1.
Approximation near the origin
The tangent line at the origin is y=x, of slope 1.
x→0limxtanx=1
So tanx≈x for small angles. Writing one more term of the expansion gives tanx=x+3x3+⋯, so near the origin sinx falls below x while tanx rises above it.
Relationships with other functions
It satisfies 1+tan2x=cos2x1, and its reciprocal is the cotangent cotx. Because its range is the whole real line, restricting it to −2π<x<2π makes it one-to-one, and the inverse of that restriction is arctanx.
Applications
The angle θ that the line y=mx makes with the x-axis satisfies m=tanθ, 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θ
The relation between the field of view of a camera and its focal length