From Trigonometric Derivatives to Antiderivatives
The derivative rules for tangent and cotangent immediately provide two useful antiderivative rules. The key is to recognize both the trigonometric expression and, when its argument is not simply \(x\), the constant factor contributed by the chain rule.
These rules apply on intervals where the expressions are defined. In particular, \(\sec^2 x\) is undefined when \(\cos x=0\), and \(\csc^2 x\) is undefined when \(\sin x=0\). An antiderivative must be considered on an interval that does not cross one of those undefined points.
The Basic Antiderivative Rules
The derivative of tangent is \(\sec^2 x\), and the derivative of cotangent is \(-\csc^2 x\). Reversing these derivative rules gives the corresponding antiderivatives:
The negative sign in the second formula is essential. Since \(\frac{d}{dx}(\cot x)=-\csc^2 x\), the antiderivative of positive \(\csc^2 x\) is \(-\cot x\), not \(\cot x\).
Worked Example: Integrating Secant-Squared of \(x\)
Find \(\int \sec^2 x\,dx\), then verify the result.
The derivative rule \(\frac{d}{dx}(\tan x)=\sec^2 x\) matches the integrand directly. Therefore,
To check, differentiate the proposed antiderivative:
The derivative is the original integrand, so the result is correct on any interval where \(\cos x\ne 0\).
Why Linear Arguments Require a Factor
Suppose the argument is \(kx+b\), where \(k\) and \(b\) are constants. Differentiating \(\tan(kx+b)\) produces not just \(\sec^2(kx+b)\), but also the derivative \(k\) of the inner expression. That factor must be accounted for in the antiderivative.
When \(k\ne 0\), multiplying \(\tan(kx+b)\) by \(1/k\) cancels that extra factor. The same reasoning applies to cotangent, with its negative derivative.
For the secant-squared formula, the interval must satisfy \(\cos(kx+b)\ne 0\). For the cosecant-squared formula, it must satisfy \(\sin(kx+b)\ne 0\). The constant \(C\) can be chosen independently on each interval of definition.
Deriving and Verifying the Rules
The formulas follow from the chain rule and the derivatives of tangent and cotangent. Those derivative identities can also be seen from the quotient rule. Where \(\cos x\ne 0\), tangent is \(\sin x/\cos x\), so:
Where \(\sin x\ne 0\), cotangent is \(\cos x/\sin x\), and the quotient rule gives:
Now differentiate each proposed antiderivative for a linear argument. For secant-squared:
For cosecant-squared:
Each derivative reproduces its integrand. This verifies both formulas and explains why the coefficient is \(1/k\) and why the cosecant-squared antiderivative has a negative sign.
Worked Example: A Secant-Squared Function with a Linear Argument
Find \(\int \sec^2(5x-1)\,dx\), then verify the result.
The inner expression is \(5x-1\), whose derivative is \(5\). Thus \(k=5\) and \(b=-1\), so the coefficient in front of the tangent is \(1/5\):
Differentiate to check, applying the chain rule to the tangent:
The factors \(1/5\) and \(5\) cancel, leaving exactly the given integrand. The formula applies on intervals where \(\cos(5x-1)\ne 0\).
Worked Example: A Cosecant-Squared Function with a Linear Argument
Find \(\int \csc^2(3x+\frac{\pi}{6})\,dx\), then verify the result.
The inner expression \(3x+\frac{\pi}{6}\) has derivative \(3\). Apply the cosecant-squared rule, including its negative sign:
Differentiate the proposed answer:
The derivative matches the integrand. The formula is valid on intervals where \(\sin(3x+\frac{\pi}{6})\ne 0\).
Constant Factors Outside the Trigonometric Function
An integrand may include a constant multiplier as well as a linear argument. In that case, keep the outside multiplier and the argument’s derivative visible. The result can then be checked by differentiating it.
Worked Example: Combining an Outside Factor with a Linear Argument
Find \(\int 4\csc^2(2x)\,dx\), then verify the result.
The derivative of the inner expression \(2x\) is \(2\). The cosecant-squared rule contributes a factor of \(-1/2\), and the integrand already has an outside factor of \(4\):
Check by differentiation:
The result differentiates to the original integrand, including its outside factor of \(4\). It is valid wherever \(\sin(2x)\ne 0\).
When the Argument Has No Variable Part
The linear-argument formulas above require \(k\ne 0\), because they divide by \(k\). If \(k=0\), the argument \(kx+b\) is simply the constant \(b\). Provided the trigonometric expression is defined, the integrand is a constant function:
These follow because the derivative of a constant multiple of \(x\) is that constant. If the relevant denominator is zero, the integrand is undefined and these expressions do not apply.
Common Errors and Why the Rules Matter
A frequent error is to forget the factor from differentiating the argument. For example, an incorrect attempt is:
Differentiate the proposed answer:
which is three times the integrand, not the integrand itself. The correction is to include the reciprocal factor:
Another error is to omit the negative sign for cosecant-squared. Since differentiating \(\cot x\) gives \(-\csc^2 x\), writing \(\cot x+C\) as an antiderivative of \(\csc^2 x\) has the wrong sign. Checking by differentiation catches both kinds of error quickly.
These antiderivatives are useful because they connect familiar trigonometric derivatives to integration patterns. Recognizing the pattern, tracking the derivative of the argument, and verifying the answer by differentiation provide a reliable method without relying on guesswork.
Check Your Understanding
For each integral, state any relevant restriction on where the integrand is defined, and check your proposed answer by differentiation.
- Find \(\int \sec^2 x\,dx\).
- Find \(\int \csc^2(4x)\,dx\).
- Find \(\int 6\sec^2(3x+2)\,dx\).
- Explain why the antiderivative of \(\csc^2(kx+b)\), for \(k\ne 0\), has a negative sign.
- For \(k=0\), what is an antiderivative of \(\sec^2(kx+b)\), provided the expression is defined?