Single-Variable-Calculus · Unit 22 · Video 1 · Interactive Practice

Secant and Tangent: Five Facts and the Integral of sec⁴x

IKey Formulas

FormulaNameWhere it comes from
sec⁡2x=1+tan⁡2x\sec^2 x = 1 + \tan^2 xThe identitycos⁡2x+sin⁡2x=1\cos^2 x + \sin^2 x = 1 divided by cos⁡2x\cos^2 x
ddxtan⁡x=sec⁡2x,ddxsec⁡x=sec⁡xtan⁡x\dfrac{d}{dx}\tan x = \sec^2 x,\qquad \dfrac{d}{dx}\sec x = \sec x\tan xTwo derivativesQuotient rule on sin⁡xcos⁡x\dfrac{\sin x}{\cos x} and 1cos⁡x\dfrac{1}{\cos x}
∫tan⁡x dx=−ln⁡∣cos⁡x∣+c\displaystyle\int \tan x\,dx = -\ln|\cos x| + cIntegral of tangentu=cos⁡xu = \cos x, du=−sin⁡x dxdu = -\sin x\,dx
∫sec⁡x dx=ln⁡∣sec⁡x+tan⁡x∣+c\displaystyle\int \sec x\,dx = \ln|\sec x + \tan x| + cIntegral of secant(sec⁡x+tan⁡x)′=sec⁡x (sec⁡x+tan⁡x)(\sec x + \tan x)' = \sec x\,(\sec x + \tan x)

Key Insight: For an even power of sec⁡x\sec x, keep one sec⁡2x dx\sec^2 x\,dx as d(tan⁡x)d(\tan x) and turn every other sec⁡2x\sec^2 x into 1+tan⁡2x1 + \tan^2 x: with u=tan⁡xu = \tan x the integral becomes a polynomial in uu.

IIVisualization 1 — Why the Absolute Value Is Needed

On the stretch where cos⁡x<0\cos x < 0, ln⁡(cos⁡x)\ln(\cos x) does not exist, yet the absolute-value antiderivative still has the right slope.

IIIVisualization 2 — Even Powers of Secant Become Polynomials

Whenever the power of sec⁡x\sec x is even, the same three moves turn ∫tan⁡mx sec⁡2nx dx\int \tan^m x\,\sec^{2n} x\,dx into a polynomial integral.

💡 An odd power of sec⁡x\sec x leaves no spare sec⁡2x\sec^2 x to serve as dudu once the rest is written in tan⁡x\tan x; it needs a different method.

IVQuiz Questions

Problem 1 · A Tangent Power Times sec⁡2x\sec^2 x

Find ∫tan⁡2x sec⁡2x dx\displaystyle\int \tan^2 x\,\sec^2 x\,dx.

✅ Correct! With u=tan⁡xu = \tan x, the factor sec⁡2x dx\sec^2 x\,dx is exactly dudu, so the integral is ∫u2 du=u3/3+c\int u^2\,du = u^3/3 + c.
❌ Not quite. The derivative of sec⁡3x/3\sec^3 x/3 is sec⁡3xtan⁡x\sec^3 x\tan x, not tan⁡2xsec⁡2x\tan^2 x\sec^2 x. The factor sec⁡2x dx\sec^2 x\,dx is d(tan⁡x)d(\tan x), so substitute u=tan⁡xu = \tan x.
❌ Not quite. An integral of a product is not the product of the integrals. The sec⁡2x\sec^2 x is not integrated on its own: together with dxdx it becomes dudu.
❌ Not quite. That is a derivative of the integrand's pieces, not an antiderivative. Substitute u=tan⁡xu = \tan x, du=sec⁡2x dxdu = \sec^2 x\,dx.
Show solution

Let u=tan⁡xu = \tan x. Since ddxtan⁡x=sec⁡2x\dfrac{d}{dx}\tan x = \sec^2 x, du=sec⁡2x dxdu = \sec^2 x\,dx, and

∫tan⁡2x sec⁡2x dx=∫u2 du=u33+c=tan⁡3x3+c.\int \tan^2 x\,\sec^2 x\,dx = \int u^2\,du = \frac{u^3}{3} + c = \frac{\tan^3 x}{3} + c.

