Skip to content
ihateDesmos

Integral of csc x

Updated 6 November 2026 · Checked numerically by the ihateDesmos engine
The integral of csc x
∫
csc(x)
dx =
−ln(|csc(x)+cot(x)|)+C

The integral of csc x is −ln|csc x + cot x| + C. It uses the same trick as the integral of sec x, with a minus sign.

0.51.01.52.02.53.0−224
Open in calculator
y=csc(x)
in blue and its integral
y=−ln(|csc(x)+cot(x)|)
(with C = 0) in red. Defined for x ≠ nπ.

How to integrate csc x

Method: a clever multiplication.

  1. 1
    Multiply by a form of 1: csc x · (csc x + cot x)/(csc x + cot x).
  2. 2
    The top becomes csc²x + csc x cot x.
  3. 3
    Let u = csc x + cot x. Then du = −(csc x cot x + csc²x) dx, which is minus the top.
  4. 4
    So the integral becomes −∫(1/u) du = −ln|u|.
  5. 5
    Substitute back: −ln|csc x + cot x| + C.

What it means

csc x is positive between 0 and π, with a minimum of 1 at π/2. Its integral rises across that interval and heads off to infinity at both ends.

The integral from π/4 to π/2

Using the antiderivative: F(π/2) − F(π/4) = ln(1 + √2), which is about 0.881374. A direct numerical integration of csc x gives 0.881374, which agrees.

0.511.522.53−4−3−2−1123456

Check by differentiating

The derivative of the answer should give back the original function. The last column measures that slope directly from the answer, and it matches.

Checking the integral
xcsc xSlope of the answer
1/22.085832.08583
π/4√2√2
π/211
21.099751.09975
13/51.939861.93986

Common mistakes

  • Forgetting the minus sign.
  • Writing −csc x cot x, which is the derivative, not the integral.

Frequently asked questions

What is the integral of csc x?
The integral of csc x is −ln|csc x + cot x| + C, for x ≠ nπ.
What is the integral of csc x from π/4 to π/2?
ln(1 + √2), which is about 0.881374.

Keep going

Integrate any function

Type your own function into the integral calculator for the steps, the answer and a graph.

Open the integral calculator