I was able to verify with Wolfram Alpha that $x^6-3x^2+1=0$ has $4$ real solutions.
However, how would you answer this question without using a computer program?
I was able to verify with Wolfram Alpha that $x^6-3x^2+1=0$ has $4$ real solutions.
However, how would you answer this question without using a computer program?
Let $z=x^2$, then $p(z):=z^3-3z+1$ is a cubic and has one or three roots.
The extrema satisfy $3z^2-3=0$, hence $z=\pm1$, giving the values $p(-1)=3,p(1)=-1$ and the three roots are real. As $p(0)=1$, two of the roots are positive.
Hence there are two complex solutions in $x$ and four real ones.
It is enough to show that the cubic polynomial $x^3-3x+1$ has exactly two positive real roots.
This is indeed a quite famous polynomial, related to the construction of the regular 9-gon.
The discriminant of $x^3-3x+1$ is $81>0$, ensuring the existence of three simple real roots.
At least two of these roots are positive, since $f(x)=x^3-3x+1$ changes its sign over $(0,1)$ and over $(1,2)$, too. On the other hand they cannot be all positive, since the sum of the roots is zero by Vieta's theorem. We are done: $x^6-3x^2+1$ has exactly four real roots, two of them being positive, the other two being negative (no wonder, since $x^6-3x^2+1$ is an even function).
If $f(y)=y^3-3y+1$ then $f(-2)<0, f(0)>0, f(1)<0, f(2)>0.$ So $f(y)=0$ has three real roots, with one negative root. Thus $f(x^2)=0$ has four real roots, two for each positive root of $f.$