The cotangent function y=cotx is the trigonometric function defined as the cosine divided by the sine1. It is also the reciprocal of the tangent.
Definition
cotx=sinxcosx=tanx1
Domain and range
The domain is every real number with x=nπ
The range is all real numbers
The period is π
It is an odd function
As with the tangent, the values have no upper or lower bound.
Symmetry and period
Since cot(−x)=−cotx it is an odd function with point symmetry about the origin. The period is π, matching the tangent and shorter than the 2π of the sine and cosine.
Asymptotes and limits
There is a vertical asymptote at each x=nπ.
Approach
cotx
x→0+
+∞
x→π−
−∞
Monotonicity and zeros
The derivative is as follows.
dxdcotx=−sin2x1=−csc2x
It is always negative, so the function decreases monotonically on each interval nπ<x<(n+1)π. The zeros are the solutions of cosx=0, namely x=2π+nπ.
Notable values
x
cotx
6π
3
4π
1
3π
31
2π
0
Shape of the graph
Take a single interval such as 0<x<π. The curve starts near +∞ at the left asymptote, crosses 0 at x=2π, and descends toward −∞ at the right asymptote. That shape repeats under a shift of π, and each zero sits exactly at the center of its interval.
Comparison with the tangent
Item
tanx
cotx
Asymptotes
2π+nπ
nπ
Zeros
nπ
2π+nπ
Behavior on one branch
increasing
decreasing
Derivative
sec2x
−csc2x
The two are tied by cotx=tan(2π−x), so the cotangent can also be read as the tangent reflected left to right and shifted by 2π.
Applications
The relation between angles and lengths in surveying and triangulation
The partial-fraction expansion πcotπx in complex analysis