sciandu
Mathematics

Mathematics

The quadratic formula

One formula solves every quadratic equation: the famous solution formula and what it reveals.

What you need first

Some quadratic equations yield to clever guessing, but with 2x27x+3=02x^2 - 7x + 3 = 0 the fun ends quickly. For exactly these cases there is a solution formula that always works: the quadratic formula. In German it is often called the midnight formula, because you should know it so well that you could recite it at midnight.

The shape of the equation

For the formula to apply, the equation must be in the form ax2+bx+c=0a x^2 + b x + c = 0. You read off the three numbers aa, bb and cc, and the signs count. For 2x27x+3=02x^2 - 7x + 3 = 0 we have a=2a = 2, b=7b = -7 and c=3c = 3. You put these three numbers into the solution formula, and it gives you the places where the meets the xx-axis.

x1,2=b±b24ac2ax_{1,2} = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
The ±\pm stands for two calculations: once with plus, once with minus before the root.

The discriminant

The expression under the root has its own name: the discriminant D=b24acD = b^2 - 4ac. It decides the number of solutions before you compute any further. If D>0D > 0 there are two solutions, the parabola crosses the xx-axis twice. If D=0D = 0 both merge into one, the parabola only touches the axis. If D<0D < 0 there is no real solution, because a negative number has no real square root.

D=b24acD>0: 2,  D=0: 1,  D<0: 0D = b^2 - 4ac \quad\Rightarrow\quad D > 0:\ 2,\ \ D = 0:\ 1,\ \ D < 0:\ 0
A glance at DD is enough: the number after the colon is how many real solutions there are.
Coordinate grid
a1
c1
-6-6-4-4-2-2224466
y = 1+ 1opens upwards
Try it: use the cc slider to move the parabola up and down until it meets the xx-axis twice, once or not at all. These are exactly the three cases the discriminant tells apart.

Step by step

Take x25x+6=0x^2 - 5x + 6 = 0 with a=1a = 1, b=5b = -5, c=6c = 6. First the discriminant: D=(5)2416=2524=1D = (-5)^2 - 4 \cdot 1 \cdot 6 = 25 - 24 = 1. Because D>0D > 0 there are two solutions. The root of 11 is 11, and since b=5-b = 5 and 2a=22a = 2, this reads x=5±12x = \frac{5 \pm 1}{2}. With plus you get 33, with minus you get 22. The solutions are x1=3x_1 = 3 and x2=2x_2 = 2. And the equation from the start? For 2x27x+3=02x^2 - 7x + 3 = 0 we get D=4924=25D = 49 - 24 = 25, the root is 55, so x=7±54x = \frac{7 \pm 5}{4}, which gives x1=3x_1 = 3 and x2=0.5x_2 = 0.5.

Exercises

0 of 6 solved

Time to try it yourself. You can't break anything, every attempt counts.

What are aa, bb and cc in x25x+6=0x^2 - 5x + 6 = 0?

Compute the discriminant D=b24acD = b^2 - 4ac for x25x+6=0x^2 - 5x + 6 = 0.

What is the larger solution of x25x+6=0x^2 - 5x + 6 = 0?

Match each discriminant to the number of real solutions.

D > 0
D = 0
D < 0

How many real solutions does an equation with discriminant D<0D < 0 have?

Put the steps for solving an equation with the quadratic formula in the correct order.

  1. 1Compute the discriminant D = b² − 4ac
  2. 2Substitute the values into the solution formula
  3. 3Read off a, b and c with their signs
  4. 4Bring the equation into the form a x² + b x + c = 0