use the discriminant to determine number of solutions