Tuesday, 9 June 2015

calculus - How to evaluate intppi/2isqrt1frac12cos2x+sinxsin2x;mathrmdx



Here is an integral from a very old math journal:
(https://www.jstor.org/stable/1967417)

ππ/2112cos2x+sinxsin2xdx
It appears the journal never published a solution to this problem.



My attempts:




  1. If we make the substitution t=cosx, then the integral equals
    011t22+2t(1t2)1t2dt
    However it appears impossible to integrate this function. Mathematica fails to evaluate both the indefinite and the definite integral.


  2. If we integrate this function numerically, we get 0.827760002939144239418157727592. The Inverse Symbolic Calculator returns nothing for this number. WolframAlpha gives nothing interesting either.





Update: The integral can be expressed as a double sum. However it converges slowly. I am now looking for a faster way to compute its value.


Answer



It is actually very easy to express the integral as an infinite series. Note that
1+x=1+k=1ckxk
ck=(1)k+1(2k3)!!k!2k
and
sinxsin2x=2sin2xcosx
Then

I=ππ/21+sinxsin2x12cos2xdx=ππ/21+k=1ck(2sin2xcosx12cos2x)kdx=π2+k=1ckπ/20(2cos2xsinx12sin2x)kdx=π2+k=1(1)kckπ/20km=0(km)(2cos2xsinx)m(12sin2x)kmdx
Now we have
(2cos2xsinx)m(12sin2x)km=22mksin2kmxcos2mx
Table of Integrals, Series, and Products (8th edition, p. 397, formula 3.621-5) tells me that
π/20sinmxcosnxdx=12B(m+12,n+12)

where B(a,b) is the complete Beta function. Therefore
I=π2+k=1(1)kckkm=0(km)22mk1B(2km+12,2m+12)
The numerical results seem to agree, but the series converges very slowly. The first 500 terms sum up to 0.82776000293935595965, which still has an error of 1012.



Because this is a double sum, we need O(n2) time to calculate the first n terms. I have not figured out a faster way to calculate.



Update: This problem oddly reminds me of a binomial sum problem on ProjectEuler (Problem 567). Note that the Beta function satisfies
B(a,b)=Γ(a)Γ(b)Γ(a+b)
For multiples of 1/2, we can compute the Gamma function explicitly
Γ(n2)={(n21)!n evenπ(n2)!!2n12n odd



Let us rewrite the integral as
I=π2k=1km=0dk,m
dk,m=(2k3)!!k!2k(km)22mk1B(2km+12,2m+12)
The calculation of the Beta function term will depend on the parity of m. It is easy to verify that
dk,2t+2dk,2t=4(k2t1)(k2t)(4t+1)(4t+3)(2k2t1)(k+t+1)(t+1)(2t+1)
dk,2t+3dk,2t+1=4(k2t2)(k2t1)(4t+3)(4t+5)(kt1)(2k+2t+3)(t+1)(2t+3)
dk+1,2tdk,2t=(2k2t+1)(2k1)8(k2t+1)(k+t+1)

dk+1,2t+1dk,2t+1=(2k1)(kt)2(k2t)(2k+2t+3)
From here I think it is possible to transform the double sum into a recurrence relation, using hypergeometric summation techniques. I will post results if I have time to do it.



Update: I tried Zeilberger's algorithm. It works but the results look very messy, and is probably not a good idea to get the numerical value of this series. Since Zeilberger's algorithm is a late 20th century invention, I do not think the original problem poser has a better way to calculate the integral, other than adding the series by hand. See Zeilberger's book (https://www.math.upenn.edu/~wilf/AeqB.html) for a description of the algorithm if you want to repeat the attempt.



Update again: I am very impressed by the numerical capabilities of Mathematica. It turns out that we can simply compute
I=E+O
E=t=0d2t,2t2F1(t+12,2t12;3t+1;12)
O=t=0d2t+1,2t+12F1(t+1,2t+12;3t+52;12)
Using Mathematica I summed up the first 450 terms in each series. The result is 0.827760002939144239418158294687, which has an error of 1023. I think this is the best we can extract out of this problem. I will stop working on it.



No comments:

Post a Comment

real analysis - How to find limhrightarrow0fracsin(ha)h

How to find lim without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...