Integral of secant cubed explained

The integral of secant cubed is a frequent and challenging[1] indefinite integral of elementary calculus:

\begin\int \sec^3 x \, dx &= \tfrac12\sec x \tan x + \tfrac12 \int \sec x\, dx + C \\[6mu] &= \tfrac12(\sec x \tan x + \ln \left|\sec x + \tan x\right|) + C \\[6mu] &= \tfrac12(\sec x \tan x + \operatorname^ x) + C, \qquad |x| < \tfrac12\pi\end

where \operatorname^ is the inverse Gudermannian function, the integral of the secant function.

There are a number of reasons why this particular antiderivative is worthy of special attention:

\int\sqrt{a2+x2}dx,

where

a

is a constant. In particular, it appears in the problems of:

Derivations

Integration by parts

This antiderivative may be found by integration by parts, as follows:[2]

\int\sec3xdx=\intudv=uv-\intvdu

where

u=\secx,dv=\sec2xdx,v =\tanx,du=\secx\tanxdx.

Then

\begin{align} \int\sec3xdx &=\int(\secx)(\sec2x)dx\\ &=\secx\tanx-\int\tanx(\secx\tanx)dx\\ &=\secx\tanx-\int\secx\tan2xdx\\ &=\secx\tanx-\int\secx(\sec2x-1)dx\\ &=\secx\tanx-\left(\int\sec3xdx-\int\secxdx\right)\\ &=\secx\tanx-\int\sec3xdx+\int\secxdx. \end{align}

Next add \int\sec^3 x \,dx to both sides:

\begin{align} 2\int\sec3xdx &=\secx\tanx+\int\secxdx\\ &=\secx\tanx+ln\left|\secx+\tanx\right|+C, \end{align}

using the integral of the secant function, \int \sec x \,dx = \ln \left|\sec x + \tan x\right| + C.

Finally, divide both sides by 2:

\int\sec3xdx =\tfrac12(\secx\tanx+ln\left|\secx+\tanx\right|)+C,

which was to be derived. A possible mnemonic is: "The integral of secant cubed is the average of the derivative and integral of secant".

Reduction to an integral of a rational function

\int\sec3xdx =\int

dx
\cos3x

=\int

\cosxdx
\cos4x

=\int

\cosxdx
(1-\sin2x)2

=\int

du
(1-u2)2

where

u=\sinx

, so that

du=\cosxdx

. This admits a decomposition by partial fractions:
1
(1-u2)2

=

1
(1+u)2(1-u)2

=

1
4(1+u)

+

1
4(1+u)2

+

1
4(1-u)

+

1
4(1-u)2

.

Antidifferentiating term-by-term, one gets

\begin{align} \int\sec3xdx &=\tfrac14ln|1+u|-

1
4(1+u)

-\tfrac14ln|1-u|+

1
4(1-u)

+C\\[6pt] &=\tfrac14lnl|

1+u
1-u

l|+

u
2(1-u2)

+C\\[6pt] &=\tfrac14lnl|

1+\sinx
1-\sinx

l|+

\sinx
2\cos2x

+C\\[6pt] &=\tfrac14ln\left|

1+\sinx
1-\sinx

\right|+\tfrac12\secx\tanx+C\\[6pt] &=\tfrac14ln\left|

(1+\sinx)2
1-\sin2x

\right|+\tfrac12\secx\tanx+C\\[6pt] &=\tfrac14ln\left|

(1+\sinx)2
\cos2x

\right|+\tfrac12\secx\tanx+C\\[6pt] &=\tfrac12ln\left|

1+\sinx
\cosx

\right|+\tfrac12\secx\tanx+C\\[6pt] &=\tfrac12(ln|\secx+\tanx|+\secx\tanx)+C. \end{align}

Hyperbolic functions

Integrals of the form:

\int\secnx\tanmxdx

can be reduced using the Pythagorean identity if

n

is even or

n

and

m

are both odd. If

n

is odd and

m

is even, hyperbolic substitutions can be used to replace the nested integration by parts with hyperbolic power-reducing formulas.

\begin{align} \secx&=\coshu\\[6pt] \tanx&=\sinhu\\[6pt] \sec2xdx&=\coshuduor\secx\tanxdx=\sinhudu\\[6pt] \secxdx&=duordx=\operatorname{sech}udu\\[6pt] u&=\operatorname{arcosh}(\secx)=\operatorname{arsinh}(\tanx)=ln|\secx+\tanx| \end{align}

Note that

\int\secxdx=ln|\secx+\tanx|

follows directly from this substitution.

\begin{align} \int\sec3xdx &=\int\cosh2udu\\[6pt] &=\tfrac12\int(\cosh2u+1)du\\[6pt] &=\tfrac12\left(\tfrac12\sinh2u+u\right)+C\\[6pt] &=\tfrac12(\sinhu\coshu+u)+C\\[6pt] &=\tfrac12(\secx\tanx+ln\left|\secx+\tanx\right|)+C \end{align}

Higher odd powers of secant

Just as the integration by parts above reduced the integral of secant cubed to the integral of secant to the first power, so a similar process reduces the integral of higher odd powers of secant to lower ones. This is the secant reduction formula, which follows the syntax:

\int\secnxdx =

\secn-2x\tanx
n-1

+

n-2
n-1

\int\secn-2xdx    (forn\ne1)

Even powers of tangents can be accommodated by using binomial expansion to form an odd polynomial of secant and using these formulae on the largest term and combining like terms.

See also

Notes and References

  1. Book: Spivak, Michael. Michael Spivak

    . Michael Spivak . Calculus. registration. 2008. Integration in Elementary Terms . This is a tricky and important integral that often comes up. . 382.

  2. Book: Stewart, James. James Stewart (mathematician)

    . James Stewart (mathematician). Calculus - Early Transcendentals. Cengage Learning. 2012. 978-0-538-49790-9. United States. 475–6. Section 7.2: Trigonometric Integrals.