Problem Statement:-
Find the set of real values of $x$ for which $$x^{(\log_{10}x)^2-3\log_{10}x+1}\gt1000$$
Correct Approach:-
Domain of $x^{(\log_{10}x)^2-3\log_{10}x+1}\implies x\gt0$
Now, $$x^{(\log_{10}x)^2-3\log_{10}x+1}\gt1000$$
Taking $\log_{10}$ on both sides, we get
$$((\log_{10}x)^2-3\log_{10}x+1)(\log_{10}x)\gt3$$
Let $z=\log_{10}{x}$
Hence, $(z^2-3z+1)z\gt3\implies z^3-3z^2+z-3\gt0$
Fortunately for factorising the polynomial we dont have to go too far we get the first factor at $z=3$. So, on factorising, we get $$(z-3)(z^2+1)\gt0$$
As, $\forall z\in\Bbb{R}.(z^2+1\gt0)$, hence $$z-3\gt0\implies z\gt3\implies \log_{10}x\gt3\implies x\gt1000$$
Incorrect Approach:-
Domain of $x^{(\log_{10}x)^2-3\log_{10}x+1}\implies x\gt0$
We also see that for $x=1$ the inequality is not satisfied, so we would not be eliminating any values from the interval satisfying the inequality by putting the condition $x\neq1$
Now, take $\log_{x}$ on both sides to get
$$((\log_{10}x)^2-3\log_{10}x+1)\gt\dfrac{3}{\log_{10}x}\\ \implies ((\log_{10}x)^2+1)\gt\dfrac{3}{\log_{10}x}+3\log_{10}x$$
Using $A.M.\ge G.M.$, we get $$((\log_{10}x)^2+1)\gt6\implies (\log_{10}x)^2\gt5\implies -\sqrt{5}\lt\log_{10}x\lt\sqrt5\\ \implies 10^{-\sqrt{5}}\lt x\lt10^{\sqrt5}$$
But, as we had excluded $1$ as a solution, so the interval satisfying the inequality comes out to be $x\in(10^{-\sqrt5},10^{\sqrt5})-\{1\}$
I have tried two different approaches to the problem, while one does provide the correct answer and the other doesn't but what is wrong with the incorrect approach.
One problem is that you can't use AM-GM to begin with, since at this point it hasn't been established that $\log_{10} x \ge 0$ and AM-GM only works for non-negative numbers.
The major problem with this step, however, is that you essentially need to prove $a \gt b$, but instead you use $a \gt b \gt c$ and prove $a \gt c$, yet this does not prove the original inequality $a > b$.
Consider for example how the same (wrong) logic could be used to prove the obviously false: $$4+4 \gt 1+8$$
$$4+4 \gt 2 \sqrt{8} = 4 \sqrt{2}$$
which is true, even though the inequality we needed to prove $8 \gt 9$ is false.