In calculus, the integral of the secant function can be evaluated using a variety of methods and there are multiple ways of expressing the antiderivative, all of which can be shown to be equivalent via trigonometric identities,
∫secθdθ={12ln1+sinθ1−sinθ+Cln|secθ+tanθ|+Cln|tan(θ2+π4)|+C This formula is useful for evaluating various trigonometric integrals. In particular, it can be used to evaluate the integral of the secant cubed, which, though seemingly special, comes up rather frequently in applications. The definite integral of the secant function starting from 0 is the inverse Gudermannian function, gd−1. For numerical applications, all of the above expressions result in loss of significance for some arguments. An alternative expression in terms of the inverse hyperbolic sine arsinh is numerically well behaved for real arguments |ϕ|<12π:
gd−1ϕ=∫0ϕsecθdθ=arsinh(tanϕ). The integral of the secant function was historically one of the first integrals of its type ever evaluated, before most of the development of integral calculus. It is important because it is the vertical coordinate of the Mercator projection, used for marine navigation with constant compass bearing.
Proof that the different antiderivatives are equivalent
Trigonometric forms Three common expressions for the integral of the secant,
∫secθdθ=12ln1+sinθ1−sinθ+C=ln|secθ+tanθ|+C=ln|tan(θ2+π4)|+C, are equivalent because
1+sinθ1−sinθ=|secθ+tanθ|=|tan(θ2+π4)|. Proof: we can separately apply the tangent half-angle substitution t=tan12θ to each of the three forms, and show them equivalent to the same expression in terms of t. Under this substitution cosθ=(1−t2)/(1+t2) and sinθ=2t/(1+t2). First,
1+sinθ1−sinθ=1+2t1+t21−2t1+t2=1+t2+2t1+t2−2t=(1+t)2(1−t)2=|1+t1−t|. Second,
|secθ+tanθ|=|1cosθ+sinθcosθ|=|1+t21−t2+2t1−t2|=|(1+t)2(1+t)(1−t)|=|1+t1−t|. Third, using the tangent addition identity tan(ϕ+ψ)=(tanϕ+tanψ)/(1−tanϕtanψ),
|tan(θ2+π4)|=|tan12θ+tan14π1−tan12θtan14π|=|t+11−t⋅1|=|1+t1−t|. So all three expressions describe the same quantity. The conventional solution for the Mercator projection ordinate may be written without the absolute value signs since the latitude φ lies between −12π and 12π,
y=lntan(φ2+π4).
Hyperbolic forms Let
ψ=ln(secθ+tanθ),eψ=secθ+tanθ,sinhψ=eψ−e−ψ2=tanθ,coshψ=1+sinh2ψ=|secθ|,tanhψ=sinθ. Therefore,
∫secθdθ=artanh(sinθ)+C=sgn(cosθ)arsinh(tanθ)+C=sgn(sinθ)arcosh|secθ|+C.
History
The integral of the secant function was one of the "outstanding open problems of the mid-seventeenth century", solved in 1668 by James Gregory. He applied his result to a problem concerning nautical tables. In 1599, Edward Wright evaluated the integral by numerical methods – what today we would call Riemann sums. He wanted the solution for the purposes of cartography – specifically for constructing an accurate Mercator projection. In the 1640s, Henry Bond, a teacher of navigation, surveying, and other mathematical topics, compared Wright's numerically computed table of values of the integral of the secant with a table of logarithms of the tangent function, and consequently conjectured that
∫0φsecθdθ=lntan(φ2+π4). This conjecture became widely known, and in 1665, Isaac Newton was aware of it.
Evaluations
By a standard substitution (Gregory's approach) A standard method of evaluating the secant integral presented in various references involves multiplying the numerator and denominator by sec θ + tan θ and then using the substitution u = sec θ + tan θ. This substitution can be obtained from the derivatives of secant and tangent added together, which have secant as a common factor. Starting with
ddθsecθ=secθtanθandddθtanθ=sec2θ, adding them gives
ddθ(secθ+tanθ)=secθtanθ+sec2θ=secθ(tanθ+secθ). The derivative of the sum is thus equal to the sum multiplied by sec θ. This enables multiplying sec θ by sec θ + tan θ in the numerator and denominator and performing the following substitutions:
u=secθ+tanθdu=(secθtanθ+sec2θ)dθ. The integral is evaluated as follows:
∫secθdθ=∫secθ(secθ+tanθ)secθ+tanθdθ=∫sec2θ+secθtanθsecθ+tanθdθu=secθ+tanθ=∫1ududu=(secθtanθ+sec2θ)dθ=ln|u|+C=ln|secθ+tanθ|+C, as claimed. This was the formula discovered by James Gregory.
By partial fractions and a substitution (Barrow's approach) Although Gregory proved the conjecture in 1668 in his Exercitationes Geometricae, the proof was presented in a form that renders it nearly impossible for modern readers to comprehend; Isaac Barrow, in his Lectiones Geometricae of 1670, gave the first "intelligible" proof, though even that was "couched in the geometric idiom of the day." Barrow's proof of the result was the earliest use of partial fractions in integration. Adapted to modern notation, Barrow's proof began as follows:
∫secθdθ=∫1cosθdθ=∫cosθcos2θdθ=∫cosθ1−sin2θdθ Substituting u = sin θ, du = cos θ dθ, reduces the integral to
∫11−u2du=∫1(1+u)(1−u)du=∫12(11+u+11−u)dupartial fraction decomposition=12(ln|1+u|−ln|1−u|)+C=12ln|1+u1−u|+C Therefore,
∫secθdθ=12ln1+sinθ1−sinθ+C, as expected. Taking the absolute value is not necessary because 1+sinθ and 1−sinθ are always non-negative for real values of θ.
By the tangent half-angle substitution
Standard Under the tangent half-angle substitution t=tan12θ,
sinθ=2t1+t2,cosθ=1−t21+t2,dθ=21+t2dt,tanθ=sinθcosθ=2t1−t2,secθ=1cosθ=1+t21−t2,secθ+tanθ=1+2t+t21−t2=1+t1−t. Therefore the integral of the secant function is
∫secθdθ=∫(1+t21−t2)(21+t2)dtt=tanθ2=∫2(1−t)(1+t)dt=∫(11+t+11−t)dtpartial fraction decomposition=ln|1+t|−ln|1−t|+C=ln|1+t1−t|+C=ln|secθ+tanθ|+C, as before.
Non-standard The integral can also be derived by using a somewhat non-standard version of the tangent half-angle substitution, which is simpler in the case of this particular integral, published in 2013, is as follows:
x=tan(π4+θ2)2x1+x2=2tan(π4+θ2)sec2(π4+θ2)=2sin(π4+θ2)cos(π4+θ2)=sin(π2+θ)=cosθby the double-angle formuladx=12sec2(π4+θ2)dθ=12(1+x2)dθdθ=21+x2dx. Substituting:
∫secθdθ=∫1cosθdθ=∫1+x22x⋅21+x2dx=∫1xdx=ln|x|+C=ln|tan(π4+θ2)|+C.
By two successive substitutions The integral can also be solved by manipulating the integrand and substituting twice. Using the definition sec θ = 1/cos θ and the identity cos2 θ + sin2 θ = 1, the integral can be rewritten as
∫secθdθ=∫1cosθdθ=∫cosθcos2θdθ=∫cosθ1−sin2θdθ. Substituting u = sin θ, du = cos θ dθ reduces the integral to
… excerpt ends here. Continue reading the full article.


