How to Solve Quadratic Equations


The most general expression of a quadratic equation is shown below:

ax2+bx+c=0a x^2 + b x + c = 0

where aa, bb and cc are real constants, with a=a = \not 0. For instance, the following equation:

2x23x+4=02x^2 -3x + 4 = 0

is a quadratic equation, whereas

4x5=04x - 5 = 0

is not (because the factor x2x^2 is not present in the equation).

Solving the Quadratic Equation

The main objective when we have a quadratic equation is to find its solutions or roots, the other name that is commonly used. The roots are computed with the well known quadratic formula

x=b±b24ac2ax = \displaystyle{\frac{-b \pm \sqrt{b^2-4ac}}{2a}}

Example: Find the roots of the equation

2x2x1=02x^2 - x -1 = 0

Solution: We need to apply the quadratic equation formula, and replace the corresponding values of aa, bb and cc. In this case, a=2a=2, b=1b = -1 and c=1c = -1:

x=b±b24ac2a=(1)±(1)242(1)22x = \frac{-b \pm \sqrt{b^2-4ac}}{2a} = \frac{-(-1) \pm \sqrt{(-1)^2-4\cdot 2 \cdot (-1)}}{2\cdot 2} =b±b24ac2a=1±1+84=1±34= \frac{-b \pm \sqrt{b^2-4ac}}{2a} = \frac{1 \pm \sqrt{1+8 }}{4} = \frac{1 \pm 3 }{4}

Now, we see that we have two solutions because of the ±\pm, which means that the roots are

x1=1+34=1x_1 = \frac{1 + 3 }{4} = 1 x2=134=12x_2 = \frac{1 - 3 }{4} = -\frac{1}{2}

The discriminant

It turns out that we can know a lot about the roots of a quadratic equation before even solving it. How is that possible? Well, we need to compute the following quantity, which is called the Discriminant:

D=b24acD = b^2-4ac

The discriminant can be negative, zero or positive, and the type of solutions will depend on it. In fact, we have that

  • If D>0D > 0: There are two different real roots
  • If D=0D = 0: There only one real root (the roots are repeated)
  • If D<0D < 0: There are no real roots (The roots are complex)

So, depending on the value of the discriminate we'll be able to determine beforehand what kind of solutions.

Why we get complex roots with a negative discriminate? Well, because in the quadratic formula, the term b24ac \sqrt{ b^2-4ac} appears, which won't be real if b24ac<0b^2-4ac <0. To see graphically how to locate the roots, you could try the our quadratic equation solver

Notice that the classic quadratic equation we all know is simply the derivation obtained from the method of completing the square.

Use this quadratic equation solver to compute, step-by-step, the roots of a quadratic equation.


log in to your account

Don't have a membership account?
REGISTER

reset password

Back to
log in

sign up

Back to
log in