A shortcut for evaluating some log integrals from products and limits
F. M. S. Lima

TL;DR
This paper presents a simple, elementary method for exactly evaluating certain definite integrals involving logarithms of sine, cosine, and tangent functions, using manipulations of sums and Riemann sums, offering an alternative to traditional techniques.
Contribution
The paper introduces a novel elementary approach to evaluate specific log-trigonometric integrals and related integrals involving the gamma function, avoiding complex primitive searches.
Findings
Exact evaluations of key log-trigonometric integrals.
Method simplifies calculations without primitive search.
Application to gamma function integral.
Abstract
In this short paper, I introduce an elementary method for exactly evaluating the definite integrals , , , and in finite terms. The method consists in to manipulate the sums obtained from the logarithm of certain products of trigonometric functions at rational multiples of , putting them in the form of Riemann sums. As this method does not involve any search for primitives, it represents a good alternative to more involved integration techniques. As a bonus, I show how to apply the method for easily evaluating .
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNumerical Methods and Algorithms · Analytic Number Theory Research · Polynomial and algebraic computation
A shortcut for evaluating some log integrals from products and limits
F. M. S. Lima
Institute of Physics, University of Brasilia, P.O. Box 04455, 70919-970, Brasilia-DF, Brazil
Abstract
In this short paper, I introduce an elementary method for exactly evaluating the definite integrals , , , and in finite terms. The method consists in to manipulate the sums obtained from the logarithm of certain products of trigonometric functions at rational multiples of , putting them in the form of Riemann sums. As this method does not involve any search for primitives, it represents a good alternative to more involved integration techniques. As a bonus, I show how to apply the method for easily evaluating .
keywords:
Products of sines , Rational multiples of , Definite integrals
MSC:
26A06 , 26A42 , 08B25
††journal: : Int. J. Math. Educ. Sci. Technol.
1 Introduction
The simplicity of the functions , , and , as well as the fact they are continuous (even differentiable) except at some isolated points, suggests that the evaluation of the definite integrals , , , and via the Fundamental Theorem of Calculus should be a straightforward task,111 These integrals are, in fact, improper because each integrand has at least one infinite discontinuity in the integration interval. which is not true.222 Note that it is not possible to express the corresponding indefinite integrals in a finite, closed-form expression involving only elementary functions. The usual methods for the analytic evaluation of such integrals involve advanced integration techniques, such as to expand the integrand in a power series and then integrate it term-by-term (see Sec. 11.9 of Ref. [1]), or the evaluation of a suitable contour integral on the complex plane in view to apply the Cauchy’s residue theorem (see Secs. 4.1 and 4.2 of Ref. [2]). However, these methods present some disadvantages when applied to definite integrals of “log-trig” functions. The expansion of the integrand in a Maclaurin series, e.g., is not possible for and . Though this series expansion is possible for , it is difficult to determine a closed-form expression for the general term and then to recognize the number it represents. The evaluation of a contour integral on the complex plane has the inconveniences of requiring the choice of a suitable integration path, usually a difficult task, and yielding logarithms of complex (non-real) numbers and/or non-elementary transcendental functions (e.g., dilogarithm, elliptic, and hypergeometric functions), which often makes it obscure the final result since these functions are either unknown or badly-known for most students. These inconveniences are just what one finds by appealing to mathematical softwares. For instance, Maple (release 13) and Mathematica (release 7) both return the following ‘stodgy’ result for :
[TABLE]
where is the dilogarithm function.
In this work, the integrals , , , and are easily evaluated by applying the natural logarithm to certain products of trigonometric functions at rational multiples of , which yields sums that can be written in the form of Riemann sums. The closed-form expressions emerge when we take suitable limits (as the number of terms tends to infinity), without any search for primitives. I also show how the method can be used for easily evaluating .
2 Some products of trigonometric functions
Let me present the products of trigonometric functions at rational multiples of that will serve as the basis for my method.
In Appendix A.3 of Ref. [3], in presenting an elementary proof for the Euler result , the authors prove an identity involving , being a rational multiple of . By applying the well-known rule for the product of roots of a polynomial equation to
[TABLE]
where , , it is shown that
[TABLE]
By extracting the square-root of the inverse of each side, one finds
[TABLE]
In that appendix, we also find a proof for the following identity:
[TABLE]
From the symmetry relation , it is easy to deduce that
[TABLE]
valid for all , which implies that
[TABLE]
For a product of cosines, note that, , . By taking and applying this trigonometric identity on Eq. (3), one readily finds
[TABLE]
These are the trigonometric products needed for evaluating the integrals we are interested in here.
3 Evaluation of definite integrals from products
The general idea underlying my method is to take the logarithm of a product of positive terms, convert it into a sum of logarithms and then to put this sum in the form of a Riemann sum with equally-spaced subintervals, whose limit as the number of terms tends to infinity is a definite integral. Let us apply this procedure to the products of trigonometric functions in Eqs. (1)–(4).
For instance, by taking the logarithm of each side of Eq. (2), one has
[TABLE]
By dividing both sides by , one gets
[TABLE]
Now, let us define and . Equation (6) then reads
[TABLE]
Clearly, the sum at the left-hand side has the form of a Riemann sum in which the grid points are equally spaced by . By taking the limit as on both sides of this equation and noting that , which follows from L’Hopital rule, one has
[TABLE]
which means that
[TABLE]
The change of variable promptly yields
[TABLE]
When the above procedure is applied to Eq. (3) one finds that
[TABLE]
The limit as yields
[TABLE]
The change of variable yields
[TABLE]
Now, from the product of cosines in Eq. (4) one has
[TABLE]
The limit as yields
[TABLE]
The change of variable yields
[TABLE]
From the product of tangents in Eq. (1), one has
[TABLE]
By substituting (hence is an odd positive integer) and then dividing both sides by , one has
[TABLE]
where and . The limit as yields
[TABLE]
which means that
[TABLE]
The change of variable yields
[TABLE]
Surprisingly, this method also works in evaluating the ‘impossible’ integral , where is the Euler gamma function.333Here, the word impossible certainly reflects the opinion of most students. For this, let us add on both sides of Eq. (5), which yields
[TABLE]
This promptly simplifies to
[TABLE]
Now, let us make use of the reflection property , valid for all . By substituting this in Eq. (14) and then dividing both sides by , one finds that
[TABLE]
By taking the limit as , one finds
[TABLE]
Now, note that . By substituting in the latter integral, one finds
[TABLE]
which means that
[TABLE]
This nice evaluation appears on the cover of the gripping book Irresistible integrals, by Boros and Moll [4].
I left for the reader the less obvious task of using the identity
[TABLE]
valid for all positive integer and all , for evaluating the definite integral
[TABLE]
The proof of the trigonometric identity in Eq. (17) is proposed as an exercise in Ref. [3] (see its Appendix A.3, Ex. 6).
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] J. Stewart, Calculus - Early Transcendentals (6th ed.), Thomson, Belmont (USA), 2008.
- 2[2] M. J. Ablowitz and A. S. Fokas, Complex Variables (2nd ed.), Cambridge Univ. Press, New York, 2003.
- 3[3] I. Niven, H. S. Zuckerman, and H. L. Montgomery. An Introduction to the Theory of Numbers (5th ed.), Wiley, New York, 1991.
- 4[4] G. Boros and V. H. Moll, Irresistible Integrals , Cambridge Univ. Press, New York, 2004.
