Tutorials › Calculus II › Derivative Identities Behind Tangent And Secant Integrals

Tangent and Secant Powers · Tutorial 126 of 998

Derivative Identities Behind Tangent And Secant Integrals

Learn why the derivatives of tangent and secant create natural substitution patterns in trigonometric integrals, and how to check those substitutions.

Intermediate 9 min read

What You'll Learn

  • Derive the tangent and secant derivative identities from the quotient and reciprocal rules.
  • State where tangent and secant are defined and differentiable.
  • Recognize when a factor matches the derivative of a tangent or secant expression.
  • Include inner-function factors correctly when applying the chain rule.
  • Check proposed antiderivatives by differentiation.
  • Avoid sign and missing-factor errors in tangent-secant substitutions.

Why These Derivatives Matter

In trigonometric integrals, the usefulness of a substitution often depends on whether part of the integrand is the derivative of another part. Tangent and secant are especially helpful because their derivatives can be written using tangent and secant themselves. Once these identities are established, they provide a reliable way to spot natural substitutions in integrals involving their powers.

This tutorial derives the two identities and explains how to recognize the corresponding substitution patterns. The goal is not to classify every tangent-secant integral, but to understand why the substitutions work and how to verify the results.

Key identities: Wherever \(\cos x\ne 0\), the derivatives are \(\frac{d}{dx}\tan x=\sec^2 x\) and \(\frac{d}{dx}\sec x=\sec x\tan x\).

Definitions and Domains

The tangent and secant functions are defined by

$$ \tan x=\frac{\sin x}{\cos x}, \qquad \sec x=\frac{1}{\cos x}. $$

Both functions are defined only where \(\cos x\ne 0\). Their excluded points are \(x=\frac{\pi}{2}+k\pi\), where \(k\) is an integer. On any open interval that avoids those points, tangent and secant are differentiable, so their derivative identities apply throughout that interval.

This domain condition matters for integration. An antiderivative involving \(\tan x\) or \(\sec x\) is understood on an interval where those expressions are defined. If an interval crosses an excluded point, the integral must be considered separately on its domain intervals.

Deriving the Tangent Derivative

