For all quadratic equations, you can use the quadratic formula. Given an equation of the form ax2+bx+c, you can plug those values into this formula:x1, x2 = (-b +/- sqrt(b2 - 4ac)) / 2aNote: the term b2 - 4ac is called the determinant and must be greater than 0 for your equation to have any solutions.