Why the Signs Deserve Care
Several trigonometric derivatives have similar-looking formulas, but their signs are not interchangeable. In particular, the derivatives of cotangent and cosecant carry minus signs, while those of tangent and secant do not. Memorizing the formulas without understanding where these signs come from makes it easy to lose a negative sign in a calculation.
We will use the quotient rule to derive and check the formulas. Throughout, angles are measured in radians. The basic derivatives used below are \((\sin x)'=\cos x\) and \((\cos x)'=-\sin x\), together with the identity \(\sin^2 x+\cos^2 x=1\).
The Four Derivative Formulas
Tangent and cotangent are quotients of sine and cosine. Secant and cosecant are reciprocals of cosine and sine, respectively:
Each function is defined only where its denominator is nonzero. Thus \(\tan x\) and \(\sec x\) require \(\cos x\ne 0\), while \(\cot x\) and \(\csc x\) require \(\sin x\ne 0\).
The signs follow from the numerator in the quotient rule, not from a general rule that all reciprocals differentiate negatively. For tangent, the quotient-rule numerator becomes a sum of squares. For cotangent, it becomes the negative of that sum. For secant and cosecant, the quotient-rule numerator contains the derivative of the denominator, and \((\cos x)'=-\sin x\) is especially important.
Deriving the Formulas with the Quotient Rule
For tangent, use \(u=\sin x\) and \(v=\cos x\). Then \(u'=\cos x\) and \(v'=-\sin x\). Since \(\cos x\ne0\) on the domain of tangent, the quotient rule applies:
For cotangent, the numerator and denominator are reversed. The derivative is therefore:
For secant, write \(1/\cos x\). The numerator \(1\) has derivative zero, and the denominator has derivative \(-\sin x\):
For cosecant, write \(1/\sin x\). Here the denominator's derivative is \(\cos x\), so the subtraction in the quotient rule leaves a negative numerator:
These computations also explain why the signs differ. In the tangent calculation, subtracting a negative term produces a plus. In the cotangent calculation, both terms in the numerator are negative. In the secant calculation, subtracting the denominator's negative derivative produces a positive term; in the cosecant calculation, the denominator's derivative is positive, so that subtraction produces a negative term.
Worked Examples: Checking Tangent and Cotangent
Worked Example: Derive and check the derivative of \(\tan x\)
Differentiate \(\tan x\) using its quotient representation, then check the result at \(x=\pi/4\).
First write \(\tan x=\sin x/\cos x\). Applying the quotient rule gives:
At \(x=\pi/4\), \(\sin(\pi/4)=\cos(\pi/4)=\sqrt{2}/2\). The quotient-rule expression evaluates to:
The stated formula gives \(\sec^2(\pi/4)=(1/\cos(\pi/4))^2=(\sqrt{2})^2=2\). The values agree, checking the simplification and its positive sign at this angle.
Worked Example: Derive and check the derivative of \(\cot x\)
Differentiate \(\cot x\) from its quotient representation, then evaluate the derivative at \(x=\pi/6\).
Since \(\cot x=\cos x/\sin x\), the quotient rule gives:
At \(x=\pi/6\), \(\sin(\pi/6)=1/2\) and \(\cos(\pi/6)=\sqrt{3}/2\). Substitution into the unsimplified quotient-rule expression gives:
The formula gives \(-\csc^2(\pi/6)=-(1/(1/2))^2=-4\), so the quotient-rule result and the formula agree.
Worked Example: Checking Secant and Cosecant
Worked Example: Derive and check both reciprocal derivatives
Use quotient-rule calculations for \(\sec x\) and \(\csc x\), then check them at \(x=\pi/4\), where sine and cosine are both nonzero.
For secant, differentiate \(1/\cos x\):
At \(\pi/4\), the quotient-rule expression is \((\sqrt{2}/2)/(\sqrt{2}/2)^2=(\sqrt{2}/2)/(1/2)=\sqrt{2}\). The formula gives \(\sec(\pi/4)\tan(\pi/4)=\sqrt{2}\cdot1=\sqrt{2}\).
For cosecant, differentiate \(1/\sin x\):
At \(\pi/4\), the quotient-rule expression is \(-(\sqrt{2}/2)/(1/2)=-\sqrt{2}\). The formula gives \(-\csc(\pi/4)\cot(\pi/4)=-(\sqrt{2})(1)=-\sqrt{2}\). Both checks confirm the signs as well as the simplified expressions.
A Common Sign Error and How to Locate It
A frequent error is to give the cotangent derivative a positive sign. This often happens when the minus signs in the quotient-rule numerator are dropped or converted incorrectly. The incorrect calculation might be written as:
The first numerator term should be \((-\sin x)(\sin x)=-\sin^2 x\), not \(+\sin^2 x\). The second term is subtracted by the quotient rule: \(-(\cos x)(\cos x)=-\cos^2 x\). Thus both terms are negative:
A numerical check exposes the error immediately. At \(x=\pi/4\), the wrong formula predicts \(+2\), but the quotient-rule calculation gives \(-2\). A test value does not prove a derivative formula, but it is a useful way to catch a sign mistake in a proposed answer.
Another misleading shortcut is to assume that every reciprocal function has a negative derivative. Secant is a counterexample: its derivative is \(\sec x\tan x\), with no fixed leading minus sign. The reliable method is to write the function as a quotient, preserve the order \(u'v-uv'\), and simplify only after the numerator has been computed.
A Sign-Checking Routine
When differentiating any of these four functions, use a short routine that makes the source of the sign visible:
Use \(\sin x/\cos x\), \(\cos x/\sin x\), \(1/\cos x\), or \(1/\sin x\), as appropriate.
In particular, keep \((\cos x)'=-\sin x\) and \((\sin x)'=\cos x\) distinct.
Write \(u'v-uv'\) before simplifying either term.
Apply \(\sin^2 x+\cos^2 x=1\), then check that the result matches the corresponding formula and domain.
Why These Checks Matter
The four formulas are used repeatedly in trigonometric differentiation. A sign error in one of them can change whether a derivative is positive or negative and can therefore alter later conclusions about a function's behavior. The quotient-rule derivations provide a dependable check because they reduce each sign to two things that can be inspected directly: the derivative of the numerator and denominator, and the subtraction built into the quotient rule.
For a quick reference, the formulas and their denominator restrictions are:
| Function | Derivative | Required condition |
|---|---|---|
| \(\tan x\) | \(\sec^2 x\) | \(\cos x\ne0\) |
| \(\cot x\) | \(-\csc^2 x\) | \(\sin x\ne0\) |
| \(\sec x\) | \(\sec x\tan x\) | \(\cos x\ne0\) |
| \(\csc x\) | \(-\csc x\cot x\) | \(\sin x\ne0\) |
The main distinction to retain is not simply “some formulas are negative.” It is the calculation behind each one: tangent and secant produce positive forms, while cotangent and cosecant retain a negative sign. When uncertain, return to the quotient rule rather than guessing from the function's name.
Check Your Understanding
Answer these questions using the quotient-rule structure, not just memorized signs.
- What is the derivative of \(\cot x\), and which two negative terms appear in its quotient-rule numerator?
- Why does the quotient-rule calculation for \(\tan x\) produce a sum of squares?
- Differentiate \(\sec x=1/\cos x\) and identify where the positive sign in its numerator comes from.
- At \(x=\pi/6\), what value does the formula \(-\csc^2 x\) give?
- A proposed derivative of \(\csc x\) is \(+\csc x\cot x\). Which quotient-rule term shows that the sign should instead be negative?