Write tangent as a quotient and apply the quotient rule. The quotient rule states that \(\left(\frac{u}{v}\right)'=\frac{u'v-uv'}{v^2}\), provided \(v\ne 0\). Here \(u=\sin x\) and \(v=\cos x\), so \(u'=\cos x\) and \(v'=-\sin x\). Therefore,

$$ \begin{aligned} \frac{d}{dx}\tan x &=\frac{d}{dx}\left(\frac{\sin x}{\cos x}\right)\\ &=\frac{(\cos x)(\cos x)-(\sin x)(-\sin x)}{\cos^2 x}\\ &=\frac{\cos^2 x+\sin^2 x}{\cos^2 x}\\ &=\frac{1}{\cos^2 x}\\ &=\sec^2 x. \end{aligned} $$

The penultimate equality uses the Pythagorean identity \(\sin^2 x+\cos^2 x=1\); the last uses the definition of secant. Thus the tangent derivative is positive wherever it is defined. This also provides a useful sign check: a proposed formula for the derivative of tangent should not have a negative sign.

Deriving the Secant Derivative

Write secant as the reciprocal of cosine. The derivative of a reciprocal, \((1/v)'=-v'/v^2\), applies where \(v\ne 0\). With \(v=\cos x\), it gives

$$ \begin{aligned} \frac{d}{dx}\sec x &=\frac{d}{dx}\left(\frac{1}{\cos x}\right)\\ &=-\frac{-\sin x}{\cos^2 x}\\ &=\frac{\sin x}{\cos^2 x}\\ &=\left(\frac{1}{\cos x}\right)\left(\frac{\sin x}{\cos x}\right)\\ &=\sec x\tan x. \end{aligned} $$

The two factors in the last expression have different roles: \(\sec x\) comes from one factor of \(1/\cos x\), while \(\tan x\) is \(\sin x/\cos x\). This factorization is the reason a product of secant and tangent can signal a substitution using secant.

Derivative identities: On any interval where \(\cos x\ne 0\), $$ \frac{d}{dx}\tan x=\sec^2 x, \qquad \frac{d}{dx}\sec x=\sec x\tan x. $$ These identities follow from the quotient and reciprocal rules together with the sine-cosine Pythagorean identity.

How the Identities Guide Substitution

The substitution rule for antiderivatives is the chain rule used in reverse. If \(u=g(x)\), then \(du=g'(x)\,dx\). A factor of \(g'(x)\) in an integrand can therefore be absorbed into \(du\), leaving an integral expressed in \(u\). For tangent and secant, the identities show which differential factors to look for:

  • If an expression is a function of \(\tan x\) and the integrand includes \(\sec^2 x\,dx\), try \(u=\tan x\), since \(du=\sec^2 x\,dx\).
  • If an expression is a function of \(\sec x\) and the integrand includes \(\sec x\tan x\,dx\), try \(u=\sec x\), since \(du=\sec x\tan x\,dx\).

These are recognition patterns, not automatic guarantees that a particular integral becomes easy. The remaining expression must also be expressible in terms of the chosen \(u\). If the integrand contains a composite expression such as \(\tan(3x+1)\), the chain rule contributes an additional factor of \(3\), which must be accounted for.

1
Identify a candidate inner expression.
Look for a tangent or secant expression whose derivative may appear as another factor.
2
Differentiate the candidate.
Include the chain-rule factor if its argument is not just \(x\).
3
Compare with the integrand.
Check whether the differential factor is present, perhaps up to a constant multiple.
4
Change variables and check.
Integrate in the new variable, then differentiate the proposed antiderivative to confirm it.

Worked Applications

Worked Example: A Tangent Expression with a Linear Argument

Evaluate \(\int \sec^2(2x+1)\,dx\). The tangent derivative identity suggests that the integrand is the derivative of a tangent expression, with a chain-rule factor to handle.

Set \(u=2x+1\). Then \(\frac{du}{dx}=2\), so \(du=2\,dx\) and \(dx=\frac{1}{2}\,du\). Substitution gives

$$ \begin{aligned} \int \sec^2(2x+1)\,dx &=\frac{1}{2}\int \sec^2 u\,du\\ &=\frac{1}{2}\tan u+C\\ &=\frac{1}{2}\tan(2x+1)+C. \end{aligned} $$

Check by differentiating the result:

$$ \frac{d}{dx}\left(\frac{1}{2}\tan(2x+1)\right) =\frac{1}{2}\sec^2(2x+1)\cdot 2 =\sec^2(2x+1). $$

The derivative matches the integrand. The factor \(\frac{1}{2}\) in the antiderivative is necessary to compensate for the inner derivative \(2\).

Worked Example: A Secant-Tangent Product with a Linear Argument

Evaluate \(\int \sec(3x)\tan(3x)\,dx\). The secant identity gives the derivative of \(\sec(3x)\) after applying the chain rule.

Let \(u=3x\), so \(du=3\,dx\) and \(dx=\frac{1}{3}\,du\). Then

$$ \begin{aligned} \int \sec(3x)\tan(3x)\,dx &=\frac{1}{3}\int \sec u\tan u\,du\\ &=\frac{1}{3}\sec u+C\\ &=\frac{1}{3}\sec(3x)+C. \end{aligned} $$

To check, differentiate:

$$ \frac{d}{dx}\left(\frac{1}{3}\sec(3x)\right) =\frac{1}{3}\sec(3x)\tan(3x)\cdot 3 =\sec(3x)\tan(3x). $$

The check confirms both the product in the derivative identity and the required factor from the inner argument.

Worked Example: Rewriting a Factor Before Substitution

Evaluate \(\int \frac{\tan x\,\sec^2 x}{1+\tan^2 x}\,dx\). The factor \(\sec^2 x\,dx\) suggests \(u=\tan x\). After substitution, the denominator also becomes an expression in \(u\).

Set \(u=\tan x\), so \(du=\sec^2 x\,dx\). The integral becomes

$$ \begin{aligned} \int \frac{\tan x\,\sec^2 x}{1+\tan^2 x}\,dx &=\int \frac{u}{1+u^2}\,du\\ &=\frac{1}{2}\ln(1+u^2)+C\\ &=\frac{1}{2}\ln(1+\tan^2 x)+C. \end{aligned} $$

For the integration step, let \(w=1+u^2\). Then \(dw=2u\,du\), so \(u\,du=\frac{1}{2}dw\), and \(\int \frac{u}{1+u^2}\,du=\frac{1}{2}\int \frac{1}{w}\,dw=\frac{1}{2}\ln|w|+C\). Since \(1+u^2>0\) for real \(u\), the absolute value can be omitted.

Check by differentiation. On any interval where \(\tan x\) is defined, \(1+\tan^2 x=\sec^2 x>0\):

$$ \begin{aligned} \frac{d}{dx}\left(\frac{1}{2}\ln(1+\tan^2 x)\right) &=\frac{1}{2}\cdot\frac{2\tan x\,\sec^2 x}{1+\tan^2 x}\\ &=\frac{\tan x\,\sec^2 x}{1+\tan^2 x}. \end{aligned} $$

This equals the original integrand. The substitution works because the differentiated inner expression contributes the matching \(\sec^2 x\) factor.

A Common Mistake: Losing the Chain-Rule Factor

A frequent error is to treat the derivative of \(\tan(2x+1)\) as though its argument were simply \(x\). The incorrect calculation is

$$ \frac{d}{dx}\tan(2x+1)=\sec^2(2x+1). $$

This omits the derivative of \(2x+1\). The chain rule gives the correct calculation:

$$ \frac{d}{dx}\tan(2x+1) =\sec^2(2x+1)\cdot\frac{d}{dx}(2x+1) =2\sec^2(2x+1). $$

Consequently, \(\tan(2x+1)\) alone is not an antiderivative of \(\sec^2(2x+1)\); its derivative is twice the integrand. Multiplying by \(\frac{1}{2}\) corrects the result. Differentiating an answer is a direct way to detect this kind of error.

Another useful sign check comes from the secant identity. Because \(\frac{d}{dx}\sec x=\sec x\tan x\), a negative sign inserted into this derivative would also produce an incorrect substitution and antiderivative. Derive the identity from \(\sec x=1/\cos x\) rather than relying on memory when the sign is uncertain.

What to Take Forward

The derivative identities connect the form of an integrand to the substitution that may simplify it. A squared-secant differential factor points toward tangent; a secant-tangent differential factor points toward secant. When the trigonometric expression has an inner function, its derivative must be included as well.

The key test is not simply whether tangent or secant appears. Ask whether the integrand contains the derivative of the proposed substitution, and whether everything that remains can be rewritten in the new variable. Finally, differentiate the proposed antiderivative on its domain to verify that it reproduces the integrand.

Check Your Understanding

Use the derivative identities and the chain rule to answer these questions. Keep track of the domain wherever tangent or secant appears.

  1. Derive \(\frac{d}{dx}\tan x=\sec^2 x\) using the quotient rule and the sine-cosine Pythagorean identity.
  2. What substitution is suggested by an integrand containing a function of \(\tan x\) multiplied by \(\sec^2 x\,dx\)?
  3. Evaluate \(\int \sec^2(4x)\,dx\), showing how the inner derivative affects the answer.
  4. Differentiate \(\frac{1}{2}\sec(2x)\) and state the resulting integrand.
  5. Why must tangent-secant antiderivatives be interpreted on intervals that avoid points where \(\cos x=0\)?

Test yourself: Calculus II final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon