Given,
sin−1(x2+2x+2x+1)−sin−1(x2+1x)=4π
⇒sin−1(x2+x+2x+1)=4π+sin−1x2+1x
⇒(x2+x+2x+1)=sin(4π+sin−1x2+1x)
⇒(x2+x+2x+1)=21×x2+11+21×x2+1x
⇒x2+x+2x+1=2x2+1x+1
⇒(x+1)(2x2+1−x2+x+2)=0
⇒x=−1 or x2+x+2=2⋅x2+1
Now solving, x2+x+2=2⋅x2+1 we get,
x2+x+2=2(x2+1)
⇒x2−x=0
⇒x=0,x=1 {rejected as x=1 will not satisfy the given equation}
Hence, S=0,1
Now solving,
n∈S∑(sin(x2+x+5)2π−cos(x2+x+5)π)
=(sin25π−cos5π+sin25π−cos5π)
=1−(−1)+1−(−1)=4