First calculate the discriminant, then decide which method to use.
Tips
memory
判 (judge) + 别 (distinguish) + 式 (formula) — literally 'judging-distinguishing formula.' For ax² + bx + c = 0, that's Δ = b² − 4ac, the value that judges whether the roots are real, repeated, or complex.