Integral of Cot x: Formula, Proof, and Definite Examples
Derive the cotangent integral with substitution. Use six examples to check signs, handle an inner angle, and spot improper limits.
TL;DR
The integral of cotangent is . Rewrite cotangent as and substitute . Work on an interval that does not contain a zero of sine.
Key Points
- Cotangent is the quotient of cosine and sine.
- The derivative of the denominator is the numerator, so substitution produces a logarithm.
- Absolute value allows the formula to work where sine is negative.
- Cotangent is undefined at integer multiples of .
- A definite integral across a singularity needs separate limits.
What is the integral of cot x?
For angles in radians, the indefinite integral is
This formula describes all antiderivatives on a connected interval where . You can also write because on that interval. The logarithm of the reciprocal reverses the sign. Wolfram MathWorld, Cotangent
At for an integer , cotangent is undefined. On consecutive intervals between these points, separate constants can be chosen independently. The antiderivatives guide explains why a constant is shared only within a connected interval.
How do you integrate cotangent by substitution?
- Rewrite as .
- Let , so .
- The remaining integral is .
- Substitute back to obtain .
To check, use the derivative rule wherever . With , the derivative is . On an interval where , differentiate directly. The two minus signs cancel. OpenStax, Integrals Involving Exponential and Logarithmic Functions
The derivative of cotangent gives . This explains a related but different integral. Integrating returns . Integrating itself returns the logarithm above.
How do you integrate cotangent with a different inner angle?
For constants and , use and :
The factor cancels the inner derivative when you check. If , the integrand is the constant provided . Its antiderivative is then . The integration formulas guide shows other logarithmic forms with the same derivative-over-function pattern.
When does a definite cotangent integral converge?
If both endpoints and everything between them lie inside one interval where sine is nonzero, subtract the log values at the bounds:
Inspect the entire interval first. Even if both endpoints are valid, a multiple of in the middle can make the integral improper. For an internal singularity, both one-sided integrals must converge on their own. Two infinite contributions do not cancel in the ordinary definition. A symmetric Cauchy principal value is a separate quantity. OpenStax, Improper Integrals
Six Worked Cotangent Integral Examples
Example 1
Find for .
- Pull out the factor of 3.
- Sine is positive throughout the given interval.
- The family is , whose derivative is .
Example 2
Find .
- Let and divide by the inner derivative 4.
- Integrate cotangent in .
- The answer is , on any interval avoiding the zeroes of the sine inside the logarithm.
Example 3
Compute .
- Sine stays positive and never vanishes there.
- The endpoint sine values are and 1.
- The integral is .
Example 4
Compute .
- Both endpoints lie in .
- Subtract from .
- The result is .
Example 5
Does converge?
- Replace the lower limit by because cotangent is undefined at zero.
- The integral from to equals .
- As tends to zero from above, the integral grows without bound. It diverges to positive infinity.
Example 6
Evaluate .
- This interval lies in , where sine is negative.
- The endpoint absolute values are and in increasing order of .
- Subtracting the logs gives . The sign agrees with cotangent being negative throughout the interval.
Common Cotangent Integration Mistakes
Mistake 1: Refusing negative values of sine
Keep the absolute value for a domain where sine may be negative. For example, on you can write .
Mistake 2: Switching the logarithm sign
A plus sign goes with . The minus sign applies when using the reciprocal, as in .
Mistake 3: Applying endpoint subtraction across a pole
The interval crosses zero. The left side diverges to negative infinity and the right side to positive infinity. Endpoint subtraction cannot evaluate the improper integral even though the endpoints give matching logarithms.
Try It Yourself
- Find .
- Compute .
- On , find the antiderivative with value 4 at .
Answers. 1. . 2. Zero, since the sine values match and the interval stays in one branch. 3. .
Conclusion
- Spot the derivative of sine in the numerator before substituting.
- Keep absolute values whenever the sign of sine is unknown.
- Check for multiples of pi before subtracting endpoint values.
Read More
- Use logarithm rules to check an equivalent antiderivative
- See why the integral of secant needs a different logarithm
- Review radian measure and conversions
Research Behind This Article
- Eric W. Weisstein, Cotangent. Wolfram MathWorld
- OpenStax, Calculus Volume 1: Integrals Involving Exponential and Logarithmic Functions. OpenStax
- OpenStax, Calculus Volume 2: Integrals Involving Exponential and Logarithmic Functions. OpenStax
- OpenStax, Calculus Volume 2: Improper Integrals. OpenStax