Ta có \(x+\frac{1}{x}=5\)
\(\Rightarrow\left(x+\frac{1}{x}\right)^{^{ }2}=5^2=25\)
\(\Leftrightarrow x^{^{ }2}+2\cdot x\cdot\frac{1}{x}+\frac{1}{x^2}=25\)
\(\Leftrightarrow x^2+\frac{1}{x^2}=25-2\cdot x\cdot\frac{1}{x}=25-2=23\)
Vậy \(x^2+\frac{1}{x^2}=23\)