Graph of y = cot x (Cotangent function)

· How we calculate · Free, no sign-up

Quick answer

The graph of y = cot x is a series of falling branches separated by vertical asymptotes at every multiple of π. Domain: x ≠ kπ; range: All real numbers (−∞, ∞). x-intercept: x = π/2 + kπ; y-intercept: None (undefined at x = 0). It is odd (symmetric about the origin).

Functiony = cot x
Domainx ≠ kπ
RangeAll real numbers (−∞, ∞)
x-intercept(s)x = π/2 + kπ
y-interceptNone (undefined at x = 0)
Derivative−csc² x
Graph of y = cot x for −2π ≤ x ≤ 2π−2π−3π/2−π−π/20π/2π3π/22π−5−4−3−2−1012345
Graph of y = cot x for −2π ≤ x ≤ 2π, −5 ≤ y ≤ 5. Dashed lines are asymptotes. Dots mark intercepts.
Zoom, pan and trace y = cot x next to y = tan x in the interactive grapher.Open the Graphing Calculator →

What the graph of y = cot x looks like

cot x = cos x / sin x = 1/tan x. It has vertical asymptotes where sin x = 0 (every multiple of π) and crosses the x-axis where cos x = 0 (π/2 + kπ). Each branch falls from +∞ just right of an asymptote to −∞ just left of the next one, so the graph looks like tan x reflected and shifted.

In fact cot x = −tan(x − π/2). Like tangent, cotangent repeats every π and is odd. Its derivative −csc² x is always ≤ −1, so every branch is strictly decreasing.

Key features of y = cot x

Key features of y = cot x
PropertyValue
Functiony = cot x (Cotangent function)
FamilyTrigonometric
Domainx ≠ kπ
RangeAll real numbers (−∞, ∞)
x-intercept(s)x = π/2 + kπ
y-interceptNone (undefined at x = 0)
SymmetryOdd — symmetric about the origin
AsymptotesVertical x = kπ
Periodπ ≈ 3.1416
Increasing onNever
Decreasing on(kπ, π + kπ) for every integer k
Key pointsInflection points at (π/2 + kπ, 0); cot(π/4) = 1
Derivative f′(x)−csc² x
Antiderivative ∫ f(x) dxln|sin x| + C

Symmetry: Odd — symmetric about the origin. For example f(2) = −0.4577 while f(−2) = 0.4577, its negative, so the graph looks the same after a half-turn about the origin. Intercepts: the graph meets the x-axis at x = π/2 + kπ and the y-axis at None (undefined at x = 0).

Table of values for y = cot x

Values of y = cot x
xy = cot xSlope f′(x)
−πundefinedundefined
−π/20−1
−π/4−1−2
0undefinedundefined
π/61.7321−4
π/41−2
π/30.5774−1.3333
π/20−1
2π/3−0.5774−1.3333
3π/4−1−2
πundefinedundefined
3π/20−1
2πundefinedundefined

How to sketch y = cot x by hand

Plot the points from the table — (−π/2, 0), (−π/4, −1), (π/6, 1.7321), (π/4, 1), (π/3, 0.5774), (π/2, 0) — on axes running from about −2π to 2π horizontally. Draw the asymptotes first (vertical x = kπ) as dashed lines; the curve gets ever closer to them without crossing in that direction. Then join the points with a smooth curve. As a check on the shape — increasing: Never; decreasing: (kπ, π + kπ) for every integer k.

Derivative, tangent line and area

The derivative of y = cot x is −csc² x, which gives the slope of the curve at each point (the third column of the table). At x = 1 the curve is at height 0.6421 and its slope is f′(1) = −1.4123, so the tangent line there is y = −1.4123x + 2.0544.

The signed area under the curve from x = π/6 to x = π/2 is 0.6931, found using the antiderivative ln|sin x| + C.

Related graphs and transformations

Browse all graphs of common functions by family, or open the graphing calculator.

Frequently asked questions

What is the domain and range of y = cot x?

Domain: x ≠ kπ. Range: All real numbers (−∞, ∞).

What are the intercepts of y = cot x?

x-intercept(s): x = π/2 + kπ. y-intercept: None (undefined at x = 0).

What is the derivative of y = cot x?

f′(x) = −csc² x. At x = 1 the curve is at height 0.6421 and its slope is f′(1) = −1.4123, so the tangent line there is y = −1.4123x + 2.0544.

Is y = cot x even, odd or neither?

Odd — symmetric about the origin. For example f(2) = −0.4577 while f(−2) = 0.4577, its negative, so the graph looks the same after a half-turn about the origin.

Does y = cot x have asymptotes?

Vertical x = kπ. The function is periodic with period π ≈ 3.1416.