AP Calculus AB and BC

Derivative of cot x: Answer, Proof, and Mistakes

The derivative of cot x with respect to x is negative csc squared x. It follows from the quotient rule applied to cos x over sin x, where the Pythagorean identity collapses the numerator to negative one. The minus sign matches the pattern that every co-function derivative is negative.

ddx[cotx]=csc2x\frac{d}{dx}\left[\cot x\right] = -\csc^{2} x

How to differentiate cot x

Write cotx\cot x as cosxsinx\frac{\cos x}{\sin x} and apply the quotient rule.

ddxcosxsinx=sinxsinxcosxcosxsin2x\frac{d}{dx}\frac{\cos x}{\sin x} = \frac{-\sin x\cdot\sin x - \cos x\cdot\cos x}{\sin^{2} x}

The numerator is (sin2x+cos2x)-\left(\sin^{2} x + \cos^{2} x\right), which the Pythagorean identity turns into 1-1.

ddxcotx=1sin2x=csc2x\frac{d}{dx}\cot x = \frac{-1}{\sin^{2} x} = -\csc^{2} x

The co-function sign pattern

Every derivative in the trig table whose function starts with "co" carries a minus sign. That is one fact instead of six, and it is the fastest way to catch a sign slip.

  • ddxtanx=sec2x\frac{d}{dx}\tan x = \sec^{2} x against ddxcotx=csc2x\frac{d}{dx}\cot x = -\csc^{2} x
  • ddxsinx=cosx\frac{d}{dx}\sin x = \cos x against ddxcosx=sinx\frac{d}{dx}\cos x = -\sin x
  • ddxsecx=secxtanx\frac{d}{dx}\sec x = \sec x\tan x against ddxcscx=cscxcotx\frac{d}{dx}\csc x = -\csc x\cot x

Where the derivative of cot x shows up on the AP exam

Trigonometric derivatives are Topic 2.7, on both AB and BC. Read backwards, this result is also the antiderivative fact csc2xdx=cotx+C\int \csc^{2} x\,dx = -\cot x + C, which is where it earns most of its Unit 6 marks.

Note the domain. Cotangent is undefined wherever sinx=0\sin x = 0, so the derivative does not exist at integer multiples of π\pi either.

Common mistakes with the derivative of cot x

  • Dropping the minus sign and writing csc2x\csc^{2} x. That is the derivative of cotx-\cot x.
  • Writing sec2x-\sec^{2} x. Secant belongs to tangent; cosecant belongs to cotangent.
  • Writing csc2x-\csc^{2} x as csc(x2)-\csc\left(x^{2}\right). The square is on the function value, not on the input.

Check yourself, not just the answer

Type derivatives and get graded on mathematical equivalence, with rule-level hints when you miss, in the Derivative Practice Checker.

Frequently asked questions

What is the derivative of cot x?

It is csc2x-\csc^{2} x, which is 1sin2x\frac{-1}{\sin^{2} x}.

Why does the derivative of cot x have a minus sign?

The quotient rule produces (sin2x+cos2x)-\left(\sin^{2} x + \cos^{2} x\right) on top, which is 1-1. Every co-function derivative inherits a minus for the same structural reason.

What is the antiderivative of csc^2 x?

It is cotx+C-\cot x + C, which is this derivative read in reverse.

Where is cot x not differentiable?

Wherever sinx=0\sin x = 0, that is at every integer multiple of π\pi, because the function itself is undefined there.