-3
Chat with our AI personalities
if those are the solutions that x equals, you would have:
0 = (x+7)(x+4)
expanding the equation:
0 = x^2 + 11x + 28
Write the quadratic equation in the form ax2 + bx + c = 0 then the roots (solutions) of the equation are: [-b ± √(b2 - 4*a*c)]/(2*a)
0x2 + 1x - 7 = 0
readuse the answer
The easiest way to write a generic algorithm is to simply use the quadratic formula. If it is a computer program, ask the user for the coefficients a, b, and c of the generic equation ax2 + bx + c = 0, then just replace them in the quadratic formula.
It depends on the level of your mathematical knowledge. One way is to differentiate the quadratic equation and find the value of x for which the derivative is 0. The advantage of this method is that it works for turning points of polynomials of all degrees. The disadvantage is that you need to know differentiation. For a quadratic, an alternative, and simpler way is to write the equation in the form: y = ax2 + bx + c Then the x value of the vertex is -b/2a