Integral of cot x Equation Solver with Worked Examples

The integral of is . Type “integrate cot(x)” and the solver integrates it.

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What Integral of cot x means

Write . The numerator is the derivative of the denominator, so the integral is .

It is the cotangent counterpart of .

For , divide by . 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.

How to use integral of cot x

  1. Write as .
  2. Spot .
  3. Integrate to .
  4. Add .

Graph

Area under y = cot x from π/6 to π/20.20.40.60.811.21.41.61.800.511.52Area under y = cot x from π/6 to π/2xyGraph with x from 0.2 to 1.8 and y from -0.3 to 2.2. Shows the curve y = 1/tan(x); a shaded region.

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 .

Indefinite integral
Answer
ln⁡(sin⁡(x))+C\ln\left(\sin\left(x\right)\right) + C
  1. Integrate with respect to
  2. Add the constant of integration

Example 2: a definite integral

Find the integral of cot x from π/6 to π/2.

Definite integral
Answer
ln⁡(2)\ln\left(2\right)
  1. Integrate with respect to
  2. Antiderivative
  3. Evaluate

Example 3: from π/4 to π/2

Find the integral of cot x from π/4 to π/2.

Definite integral
Answer
ln⁡(2)2\frac{\ln\left(2\right)}{2}
  1. Integrate with respect to
  2. Antiderivative
  3. Evaluate

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.

  1. Antiderivativeln sin x
  2. Limitsln 1 − ln 0.5
  3. Check: ln 2 ✓0.6931.

π/4 to π/2

Evaluate ∫ from π/4 to π/2 of cot x dx to 4 decimal places.

  1. Antiderivativeln sin x
  2. Limits0 − ln(0.7071)
  3. Check: ½ ln 2 ✓0.3466.

With a coefficient Higher

Evaluate ∫ from π/6 to π/2 of 3 cot x dx to 4 decimal places.

  1. Multiply3 ln 2
  2. Check: ✓2.0794.

Another range Higher

Evaluate ∫ from 1 to 1.5 of cot x dx to 4 decimal places.

  1. Antiderivativeln sin x
  2. Limitsln sin 1.5 − ln sin 1
  3. 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

  1. ln|sin x|.
  2. cos is f′ of sin.
  3. Beware x = 0, π.
  4. Radians.
  5. 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.

More in Calculus and the formula sheets.