Cotangent

The cotangent function (cotθ) is a key member of the trigonometric functions, defined as the ratio of the adjacent side to the opposite side of an acute angle in a right triangle. It is the reciprocal of the tangent function (cotθ = 1/tanθ) and can also be expressed as the ratio of cosine to sine (cotθ = cosθ/sinθ). Its graph exhibits unique periodicity and symmetry, serving as a fundamental tool in solving problems in geometry, physics, and other fields.

1. Cotangent calculator

The cotangent value calculator is a practical tool for quickly obtaining cotangent values of any angle (in degrees or radians), providing convenient support for learning, scientific research, and engineering calculations.​

Calculation Principle: Based on the core relationships of the cotangent function (cotθ = cosθ/sinθ or 1/tanθ), after inputting an angle, the system first calculates the corresponding sine and cosine values (or tangent value), then derives the result through ratio operations (results are undefined when the sine value is 0).

Cotangent Calculator

Calculate cotangent of angles or radians

Degrees (°)
Radians (rad)
°
cot(45 °) = 1

Common cotangent values reference:

cot(0°) = NAN
cot(30°) ≈ 1.7321
cot(45°) = 1
cot(60°) ≈ 0.5774
cot(90°) = 0
cot(180°) = NAN
cot(0) = NAN
cot(π/6) ≈ 1.7321
cot(π/4) = 1
cot(π/3) ≈ 0.5774
cot(π/2) = 0
cot(π) = NAN

2. Cotangent definition

Right Triangle Definition

Before getting stuck into the functions, it helps to give a name to each side of a right triangle:

triangle showing Opposite, Adjacent and Hypotenuse
  • "Opposite" is opposite to the angle θ
  • "Adjacent" is adjacent to (next to) the angle θ
  • "Hypotenuse" is the long one
cot {\displaystyle \theta }=\frac{Adjacent}{Opposite}=(\frac{1}{tan {\displaystyle \theta }})

General Angle Definition

In the Cartesian coordinate system, for any angle θ (whose terminal side does not coincide with the x-axis), if a point P(x, y) lies on its terminal side with a distance r = √(x² + y²) from the origin, then cotθ = x/y (y ≠ 0). This definition breaks through the limitation of acute angles and applies to all angles (including obtuse and negative angles), serving as a general extension of the right triangle definition.

Features

The graph of the cotangent function exhibits unique periodic characteristics with the following core properties:​

  • Periodicity: It has a period of π (180°), meaning cot (θ + π) = cotθ, consistent with the period of the tangent function, reflecting the 规律 that its values repeat every 180° rotation of the angle;​
  • Asymptotes: The cotangent function is undefined when sinθ = 0 (i.e., θ = kπ, where k is an integer), and there are vertical asymptotes at these points (e.g., θ = 0°, 180°, 360°, etc.);​
  • Symmetry: As an odd function, its graph is symmetric about the origin, satisfying cot(-θ) = -cotθ;​
  • Range: All real numbers ((-∞, +∞)). Since the range of the tangent function is all real numbers, the range of its reciprocal, the cotangent function, also covers all real numbers.

3. Table of Cotangent

The table lists cotangent values from 1° to 360° (rounded to four decimal places, with special notation for undefined cases), intuitively presenting the numerical rules of the function. Note the following when using it:​

  • Sign Rules: The sign of the cotangent value is the same as that of the tangent value (since cotθ = 1/tanθ). That is, cotθ is positive when θ is in the first or third quadrant, and negative when θ is in the second or fourth quadrant (e.g., cot(135°) = -1.0000, corresponding to 135° in the second quadrant where the tangent value is negative).​
  • Undefined Cases: Cotangent values are undefined at angles such as 0°, 180°, and 360°, where sinθ = 0, meaning the cotangent function does not exist at these points.​
  • Value Change Trends: From 0° to 90°, the cotangent value decreases from +∞ to 0 (as the opposite side lengthens with increasing angles, while the adjacent side relatively shortens); from 90° to 180°, the cotangent value increases from -∞ to 0 (due to the sign change of the sine value, the ratio approaches 0 from the negative direction), reflecting an inverse relationship with the tangent function.
Cotangent Values Table (1-360 Degrees)
The table presents cotangent values from 1° to 360°, formatted as cot (degree°)=value (rounded to 4 decimal places)

4. Origin of the Cotangent Function​

The development of the cotangent function is closely linked to the evolution of the trigonometric system:​

  • Early Embryonic Stage: Ancient Greek astronomers (such as Hipparchus and Ptolemy) laid the foundation for sine and tangent functions by describing the relationship between angles and circles through the concept of "chord length" in their studies of celestial movements, with the reciprocal property of cotangent to tangent implicitly contained within. Ptolemy's calculations of "chord lengths of supplementary arcs" in Almagest already contained early ideas of cotangent.​
  • Arab Period: Medieval Arab mathematicians (such as al-Battani and Abu al-Wafa) systematically sorted out the proportional relationships of trigonometric functions while translating Greek classics, clarifying the reciprocal relationship between "tangent" and "cotangent," and applying them to astronomical calendar calculations (such as the conversion of solar and lunar orbital angles). They also introduced the dedicated term for "cotangent" for the first time, corresponding to the complementary concept of "tangent."​
  • Standardization Stage: In the 16th–17th centuries, European mathematicians (such as Euler) standardized trigonometric definitions through the unit circle and coordinate system. The term "cotangent" derives from the Latin for "complementary tangent" ("co-" meaning "complementary" and "tangent" referring to the tangent function), named for its corresponding relationship with the tangent function for complementary angles, eventually becoming an internationally recognized symbol.​

5. Applications of the Cotangent Function​

The cotangent function has important application value in multiple fields:​

  • Mathematics: It is a core component of trigonometric identities, such as "1 + cot²θ = csc²θ" (derived from sin²θ + cos²θ = 1), which can simplify complex expressions. In calculus, the integral of the cotangent function (e.g., ∫cotθdθ = ln|sinθ| + C) is a key tool for solving periodic problems, particularly effective in handling integrals involving sine functions.​
  • Physics and Engineering: In mechanics, the cotangent function can describe the proportion of force decomposition in inclined plane force analysis (such as the ratio of the horizontal component to the vertical component of gravity acting on an object on an incline). In vibration theory, it is used to calculate the relationship between the period of a pendulum's motion and the angle, aiding in analyzing the laws of simple harmonic motion.​
  • Navigation and Surveying: In topographic surveying, the cotangent function can calculate the length of the adjacent side using the known length of the opposite side and the angle (e.g., quickly estimating the height of a building using the horizontal distance and the cotangent of the elevation angle). In maritime navigation, it is used to convert relationships between azimuth angles and distances, assisting in determining routes.​
  • Architecture and Manufacturing: In architectural design, the cotangent function can calculate the "adjacent-opposite ratio" for structures such as roof slopes and stair inclinations, ensuring structural stability. In mechanical manufacturing, it is used in the design of gear meshing angles and tool inclinations, ensuring precise coordination of mechanical components.