I found a simple question:- Find the minimum value of $x^2+\frac{1}{x^2}+4$ where $x\in R$
Now,By AM-GM inequality $$x^2+\frac{1}{x^2}\ge2$$$$x^2+\frac{1}{x^2}+4\ge6$$ Thus min. value $=6$
Second solution:-$$({x+\frac{1}{x}})^2\ge0$$$$\Rightarrow x^2+\frac{1}{x^2}+2\ge 0$$ $$\Rightarrow x^2+\frac{1}{x^2}+4\ge2$$ So min. value$=2$
Now answer from the book says min.$=2$ But I find a contradiction in the Second solution.
If min$=2$ $$x^2+\frac{1}{x^2}+2=0$$$$\Rightarrow x^2+\frac{1}{x^2}=-2$$ Sum of two squares can be negative only if $x^2$ is negative or $x$ is imaginary which is a contradiction to given statement $x\in R$. So answer must be 6.
Am I making a mistake somewhere or am I correct??
By AM-GM $$x^2+\frac{1}{x^2}+4\geq2\sqrt{x^2\cdot\frac{1}{x^2}}+4=6.$$ The equality occurs for $x=1$, which says that $6$ is a minimal value.
Now, about your question.
Indeed, we need to find a minimum of $$\left(x+\frac{1}{x}\right)^2+2,$$ but we can not say, that the minimum is $2$, because $x+\frac{1}{x}\neq0$ for all real $x$.
Id est, the equality in the inequality $$x^2+\frac{1}{x^2}+4\geq2$$ does not occur, but the inequality $$x^2+\frac{1}{x^2}+4\geq2$$ is true.
All this says that the minimum greater than $2$ and indeed, the minimum is $6$.