Check: ddxtan⁡3x3=tan⁡2x⋅sec⁡2x\dfrac{d}{dx}\dfrac{\tan^3 x}{3} = \tan^2 x\cdot \sec^2 x.

Problem 2 · The Minus Sign in ∫tan⁡x dx\int \tan x\,dx

Evaluate ∫0π/4tan⁡x dx\displaystyle\int_0^{\pi/4} \tan x\,dx.

✅ Correct! −ln⁡(cos⁡π4)+ln⁡(cos⁡0)=−ln⁡12=ln⁡2=ln⁡22-\ln(\cos\tfrac{\pi}{4}) + \ln(\cos 0) = -\ln\tfrac{1}{\sqrt2} = \ln\sqrt2 = \tfrac{\ln 2}{2}.
❌ Check the sign. The antiderivative is −ln⁡∣cos⁡x∣-\ln|\cos x|, from sin⁡x dx=−du\sin x\,dx = -du. Since cos⁡π4<1\cos\tfrac{\pi}{4} < 1, ln⁡(cos⁡π4)\ln(\cos\tfrac{\pi}{4}) is negative, and the minus sign makes the answer positive, as it must be for a positive integrand.
❌ Close, but… cos⁡π4=12\cos\tfrac{\pi}{4} = \tfrac{1}{\sqrt2}, not 12\tfrac12, so the answer is ln⁡2\ln\sqrt2, half of ln⁡2\ln 2.
❌ Not quite. tan⁡π4=1\tan\tfrac{\pi}{4} = 1 is the value of ∫0π/4sec⁡2x dx\int_0^{\pi/4}\sec^2 x\,dx. The antiderivative of tan⁡x\tan x is −ln⁡∣cos⁡x∣-\ln|\cos x|.
❌ Not quite. Use ∫tan⁡x dx=−ln⁡∣cos⁡x∣+c\int \tan x\,dx = -\ln|\cos x| + c and evaluate between 00 and π/4\pi/4.
Show solution

With u=cos⁡xu = \cos x, du=−sin⁡x dxdu = -\sin x\,dx, the antiderivative is −ln⁡∣cos⁡x∣-\ln|\cos x|. On [0,π/4][0, \pi/4] the cosine is positive, so

∫0π/4tan⁡x dx=[−ln⁡(cos⁡x)]0π/4=−ln⁡12+ln⁡1=ln⁡2=ln⁡22≈0.347.\int_0^{\pi/4} \tan x\,dx = \Big[-\ln(\cos x)\Big]_0^{\pi/4} = -\ln\frac{1}{\sqrt2} + \ln 1 = \ln\sqrt2 = \frac{\ln 2}{2} \approx 0.347.

Problem 3 · The Sixth Power of Secant

Find ∫sec⁡6x dx\displaystyle\int \sec^6 x\,dx.

✅ Correct! sec⁡6x dx=(1+tan⁡2x)2sec⁡2x dx\sec^6 x\,dx = (1 + \tan^2 x)^2\sec^2 x\,dx becomes ∫(1+2u2+u4) du\int (1 + 2u^2 + u^4)\,du.
❌ Close, but… (1+u2)2=1+2u2+u4(1 + u^2)^2 = 1 + 2u^2 + u^4: the middle term carries a 22, so the tan⁡3x\tan^3 x term is 23tan⁡3x\tfrac{2}{3}\tan^3 x.
❌ Not quite. The power rule would need d(sec⁡x)=sec⁡xtan⁡x dxd(\sec x) = \sec x\tan x\,dx in the integrand, and there is no tan⁡x\tan x. Use u=tan⁡xu = \tan x instead.
❌ Not quite. That is ∫sec⁡4x dx\int \sec^4 x\,dx. After splitting off one sec⁡2x\sec^2 x, four secants remain, which is (1+tan⁡2x)2(1 + \tan^2 x)^2.
❌ Not quite. Split off sec⁡2x dx=du\sec^2 x\,dx = du, write the remaining sec⁡4x\sec^4 x as (1+tan⁡2x)2(1 + \tan^2 x)^2, and substitute u=tan⁡xu = \tan x.
Show solution

