y=cotxy = \cot x

Graph of the Cotangent Function y=cotxy = \cot x

The cotangent function y=cotxy = \cot x is the trigonometric function defined as cosine divided by sine; it is also the reciprocal of the tangent.

Definition

cotx=cosxsinx=1tanx\cot x = \frac{\cos x}{\sin x} = \frac{1}{\tan x}

Domain and range

Where sinx=0\sin x = 0, at x=nπx = n\pi (with nn an integer), the function is undefined. Its domain is all real numbers except these points, and its range is all real numbers: like the tangent, its values are unbounded above and below.

Symmetry and period

It is an odd function, cot(x)=cotx\cot(-x) = -\cot x, with point symmetry about the origin. Its period is π\pi — shorter than the 2π2\pi of sine and cosine, matching the tangent.

Asymptotes and limits

There is a vertical asymptote at each x=nπx = n\pi. As x0+x \to 0^{+} (from the right), cotx+\cot x \to +\infty; as xπx \to \pi^{-} (from the left), cotx\cot x \to -\infty.

Behavior and zeros

On each interval (nπ, (n+1)π)(n\pi,\ (n+1)\pi) the function is strictly decreasing, falling from ++\infty to -\infty. Its derivative ddxcotx=1sin2x=csc2x\dfrac{d}{dx}\cot x = -\dfrac{1}{\sin^2 x} = -\csc^2 x is always negative, confirming the decrease. Its zeros occur where cosx=0\cos x = 0, at x=π2+nπx = \dfrac{\pi}{2} + n\pi.

Here are some specific values.

  • cotπ6=3\cot\dfrac{\pi}{6} = \sqrt{3}
  • cotπ4=1\cot\dfrac{\pi}{4} = 1
  • cotπ2=0\cot\dfrac{\pi}{2} = 0

Shape of the graph

On a single interval such as 0<x<π0 < x < \pi, the curve starts near ++\infty at the left asymptote, crosses 00 at x=π2x = \dfrac{\pi}{2}, and descends toward -\infty at the right asymptote. This shape repeats under a shift of π\pi, and each zero x=π2+nπx = \dfrac{\pi}{2} + n\pi sits exactly at the center of its interval.

Relation to other functions

It relates to the tangent by cotx=tan(π2x)\cot x = \tan\left(\dfrac{\pi}{2} - x\right).

Applications

The cotangent appears in surveying and triangulation, and in complex analysis and series, such as the partial-fraction expansion of πcotπx\pi \cot \pi x.