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 the cosine divided by the sine1. 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

  • The domain is every real number with xnπx \neq n\pi
  • The range is all real numbers
  • The period is π\pi
  • It is an odd function

As with the tangent, the values have no upper or lower bound.

Symmetry and period

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

Asymptotes and limits

There is a vertical asymptote at each x=nπx = n\pi.

Approachcotx\cot x
x0+x \to 0^{+}++\infty
xπx \to \pi^{-}-\infty

Monotonicity and zeros

The derivative is as follows.

ddxcotx=1sin2x=csc2x\frac{d}{dx}\cot x = -\frac{1}{\sin^2 x} = -\csc^2 x

It is always negative, so the function decreases monotonically on each interval nπ<x<(n+1)πn\pi < x < (n+1)\pi. The zeros are the solutions of cosx=0\cos x = 0, namely x=π2+nπx = \dfrac{\pi}{2} + n\pi.

Notable values

xxcotx\cot x
π6\dfrac{\pi}{6}3\sqrt{3}
π4\dfrac{\pi}{4}11
π3\dfrac{\pi}{3}13\dfrac{1}{\sqrt{3}}
π2\dfrac{\pi}{2}00

Shape of the graph

Take 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. That shape repeats under a shift of π\pi, and each zero sits exactly at the center of its interval.

Comparison with the tangent

Itemtanx\tan xcotx\cot x
Asymptotesπ2+nπ\dfrac{\pi}{2} + n\pinπn\pi
Zerosnπn\piπ2+nπ\dfrac{\pi}{2} + n\pi
Behavior on one branchincreasingdecreasing
Derivativesec2x\sec^2 xcsc2x-\csc^2 x

The two are tied by cotx=tan(π2x)\cot x = \tan\left( \dfrac{\pi}{2} - x \right), so the cotangent can also be read as the tangent reflected left to right and shifted by π2\dfrac{\pi}{2}.

Applications

  • The relation between angles and lengths in surveying and triangulation
  • The partial-fraction expansion πcotπx\pi\cot\pi x in complex analysis
  • The antiderivative of csc2x\csc^2 x in integral calculus
  1. Trigonometric functions, Wikipedia