Before you start
This page is easier if you are comfortable with:
What Integral of cot x means
Write cotx=sinxcosx. The numerator is the derivative of the denominator, so the integral is ln∣sinx∣+C.
It is the cotangent counterpart of ∫tanxdx=−ln∣cosx∣.
For cotkx, divide by k. It is a case of the integral of f dash over f, it parallels the integral of tan x, and the next in the family is the integral of cosec x.
This page is part of Further calculus in Calculus. Topics that work alongside it: Integral of tan x, Integral of cosec x, Integral of f′(x)/f(x), Differentiation of x = a cosh t, y = b sinh t (hyperbola), Limits for improper integrals and Trigonometric substitutions.
What is it used for?
The integral of cot x is ln|sin x| + c. It follows from writing cot x as cos x ÷ sin x, where the top is the derivative of the bottom.
- Integrating cotangent in A-level questions.
- Working with reciprocal trig integrals.
- Checking results by differentiating.
How to use integral of cot x
- Write cotx as sinxcosx.
- Spot f′/f.
- Integrate to ln∣sinx∣.
- Add +C.
Graph
The shaded area is [ln sin x] from π/6 to π/2 = ln 1 − ln ½ = ln 2 ≈ 0.693.
Worked examples
The examples marked with a button were worked out by the solver on this page. You can try each one yourself.
Example 1: integrate cot x
Find ∫cotxdx.
Indefinite integral
Answer
ln(sin(x))+CIntegrate with respect to x
∫cot(x)dx
Add the constant of integration
=ln(sin(x))+C
Example 2: a definite integral
Find the integral of cot x from π/6 to π/2.
Definite integral
Answer
ln(2)≈0.6931
Integrate with respect to x
∫6π2πcot(x)dx
Antiderivative
F(x)=ln(sin(x))
Evaluate F(b)−F(a)
F(2π)−F(6π)=0−(−ln(2))=ln(2)
Example 3: from π/4 to π/2
Find the integral of cot x from π/4 to π/2.
Definite integral
Answer
2ln(2)≈0.3466
Integrate with respect to x
∫4π2πcot(x)dx
Antiderivative
F(x)=ln(sin(x))
Evaluate F(b)−F(a)
F(2π)−F(4π)=0−(−2ln(2))=2ln(2)
Special cases
A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.
The result
∫cot x dx = ln|sin x| + c
cos x is the derivative of sin x.
π/6 to π/2
ln 1 − ln 0.5 = 0.6931
sin(π/2) = 1.
π/4 to π/2
−ln(0.7071) = 0.3466
½ ln 2.
Why
u = sin x, du = cos x dx
∫du/u = ln|u|.
Word problems
∫cot x dx = ln|sin x| + c. Write cot x = cos x ÷ sin x, where the numerator is the derivative of the denominator.
π/6 to π/2
Evaluate ∫ from π/6 to π/2 of cot x dx to 4 decimal places.
- Antiderivativeln sin x
- Limitsln 1 − ln 0.5
- Check: ln 2 ✓0.6931.
π/4 to π/2
Evaluate ∫ from π/4 to π/2 of cot x dx to 4 decimal places.
- Antiderivativeln sin x
- Limits0 − ln(0.7071)
- Check: ½ ln 2 ✓0.3466.
With a coefficient Higher
Evaluate ∫ from π/6 to π/2 of 3 cot x dx to 4 decimal places.
- Multiply3 ln 2
- Check: ✓2.0794.
Another range Higher
Evaluate ∫ from 1 to 1.5 of cot x dx to 4 decimal places.
- Antiderivativeln sin x
- Limitsln sin 1.5 − ln sin 1
- Check: ✓0.1701.
Common mistakes
A minus sign
∫cot x dx = −ln|sin x| ✗
ln|sin x| ✓
cos x is +d/dx sin x.
Writing ln|cos x|
∫cot x dx = ln|cos x| ✗
ln|sin x| ✓
That is ∓∫tan x.
Starting at 0
lower limit 0 ✗
cot has an asymptote at 0 ✓
The integral diverges.
Using degrees
wrong mode ✗
radians ✓
Calculus uses radians.
Exam tips
ln|sin x|.
cos is f′ of sin.
Beware x = 0, π.
Radians.
Substitute u = sin x.
Practice questions
Try each one on paper, then open the answer. Use the solver above to see the full working.
1. Evaluate ∫ from π/6 to π/2 of cot x dx to 4 decimal places Foundation
0.6931
2. Evaluate ∫ from 1 to 2 of cot x dx to 4 decimal places Foundation
0.0775
3. Evaluate ∫ from 0.5 to 1 of cot x dx to 4 decimal places Foundation
0.5626
4. Evaluate ∫ from π/4 to π/2 of 4 cot x dx to 4 decimal places Higher
1.3863
5. Evaluate ∫ from π/3 to π/2 of cot x dx to 4 decimal places Higher
0.1438
6. Evaluate ∫ from 0.3 to 0.6 of cot x dx to 4 decimal places Higher
0.6475
Practice generator
Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.
Solve: …
Key terms
- Cotangent
- cos x ÷ sin x.
- Substitution
- u = sin x.
- Logarithm
- ln.
- Asymptote
- Where sin x = 0.
- Antiderivative
- F with F′ = f.
- Definite integral
- Has limits.
Frequently asked questions
What is the integral of cot x?
ln|sin x| + c.
How is it found?
u = sin x.
Where is cot x undefined?
Where sin x = 0.
Do I use radians?
Yes.
Which page covers tan x?
integral of tan x.
Which page covers cosec x?
integral of cosec x.