People explained how to do this in this particular situation, but to do this for general cubic polynomials, you need to look at the cubic discriminant, which, for $ax^{3}+bx^{2}+cx+d$, is:
$$b^{2}c^{2}-4ac^{3}-4b^{3}d-27a^{2}d^{2}+18abcd$$
For real cubic polynomials, the discriminant is non-negative if and only if the roots are all real.
A common special case (like yours) is $a = 1$ and $b = 0$, for which this expression reduces to just
$$-4c^3-27d^2$$
In your particular case, $c = 4$ and $d = 2$ are both positive, so you don't need to evaluate anything—it is obvious that the discriminant is negative, and hence the function has exactly one real root.
Why does this work?
The general definition of a discriminant is a product of squares, so it can only be negative if the polynomial or the its roots are non-real. The cubic discriminant can be derived from the general definition, and will therefore have the same properties.