\(x^2+\frac{1}{x^2}=7\Rightarrow\left(x^2+\frac{1}{x^2}\right)^2=49\Leftrightarrow x^4+2.x^2.\frac{1}{x^2}+\frac{1}{x^4}=49\Leftrightarrow x^4+2+\frac{1}{x^4}=49\)
\(\Leftrightarrow x^4+\frac{1}{x^4}=47\Rightarrow\left(x^4+\frac{1}{x^4}\right)^2=47^2\)
\(\Leftrightarrow x^8+2.x^4.\frac{1}{x^4}+\frac{1}{x^8}=2209\Rightarrow x^8+2+\frac{1}{x^8}=2209\Rightarrow x^8+\frac{1}{x^8}=2209-2=2207\)