BBP Formula for Pi Proof

π=k=0116k(48k+128k+418k+518k+6)

The BBP formula was found using an integer relation algorithm. Proofs were found afterward and do not give insight into how the formula was found.

First consider the integral 01/2xr1dx1x8 for some positive integer r. Then we can evaluate the integral:

01/2xr1dx1x8=01/2xr111x8dx=01/2xr1(1+x8+x16+x24+)dx=01/2(k=0x8k+r1)dx=[k=0x8k+r8k+r]021/2=k=02(1/2)(8k+r)8k+r=2r/2k=024k8k+r=2r/2k=016k8k+r

Now let S(r)=2r/2k=016k8k+r=01/2xr1dx1x8. We can rewrite the BBP summation and turn it into an integral.

k=0116k(48k+128k+418k+518k+6)=4k=016k8k+12k=016k8k+4k=016k8k+5k=016k8k+6=421/2S(1)224/2S(4)25/2S(5)26/2S(6)=42S(1)+8S(4)42S(5)8S(6)=01/2428x342x48x51x8dx

Next, make the substitution y=2x. This changes the integration bounds to [0,1].

01/2428x342x48x51x8dx=014222y32y42y51y8/16dy2=0142y3y4y51y8/16dy=160142y3y4y516y8dy=1601y5+y4+2y34y816dy

Now for some factoring, we can do the following for the denominator. The factoring of y4+4 is not the easiest to do.

y816=(y4+4)(y44)=(y4+4)(y2+2)(y22)=(y2+2y+2)(y22y+2)(y2+2)(y22)

Then for the numerator, first we can find the factor y1 with the rational root theorem. The other part of factoring is not quite easy.

y5+y4+2y34=(y1)(y4+2y3+4y2+4y+4)=(y1)(y2+2)(y2+2y+2)

Now the integral can be simplified.

1601(y1)(y2+2)(y2+2y+2)(y2+2y+2)(y22y+2)(y2+2)(y22)dy=1601y1(y22y+2)(y22)dy

The next step is to use partial fraction decomposition. We need constants A,B,C,D such that

Ay+By22y+2+Cy+Dy22=y1(y22y+2)(y22)(Ay+B)(y22)+(Cy+D)(y22y+2)=y1Ay3+By22Ay2B+Cy3+Dy22Cy22Dy+2Cy+2D=y1(A+C)y3+(B2C+D)y2+(2A+2C2D)y+(2B+2D)=y1

This gives us the following linear system.

[1010012120220202][ABCD]=[0011]

After solving it, the constants are (A,B,C,D)=(1/4,1/2,1/4,0). The integral can be simplified further.

1601(Ay+By22y+2+Cy+Dy22)dy=014y+8y22y+2dy+014yy22dy=014y22y+2dy+014y+4y22y+2dy+014yy22dy=014y22y+2dy201d(y22y+2)y22y+2+201d(y22)y22=014y22y+2dy2[ln|y22y+2|]01+2[ln|y22|]01=014y22y+2dy2(ln(1)ln(2))+2(ln(1)ln(2))=014y22y+2dy

Now we have one last integral to evaluate.

401dyy22y+2=401dy(y1)2+1=401d(y1)(y1)2+12=4arctan(y1)|01=4(arctan(0)arctan(1))=4(0+π/4)=π

This completes the proof. The BBP formula proof does not require any very advanced techniques. It is accessible to those who understand material in typical college calculus. The main difficulties are rewriting the summation as an integral using the S(r) function at the beginning and factoring the high degree polynomials after the change of variables to y.