Keep one sec⁡2x\sec^2 x for dudu and rewrite the other four secants with the identity:

∫sec⁡6x dx=∫(sec⁡2x)2 sec⁡2x dx=∫(1+tan⁡2x)2sec⁡2x dx.\int \sec^6 x\,dx = \int (\sec^2 x)^2\,\sec^2 x\,dx = \int (1 + \tan^2 x)^2 \sec^2 x\,dx.

Let u=tan⁡xu = \tan x, du=sec⁡2x dxdu = \sec^2 x\,dx:

=∫(1+u2)2 du=∫(1+2u2+u4) du=u+2u33+u55+c.= \int (1 + u^2)^2\,du = \int (1 + 2u^2 + u^4)\,du = u + \frac{2u^3}{3} + \frac{u^5}{5} + c. ∫sec⁡6x dx=tan⁡x+2tan⁡3x3+tan⁡5x5+c.\int \sec^6 x\,dx = \tan x + \frac{2\tan^3 x}{3} + \frac{\tan^5 x}{5} + c.

Check: the derivative is sec⁡2x (1+2tan⁡2x+tan⁡4x)=sec⁡2x (1+tan⁡2x)2=sec⁡6x\sec^2 x\,(1 + 2\tan^2 x + \tan^4 x) = \sec^2 x\,(1 + \tan^2 x)^2 = \sec^6 x.

Problem 4 · A Definite Integral of the Secant

Evaluate ∫0π/4sec⁡x dx\displaystyle\int_0^{\pi/4} \sec x\,dx.

✅ Correct! ln⁡(sec⁡π4+tan⁡π4)−ln⁡(sec⁡0+tan⁡0)=ln⁡(2+1)−ln⁡1\ln(\sec\tfrac{\pi}{4} + \tan\tfrac{\pi}{4}) - \ln(\sec 0 + \tan 0) = \ln(\sqrt2 + 1) - \ln 1.
❌ Not quite. ln⁡2\ln\sqrt2 is ∫0π/4tan⁡x dx\int_0^{\pi/4}\tan x\,dx. The secant integrates to ln⁡∣sec⁡x+tan⁡x∣\ln|\sec x + \tan x|.
❌ Check the lower limit. At x=0x = 0, sec⁡0+tan⁡0=1+0=1\sec 0 + \tan 0 = 1 + 0 = 1, and ln⁡1=0\ln 1 = 0.
❌ Not quite. sec⁡π4−sec⁡0=2−1\sec\tfrac{\pi}{4} - \sec 0 = \sqrt2 - 1 would be ∫0π/4sec⁡xtan⁡x dx\int_0^{\pi/4}\sec x\tan x\,dx. The secant alone integrates to ln⁡∣sec⁡x+tan⁡x∣\ln|\sec x + \tan x|.
❌ Not quite. Use ∫sec⁡x dx=ln⁡∣sec⁡x+tan⁡x∣+c\int \sec x\,dx = \ln|\sec x + \tan x| + c at both limits.
Show solution

Since ddx(sec⁡x+tan⁡x)=sec⁡xtan⁡x+sec⁡2x=sec⁡x (sec⁡x+tan⁡x)\dfrac{d}{dx}(\sec x + \tan x) = \sec x\tan x + \sec^2 x = \sec x\,(\sec x + \tan x), the secant is the logarithmic derivative of sec⁡x+tan⁡x\sec x + \tan x, so ∫sec⁡x dx=ln⁡∣sec⁡x+tan⁡x∣+c\int \sec x\,dx = \ln|\sec x + \tan x| + c. On [0,π/4][0, \pi/4] the sum is positive:

∫0π/4sec⁡x dx=ln⁡(2+1)−ln⁡(1+0)=ln⁡(1+2)≈0.881.\int_0^{\pi/4} \sec x\,dx = \ln\big(\sqrt2 + 1\big) - \ln(1 + 0) = \ln\big(1 + \sqrt2\big) \approx 0.881.

Solved: 0 / 4