Solution:
Answer: 8
Observe that
x8−14x4−8x3−x2+1=(x8+2x4+1)−(16x4+8x3+x2)=(x4+4x2+x+1)(x4−4x2−x+1).
The polynomial x4+4x2+x+1 has no real roots. On the other hand, let P(x)=x4−4x2−x+1. Observe that P(−∞)=+∞>0,P(−1)=−1<0,P(0)=1>0, P(1)=−3<0,P(+∞)=+∞>0, so by the intermediate value theorem, P(x)=0 has four distinct real roots, which are precisely the real roots of the original degree 8 equation. By Vieta's formula on P(x),
r12+r22+r32+r42=(r1+r2+r3+r4)2−2⋅(i<j∑rirj)=02−2(−4)=8.