Integral of the secant function

From HandWiki
Short description: Antiderivative of the secant function
A graph of the secant function (red) and its antiderivative (blue)

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θ={12ln⁡1+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.[1]

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π:[2]

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θ=12ln⁡1+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=tan⁡12θ 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)|=|tan⁡12θ+tan⁡14π1−tan⁡12θtan⁡14π|=|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=ln⁡tan(φ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.[3] He applied his result to a problem concerning nautical tables.[1] In 1599, Edward Wright evaluated the integral by numerical methods – what today we would call Riemann sums.[4] He wanted the solution for the purposes of cartography – specifically for constructing an accurate Mercator projection.[3] 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[3]

∫0φsec⁡θdθ=ln⁡tan⁡(φ2+π4).

This conjecture became widely known, and in 1665, Isaac Newton was aware of it.[5]

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.[6]

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.[1]

By partial fractions and a substitution (Barrow's approach)

Although Gregory proved the conjecture in 1668 in his Exercitationes Geometricae,[7] 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,[8] gave the first "intelligible" proof, though even that was "couched in the geometric idiom of the day."[3] Barrow's proof of the result was the earliest use of partial fractions in integration.[3] 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θ=12ln⁡1+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=tan⁡12θ,[9]

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,[10] 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

∫11−u2du.

The reduced integral can be evaluated by substituting u = tanh t, du = sech2 t dt, and then using the identity 1 − tanh2 t = sech2 t.

∫sech2t1−tanh2tdt=∫sech2tsech2tdt=∫dt.

The integral is now reduced to a simple integral, and back-substituting gives

∫dt=t+C=artanh⁡u+C=artanh⁡(sin⁡θ)+C,

which is one of the hyperbolic forms of the integral.

A similar strategy can be used to integrate the cosecant, hyperbolic secant, and hyperbolic cosecant functions.

Other hyperbolic forms

It is also possible to find the other two hyperbolic forms directly, by again multiplying and dividing by a convenient term:

∫sec⁡θdθ=∫sec2θsec⁡θdθ=∫sec2θ±1+tan2θdθ,

where ± stands for sgn⁡(cos⁡θ) because 1+tan2θ=|sec⁡θ|. Substituting u = tan θ, du = sec2 θ dθ, reduces to a standard integral:

∫1±1+u2du=±arsinh⁡u+C=sgn⁡(cos⁡θ)arsinh⁡(tan⁡θ)+C,

where sgn is the sign function.

Likewise:

∫sec⁡θdθ=∫sec⁡θtan⁡θtan⁡θdθ=∫sec⁡θtan⁡θ±sec2θ−1dθ.

Substituting u = |sec θ|, du = |sec θ| tan θ dθ, reduces to a standard integral:

∫1±u2−1du=±arcosh⁡u+C=sgn⁡(sin⁡θ)arcosh⁡|sec⁡θ|+C.

Using complex exponential form

Under the substitution z=eiθ,

θ=−iln⁡z,dθ=−izdz,cos⁡θ=z+z−12,sin⁡θ=z−z−12i,sec⁡θ=2z+z−1,tan⁡θ=−iz−z−1z+z−1,sec⁡θ+tan⁡θ=−i2i+z−z−1z+z−1=−i(z+i)(1+iz−1)(z−i)(1+iz−1)=−iz+iz−i

So the integral can be solved as:

∫sec⁡θdθ=∫2z+z−1−izdzz=eiθ=∫−2iz2+1dz=∫1z+i−1z−idzpartial fraction decomposition=ln⁡(z+i)−ln⁡(z−i)+C=ln⁡z+iz−i+C=ln⁡(i(sec⁡θ+tan⁡θ))+C=ln⁡(sec⁡θ+tan⁡θ)+ln⁡i+C

Because the constant of integration can be anything, the additional constant term can be absorbed into it. Finally, if theta is real-valued, we can indicate this with absolute value brackets in order to get the equation into its most familiar form:

∫sec⁡θdθ=ln⁡|tan⁡θ+sec⁡θ|+C

Gudermannian and Lambertian

The Gudermannian function relates the area of a circular sector to the area of a hyperbolic sector, via a common stereographic projection. If twice the area of the blue hyperbolic sector is ψ, then twice the area of the red circular sector is ϕ = gd ψ. Twice the area of the purple triangle is the stereographic projection s = tan ⁠1/2⁠ϕ = tanh ⁠1/2⁠ψ. The blue point has coordinates (cosh ψ, sinh ψ). The red point has coordinates (cos ϕ, sin ϕ). The purple point has coordinates (0, s).

The integral of the hyperbolic secant function defines the Gudermannian function:

∫0ψsech⁡udu=gd⁡ψ.

The integral of the secant function defines the Lambertian function, which is the inverse of the Gudermannian function:

∫0φsec⁡tdt=lam⁡φ=gd−1φ.

These functions are encountered in the theory of map projections: the Mercator projection of a point on the sphere with longitude λ and latitude ϕ may be written[11] as:

(x,y)=(λ,lam⁡φ).

See also

Notes

  1. ↑ 1.0 1.1 1.2 Stewart, James (2012). "Section 7.2: Trigonometric Integrals". Calculus - Early Transcendentals. Cengage Learning. pp. 475-6. ISBN 978-0-538-49790-9. 
  2. ↑ For example this form is used in Karney, Charles F.F. (2011). "Transverse Mercator with an accuracy of a few nanometers.". Journal of Geodesy 85: 475-485. 
  3. ↑ 3.0 3.1 3.2 3.3 3.4 V. Frederick Rickey and Philip M. Tuchinsky, An Application of Geography to Mathematics: History of the Integral of the Secant in Mathematics Magazine, volume 53, number 3, May 1980, pages 162–166.
  4. ↑ Edward Wright, Certaine Errors in Navigation, Arising either of the ordinaire erroneous making or vsing of the sea Chart, Compasse, Crosse staffe, and Tables of declination of the Sunne, and fixed Starres detected and corrected, Valentine Simms, London, 1599.
  5. ↑ H. W. Turnbull, editor, The Correspondence of Isaac Newton, Cambridge University Press, 1959–1960, volume 1, pages 13–16 and volume 2, pages 99–100.

    D. T. Whiteside, editor, The Mathematical Papers of Isaac Newton, Cambridge University Press, 1967, volume 1, pages 466–467 and 473–475.

  6. ↑ Feldman, Joel. "Integration of sec x and sec3 x". https://www.math.ubc.ca/~feldman/m121/secx.pdf. 

    "Integral of Secant". https://ocw.mit.edu/courses/18-01sc-single-variable-calculus-fall-2010/resources/mit18_01scf10_ses71c/. 

  7. ↑ Gregory, James (1668). "Analogia Inter Lineam Meridianam Planispherii Nautici & Tangentes Artificiales Geometricè Demonstrata, &c." (in la). Exercitationes Geometricae. Moses Pitt. pp. 14–24. https://archive.org/details/ita-bnc-mag-00001357-002/page/n27/. 
  8. ↑ Barrow, Isaac (1674). "Lectiones geometricae: XII, Appendicula I". Lectiones Opticae & Geometricae. Typis Guilielmi Godbid. pp. 110–114. https://archive.org/details/lectionesoptic00barr/page/110/.  In English, Barrow, Isaac (1916). "Lecture XII, Appendix I". The Geometrical Lectures of Isaac Barrow. Open Court. pp. 165–169. https://archive.org/details/geometricallectu00barr/page/165. 
  9. ↑ Stewart, James (2012). "Section 7.4: Integration of Rational Functions by Partial Fractions". Calculus: Early Transcendentals (7th ed.). Belmont, CA, USA: Cengage Learning. pp. 493. ISBN 978-0-538-49790-9. https://archive.org/details/singlevariableca00stew_704. 
  10. ↑ Hardy, Michael (2013). "Efficiency in Antidifferentiation of the Secant Function". American Mathematical Monthly 120 (6): 580. https://www.tandfonline.com/doi/abs/10.4169/amer.math.monthly.120.06.580. 
  11. ↑ Conformal Projections Based on Elliptic Functions. Cartographica Monographs. 16. Toronto: B. V. Gutsell, York University. 1976. ISBN 0-919870-16-3. https://archive.org/details/conformalproject0000leel.  Supplement No. 1 to The Canadian Cartographer 13.

References