If a quadratic equation is given in standard form we can find the sum and product of the roots using coefficient of x 2 x and constant term. Solve each of these equations. After doing so the next obvious step is to take the square roots of both sides to solve for the value of x.
Solve the quadratic equation ax2 bx c 0 import complex math module import cmath a 1 b 5 c 6 calculate the discriminant d b2 - 4ac find two solutions sol1 -b-cmathsqrt d 2a sol2 -bcmathsqrt d 2a printThe solution are 0 and 1format sol1sol2.
Ax2 squared bx c 0 is the general form for any quadratic equation. Were asked to solve the equation 2x squared plus 3 is equal to 75. A cubic function is one of the most challenging types of polynomial equation you may have to solve by hand. Factoring using the quadratic formula and completing the square.