Why Derive the Cotangent Derivative?
A derivative formula is more useful when you know where it comes from and when it applies. Cotangent is defined as a quotient of two familiar trigonometric functions, so its derivative follows from the quotient rule. The calculation also illustrates how a trigonometric identity can turn a complicated-looking numerator into a compact formula.
Throughout, angles are measured in radians. The sine and cosine derivatives are \( \frac{d}{dx}\sin x=\cos x \) and \( \frac{d}{dx}\cos x=-\sin x \), and the quotient rule is applied where its denominator is nonzero.
The domain restriction matters: a quotient cannot be evaluated where its denominator is zero. Since \( \sin x=0 \) at \( x=k\pi \), for integers \( k \), the cotangent function—and therefore its derivative as a cotangent function—is considered on intervals that do not contain those points.
Deriving the Formula
The quotient rule states that if \( f(x)=\frac{u(x)}{v(x)} \), then, at points where \( v(x)\ne 0 \),
For cotangent, take \( u(x)=\cos x \) and \( v(x)=\sin x \). Their derivatives are \( u'(x)=-\sin x \) and \( v'(x)=\cos x \). Substituting these into the quotient rule gives
The Pythagorean identity \( \sin^2 x+\cos^2 x=1 \) now simplifies the numerator. Since \( \sin x\ne0 \) on the domain of cotangent, division by \( \sin^2 x \) is valid:
This calculation explains the negative sign: both products in the quotient-rule numerator are subtracted contributions, and together they equal \( -(\sin^2 x+\cos^2 x)=-1 \). The denominator remains \( \sin^2 x \), so the derivative is negative wherever cotangent is defined.
An Equivalent Form
The derivative can also be written using cotangent itself. Begin with the Pythagorean identity and divide both sides by \( \sin^2 x \). This is permitted wherever cotangent is defined:
Substituting this identity into the derivative formula gives the equivalent expression
The forms \( -\csc^2 x \) and \( -1-\cot^2 x \) describe the same derivative on the same domain. The first often makes the quotient-rule result most visible; the second can be convenient when an expression already contains cotangent. Neither form removes the restriction \( \sin x\ne0 \).
Worked Applications
Worked Example: Find the Derivative at \( \pi/6 \)
Let \( f(x)=\cot x \). Find \( f'(\pi/6) \), showing the quotient-rule calculation and checking it with the compact formula.
At \( x=\pi/6 \), \( \sin(\pi/6)=1/2 \) and \( \cos(\pi/6)=\sqrt{3}/2 \). The quotient-rule numerator is
The denominator is
Therefore,
Check using \( -\csc^2 x \): since \( \csc(\pi/6)=2 \), this gives \( -2^2=-4 \), the same value. The angle is in the domain because its sine is nonzero.
Worked Example: Evaluate the Derivative at \( 2\pi/3 \)
For \( f(x)=\cot x \), evaluate \( f'(2\pi/3) \) in both equivalent forms.
The sine at this angle is \( \sin(2\pi/3)=\sqrt3/2 \), so
For the other form, \( \cos(2\pi/3)=-1/2 \), and hence
Then
Both expressions agree. Also, \( \sin(2\pi/3)\ne0 \), so the derivative is defined at this angle.
Worked Example: Find Where the Derivative Equals \( -4 \) on \( (0,\pi) \)
Find all \( x\in(0,\pi) \) such that the derivative of \( f(x)=\cot x \) is \( -4 \).
Use \( f'(x)=-\csc^2 x \) and set it equal to \( -4 \):
On \( (0,\pi) \), sine is positive. Thus \( \sin x=1/2 \), which occurs at
Check both values in the derivative formula:
Both angles lie in the stated interval and have nonzero sine, so both are valid solutions.
A Common Quotient-Rule Mistake
A frequent error is reversing the two terms in the quotient-rule numerator or losing the minus sign in the derivative of cosine. For example, writing
uses the numerator order \( uv'-u'v \), rather than the quotient rule's \( u'v-uv' \). The correct order is
Consequently the correct derivative is \( -1/\sin^2 x=-\csc^2 x \), not \( +\csc^2 x \). A quick consistency check is that the derivative is negative at every point of the domain, since \( \csc^2 x>0 \) wherever it is defined.
Another important check is the domain. The quotient-rule formula contains \( \sin^2 x \) in its denominator, so it cannot be used at \( x=k\pi \). A simplified-looking expression does not make the original cotangent function defined at those excluded points.
What the Formula Tells Us
The derivative formula gives more than a way to calculate slopes. At every point where cotangent is defined, \( \csc^2 x \) is positive, so \( \frac{d}{dx}\cot x<0 \). Thus cotangent is decreasing on each interval between consecutive multiples of \( \pi \). The statement is interval-by-interval because cotangent is not defined at the multiples of \( \pi \).
For computation, choose the equivalent expression that fits the available information. If the sine of the angle is known, \( -1/\sin^2 x \) is direct. If cotangent is already given, \( -1-\cot^2 x \) may avoid finding sine separately. In either case, retain the domain restriction and the negative sign.
Check Your Understanding
Use the quotient-rule derivation and its equivalent forms to answer these questions.
- Why must \( \sin x\ne0 \) when defining cotangent and differentiating its quotient representation?
- What are \( u \), \( v \), \( u' \), and \( v' \) when applying the quotient rule to \( \cos x/\sin x \)?
- Which identity simplifies the quotient-rule numerator, and what derivative formula does it give?
- Rewrite \( -\csc^2 x \) using cotangent.
- Find \( \frac{d}{dx}\cot x \) at \( x=\pi/4 \), and check the value using the other equivalent form.