4. 8 .
As shown in Figure 5, establish a Cartesian coordinate system.
Let the equation of the circle be x2+y2=r2.
Then the coordinates of the vertices of the square are
A(−r,−r),B(r,−r),C(r,r),D(−r,r).
If P(rcosθ,rsinθ), then the slopes of the lines PA,PB,PC, and PD are respectively
kPA=1+cosθ1+sinθ,kPB=−1−cosθ1+sinθ,kPC=1−cosθ1−sinθ,kPD=−1+cosθ1−sinθ. Therefore, tan2α=(1+kPAkPCkPC−kPA)2=4(cosθ−sinθ)2, tan2β=(1+kPBkPDkPD−kPB)2=4(cosθ+sinθ)2.
Therefore, tan2α+tan2β=8.