Integrating Product of Sines

Calculus Level 5

0 2 π ( k = 1 2020 sin ( k x ) ) d x \int_0^{2\pi} \left(\prod_{k=1}^{2020} \sin(k x) \right) \, dx

The integral above can be expressed as M π 2 N \dfrac{M\pi}{2^N} , where M M and N N are positive integers with M M odd. What is M + N M+N ?

Inspiration .


The answer is 985902544.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Mark Hennings
Jul 24, 2020

The finite product j = 1 2 N sin ( j x ) \prod_{j=1}^{2N} \sin(jx) can be written as a sum of cosines, with j = 1 2 N sin ( j x ) j 0 a N , j cos ( j x ) \prod_{j=1}^{2N} \sin(jx) \; \equiv \; \sum_{j\ge 0} a_{N,j}\cos(jx) in which case we have the integral 0 2 π j = 1 2 N sin ( j x ) d x = 2 π a N , 0 \int_0^{2\pi} \prod_{j=1}^{2N} \sin(jx)\,dx \; =\; 2\pi a_{N,0} We note that sin ( 2 N 1 ) x sin 2 N x 1 2 [ cos x cos ( 4 N 1 ) x ] \sin(2N-1)x\,\sin2Nx \; \equiv \; \tfrac12\big[\cos x - \cos(4N-1)x\big] and hence j 0 a N , j cos ( j x ) 1 2 [ cos x cos ( 4 N 1 ) x ] j 0 a N 1 , j cos ( j x ) 1 4 j 0 a N 1 , j [ cos ( j + 1 ) x + cos ( j 1 ) x cos ( j + 4 N 1 ) x cos ( j 4 N + 1 ) x ] \begin{aligned} \sum_{j \ge 0}a_{N,j}\cos(jx) & \equiv \; \frac12\big[\cos x - \cos(4N-1)x\big]\sum_{j \ge 0} a_{N-1,j} \cos(jx) \\ & \equiv \; \frac14\sum_{j \ge 0} a_{N-1,j}\big[\cos(j+1)x + \cos(j-1)x - \cos(j+4N-1)x - \cos(j - 4N+1)x\big] \end{aligned} and hence we can write a N , j = 4 N b N , j a_{N,j} \; = \; 4^{-N}b_{N,j} where j 0 b N , j cos ( j x ) j 0 b N 1 , j [ cos ( j + 1 ) x + cos j 1 x cos ( j + 4 N 1 ) x cos j 4 N + 1 x ] \sum_{j \ge 0}b_{N,j} \cos(jx) \; \equiv \; \sum_{j \ge 0}b_{N-1,j}\big[\cos(j+1)x + \cos|j-1|x - \cos(j+4N-1)x - \cos|j-4N+1|x\big] and we have b 0 , 0 = 1 b_{0,0}=1 with b 0 , j = 0 b_{0,j} = 0 for j 1 j \ge 1 .

It is a simple matter to run a computer programme to calculate b 1010 , 0 b_{1010,0} . The maximum required value of j j in b N , j b_{N,j} is j = 1 N ( 4 j 1 ) = N ( 2 N + 1 ) \sum_{j=1}^N(4j-1) = N(2N+1) , so j 2041210 j \le 2041210 when N = 1010 N = 1010 , so we only need a finite-dimensional array b i , j b_{i,j} to do the calculations. The end result is b 1010 , 0 = 1574408464 b_{1010,0} = 1574408464 , which makes the desired integral 2 π a 1010 , 0 = 2 π × 2 4 × 985900529 2 2020 = 985900529 π 2 2015 2\pi a_{1010,0} \; = \; \frac{2\pi \times 2^4 \times 985900529}{2^{2020}} \; = \; \frac{985900529\pi}{2^{2015}}

The answer is 985900529 + 2015 = 985902544 985900529 + 2015 = \boxed{985902544} .

Finding the coefficient b N , 0 b_{N,0} is a very hard problem. It is related to the problem of determining the number of subsets A A of { 1 , 2 , . . . , 2 N } \{1,2,...,2N\} such that both A A and its complement have the same sum. The equal-sum subset problem (for a general set of integers) is NP-hard.

@Mark Hennings , we really liked your comment, and have converted it into a solution.

Brilliant Mathematics Staff - 10 months, 3 weeks ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...