Quadratic Equations
Computing the roots of a quadratic equation
Quadratic equations are equations of the form
(1)
where . If , (1) becomes linear equation, the solution of which is .
A quadratic equation can be solved as follows:
First, calculating
If , the equation has one real solution (or root), which is
(2)
If the equation has two real solutions, and , where
(3)
(4)
If , then the equation has two complex solutions. To calculating these complex solutions we make use of the complex number or , hence can be written as
(5)
where is the absolute value of
Substitue (5) into (3) and (4), the two complex solutions of equation (1) are
(6)
(7)
which is a pair of conjugate complex numbers
Derivation of (3) and (4) can be found here
A java code for calculating the roots of a quadratic equation is here.
Checking your solutions
A quadratic equation has a form of
aX2 + bX + c = 0
To solve your equation, enter the values of a, b, c into the text boxes
then click the SUBMIT button