Question: how to find how many roots a function has?
Answer: To work out the number of roots a qudratic ax2​+bx+c=0 you need to compute the discriminant (b2​-4ac). If the discrimant is less than 0, then the quadratic has no real roots. If the discriminant is equal to zero then the quadratic has equal roosts. If the discriminant is more than zero then it has 2 distinct roots.