I have this polynomial $x^3+x^2(3-4n)+x(4n^2-6n)-2n^2+6n-4=0$
If I put $n=3$, I get it as $x^3-9x^2+18x-4$
On computing the roots of $x^3+x^2(3-4n)+x(4n^2-6n)-2n^2+6n-4=0$ for any $n$ using Wolfram Alpha I am getting imaginary roots, here.
But if I put $n=3$ I get roots as real, see here.
Can someone please explain why the roots are real as well as imaginary?

Whether a cubic equation $x^3+bx^2+cx+d = 0$ has imaginary roots depends on its discriminant, which is defined as
$$\Delta = 18bcd-4b^3d+b^2c^2 - 4c^3-27d^2$$
There are a pair of imaginary roots only if $\Delta < 0$; otherwise, the roots are all real.
In the case of $n=3$, the discriminant is positive, hence all real roots.