I found this question here (I recommend that you read the question and the highest-voted answer there) How to solve for $x$ in $x(x^3+\sin x \cos x)-\sin^2 x =0$? and the math below is an answer. I guess I have 2 questions in 1 here.
First, how did the guy suddenly realize that $$x^4+x\sin(x)\cos(x)−\sin^2(x)>x^2\sin^2(x)+\sin^2(x\cos(x)−\sin^2(x)$$ I don't see why this statement is necessarily true.
My second question: How did he construct, out of nowhere, a random inequality like this which ended up being useful? Thanks.