In mathematics, a quadratic equation (from Latin quadratus 'square') is an equation that can be rearranged in standard form as
a x 2 + b x + c = 0 , {\displaystyle ax^{2}+bx+c=0\,,}
where the variable x {\displaystyle x} represents an unknown number, and a, b, and c represent known numbers, where a ≠ 0. (If a = 0 and b ≠ 0 then the equation is linear, not quadratic.) The numbers a, b, and c are the coefficients of the equation and may be distinguished by calling them the quadratic coefficient, the linear coefficient and the constant coefficient or free term, respectively. The values of x {\displaystyle x} that satisfy the equation are called solutions of the equation, and roots or zeros of the quadratic function on its left-hand side. A quadratic equation has at most two solutions. If there is only one solution, one says that it is a double root. If all the coefficients are real numbers, there are either two real solutions, or a real double root, or two complex solutions that are complex conjugates of each other. A quadratic equation always has two roots, if complex roots are included and a double root is counted for two. A quadratic equation can be factored into an equivalent equation
a x 2 + b x + c = a ( x − r ) ( x − s ) = 0 {\displaystyle ax^{2}+bx+c=a(x-r)(x-s)=0}
where r and s are the solutions for x {\displaystyle x} . The quadratic formula
x = − b ± b 2 − 4 a c 2 a {\displaystyle x={\frac {-b\pm {\sqrt {b^{2}-4ac}}}{2a}}}
expresses the solutions in terms of a, b, and c. Completing the square is one of several ways for deriving the formula. Solutions to problems that can be expressed in terms of quadratic equations were known as early as 2000 BC. The quadratic equation contains only powers of x {\displaystyle x} that are non-negative integers, and therefore it is a polynomial equation. In particular, it is a second-degree polynomial equation, since the greatest power is two.
Solving the quadratic equation
A quadratic equation whose coefficients are real numbers can have either zero, one, or two distinct real-valued solutions, also called roots. When there is only one distinct root, it can be interpreted as two roots with the same value, called a double root. When there are no real roots, the coefficients can be considered as complex numbers with zero imaginary part, and the quadratic equation still has two complex-valued roots, complex conjugates of each-other with a non-zero imaginary part. A quadratic equation whose coefficients are arbitrary complex numbers always has two complex-valued roots which may or may not be distinct. The solutions of a quadratic equation can be found by several alternative methods.
Factoring by inspection It may be possible to express a quadratic equation ax2 + bx + c = 0 as a product (px + q)(rx + s) = 0. In some cases, it is possible, by simple inspection, to determine values of p, q, r, and s that make the two forms equivalent to one another. If the quadratic equation is written in the second form, then the "Zero Factor Property" states that the quadratic equation is satisfied if px + q = 0 or rx + s = 0. Solving these two linear equations provides the roots of the quadratic. For most students, factoring by inspection is the first method of solving quadratic equations to which they are exposed. If one is given a quadratic equation in the form x2 + bx + c = 0, the sought factorization has the form (x + q)(x + s), and one has to find two numbers q and s that add up to b and whose product is c (this is sometimes called "Vieta's rule" and is related to Vieta's formulas). As an example, x2 + 5x + 6 factors as (x + 3)(x + 2). The more general case where a does not equal 1 can require a considerable effort in trial and error guess-and-check, assuming that it can be factored at all by inspection. Except for special cases such as where b = 0 or c = 0, factoring by inspection only works for quadratic equations that have rational roots. This means that the great majority of quadratic equations that arise in practical applications cannot be solved by factoring by inspection.
Completing the square
The process of completing the square makes use of the algebraic identity
x 2 + 2 h x + h 2 = ( x + h ) 2 , {\displaystyle x^{2}+2hx+h^{2}=(x+h)^{2},}
which represents a well-defined algorithm that can be used to solve any quadratic equation. Starting with a quadratic equation in standard form, ax2 + bx + c = 0
Divide each side by a, the coefficient of the squared term. Subtract the constant term c/a from both sides. Add the square of one-half of b/a, the coefficient of x, to both sides. This "completes the square", converting the left side into a perfect square. Write the left side as a square and simplify the right side if necessary. Produce two linear equations by equating the square root of the left side with the positive and negative square roots of the right side. Solve each of the two linear equations. We illustrate use of this algorithm by solving 2x2 + 4x − 4 = 0
… excerpt ends here. Continue reading the full article.



![Quadratic equation: Visualisation of the complex roots of y = ax2 + bx + c: the parabola is rotated 180° about its vertex (orange). Its x-intercepts are rotated 90° around their mid-point, and the Cartesian plane is interpreted as the complex plane (green).[15]](https://upload.wikimedia.org/wikipedia/commons/thumb/b/b1/Quadratic_function_graph_complex_roots.svg/500px-Quadratic_function_graph_complex_roots.svg.png?utm_source=en.wikipedia.org&utm_campaign=parser&utm_content=thumbnail)


