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.
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.
- 1Multiply by a form of 1: csc x · (csc x + cot x)/(csc x + cot x).
- 2The top becomes csc²x + csc x cot x.
- 3Let u = csc x + cot x. Then du = −(csc x cot x + csc²x) dx, which is minus the top.
- 4So the integral becomes −∫(1/u) du = −ln|u|.
- 5Substitute 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.
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.
| x | csc x | Slope of the answer |
|---|---|---|
| 1/2 | 2.08583 | 2.08583 |
| π/4 | √2 | √2 |
| π/2 | 1 | 1 |
| 2 | 1.09975 | 1.09975 |
| 13/5 | 1.93986 | 1.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.