The quadratic formula, explained visually

The quadratic formula, x = (−b ± √(b² − 4ac)) / 2a, gives the solutions of any quadratic equation ax² + bx + c = 0 with a ≠ 0. The real solutions are where the parabola y = ax² + bx + c meets the x-axis. For x² − 2x − 3 = 0, a = 1, b = −2 and c = −3, so x = (2 ± √16) / 2: x = 3 or x = −1.

x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

x equals negative b, plus or minus the square root of b² − 4ac, all divided by 2a. It gives the solutions of ax² + bx + c = 0 for any numbers a, b and c with a not equal to 0.

Updated

The upward parabola y = x² − 2x − 3 on a grid, crossing the x-axis at two green points labeled 1 − 2 = −1 and 1 + 2 = 3. A dashed vertical line at x = 1, labeled −b/2a = 1, runs through the vertex (1, −4). Just above the x-axis, two amber arrows, each 2 units long, run from that line out to above each crossing point.
y=x2−2x−3y = x^2 - 2x - 3 crosses the x-axis at x=−1x = -1 and x=3x = 3, the two solutions of x2−2x−3=0x^2 - 2x - 3 = 0. Both parts of the formula are in the picture: −b2a=1-\frac{b}{2a} = 1 is the line through the vertex, and 162=2\frac{\sqrt{16}}{2} = 2 is the distance from it to each root.

Concept map

9 ideas, in the order to learn them. Click one and Zidna draws and narrates an animated lesson on it.

Quadratic Equations and the Quadratic Formula

What the quadratic formula says, where it comes from and what it shows on a parabola: the solutions as x-intercepts, the discriminant's count of real solutions, the vertex halfway between the roots, and the formula at work on real problems.

1

Quadratics That Don't Factor

Quadratic equations such as x² − 4x + 1 = 0 that have solutions but no whole-number factors to find them with.Generate lesson
2

Parabolas and x-Intercepts

The points where a parabola meets the x-axis; their x-values solve the equation ax² + bx + c = 0.Generate lesson
3

Completing the Square

Rewriting x² + bx as (x + b/2)² − (b/2)² by adding the corner that a square is missing.Generate lesson
4

The Quadratic Formula

x = (−b ± √(b² − 4ac)) / 2a, which gives the solutions of any ax² + bx + c = 0 with a ≠ 0.Builds on Quadratics That Don't Factor, Parabolas and x-Intercepts, Completing the SquareGenerate lesson
5

Using the Quadratic Formula

Solving a quadratic step by step: standard form, then a, b and c, then substitute and simplify both answers.Builds on The Quadratic FormulaGenerate lesson
6

The Discriminant

The number b² − 4ac under the square root, which says whether there are two, one or no real solutions.Builds on The Quadratic FormulaGenerate lesson
7

Roots and the Axis of Symmetry

The two roots sit the same distance either side of x = −b/2a, the vertical line through the vertex.Builds on The Quadratic FormulaGenerate lesson
8

Projectile Motion Problems

Using h = −4.9t² + v₀t + h₀ and the quadratic formula to find when a thrown object reaches a given height.Builds on Using the Quadratic FormulaGenerate lesson
9

Complex Solutions

When b² − 4ac is negative, the formula gives two complex solutions, such as −1 ± 2i, and no real ones.Builds on The DiscriminantGenerate lesson

Key ideas

  1. 01

    The quadratic formula, x = (−b ± √(b² − 4ac)) / 2a, solves any quadratic equation ax² + bx + c = 0 with a ≠ 0, including ones that will not factor.

  2. 02

    Write the equation in standard form, ax² + bx + c = 0, before reading off a, b and c. Each keeps its sign: in 2x² − 5x − 3 = 0, a = 2, b = −5 and c = −3.

  3. 03

    The solutions of ax² + bx + c = 0 are the x-intercepts of the parabola y = ax² + bx + c: the points where its graph crosses or touches the x-axis.

  4. 04

    The formula splits into −b/2a ± √(b² − 4ac)/2a. The first part is the parabola's axis of symmetry, and the ± steps the same distance to either side of it, so the vertex sits halfway between the two roots.

  5. 05

    The discriminant, b² − 4ac, counts the real solutions: positive means two, zero means one repeated solution, and negative means none, with two complex solutions instead.

  6. 06

    The quadratic formula is completing the square done once on ax² + bx + c = 0. The ± is there because a positive number has two square roots.

  7. 07

    The two solutions add to −b/a and multiply to c/a (Vieta's formulas), a quick check: for x² − 2x − 3 = 0, the solutions 3 and −1 add to 2 and multiply to −3.

What is the quadratic formula?

The quadratic formula gives the solutions of any quadratic equation ax2+bx+c=0ax^2 + bx + c = 0 with a≠0a \neq 0. Put in the three numbers aa, bb and cc, and it returns the values of xx that make the equation true:

x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

x equals negative b, plus or minus the square root of b squared minus 4ac, all divided by 2a.

The ±\pm sign, read plus or minus, means there are usually two solutions: one where you add the square root and one where you subtract it. The expression under the square root, b2−4acb^2 - 4ac, is called the discriminant.

The formula needs the equation in standard form: every term on one side, 0 on the other. Then aa is the number multiplying x2x^2, bb the number multiplying xx, and cc the number on its own, each with its sign. A missing term has a coefficient of 0.

Reading a, b and c from a quadratic equation
EquationStandard forma, b and c
x2−2x−3=0x^2 - 2x - 3 = 0x2−2x−3=0x^2 - 2x - 3 = 0a=1, b=−2, c=−3a = 1,\ b = -2,\ c = -3
2x2=5x+32x^2 = 5x + 32x2−5x−3=02x^2 - 5x - 3 = 0a=2, b=−5, c=−3a = 2,\ b = -5,\ c = -3
x2=7x^2 = 7x2−7=0x^2 - 7 = 0a=1, b=0, c=−7a = 1,\ b = 0,\ c = -7
4x−x2=04x - x^2 = 0−x2+4x=0-x^2 + 4x = 0a=−1, b=4, c=0a = -1,\ b = 4,\ c = 0
3(x2+1)=10x3(x^2 + 1) = 10x3x2−10x+3=03x^2 - 10x + 3 = 0a=3, b=−10, c=3a = 3,\ b = -10,\ c = 3

If a=0a = 0 the equation is not quadratic, and the formula would divide by 0. What is left, bx+c=0bx + c = 0, is where the line y=bx+cy = bx + c, of slope bb, crosses the x-axis: x=−cbx = -\frac{c}{b}.

How do you use the quadratic formula?

To use the quadratic formula, write the equation in standard form, read off aa, bb and cc, substitute them into the formula, then work out the plus case and the minus case separately. Finding the discriminant first keeps the arithmetic small.

  1. 1Write the equation as ax2+bx+c=0ax^2 + bx + c = 0. The equation 2x2+3x−2=02x^2 + 3x - 2 = 0 already is.
  2. 2Read the coefficients with their signs: a=2a = 2, b=3b = 3, c=−2c = -2.
  3. 3Find the discriminant: b2−4ac=32−4(2)(−2)=9+16=25b^2 - 4ac = 3^2 - 4(2)(-2) = 9 + 16 = 25.
  4. 4Substitute: x=−3±252(2)=−3±54x = \frac{-3 \pm \sqrt{25}}{2(2)} = \frac{-3 \pm 5}{4}.
  5. 5Split the ±\pm: x=−3+54=12x = \frac{-3 + 5}{4} = \frac{1}{2} and x=−3−54=−2x = \frac{-3 - 5}{4} = -2.
  6. 6Check an answer in the original equation: 2(12)2+3(12)−2=12+32−2=02\left(\frac{1}{2}\right)^2 + 3\left(\frac{1}{2}\right) - 2 = \frac{1}{2} + \frac{3}{2} - 2 = 0.

When the square root is not a whole number, simplify it, then divide every term on top by the bottom. For x2+6x+4=0x^2 + 6x + 4 = 0 the discriminant is 36−16=2036 - 16 = 20 and 20=25\sqrt{20} = 2\sqrt{5}, so x=−6±252=−3±5x = \frac{-6 \pm 2\sqrt{5}}{2} = -3 \pm \sqrt{5}, about −0.764-0.764 and −5.236-5.236.

Put every substituted number in parentheses. With b=−5b = -5, −b-b is −(−5)=5-(-5) = 5 and b2b^2 is (−5)2=25(-5)^2 = 25.

What does the quadratic formula find on a graph?

On a graph, the quadratic formula finds the x-intercepts of the parabola y=ax2+bx+cy = ax^2 + bx + c: the points where it crosses or touches the x-axis. Every point on the x-axis has y=0y = 0, which turns y=ax2+bx+cy = ax^2 + bx + c into the equation ax2+bx+c=0ax^2 + bx + c = 0. That is why the solutions are also called the roots or zeros of the quadratic.

Split the formula into two fractions and each part has a job on the graph:

x=−b2a±b2−4ac2ax = -\frac{b}{2a} \pm \frac{\sqrt{b^2 - 4ac}}{2a}

x equals negative b over 2a, plus or minus the square root of b squared minus 4ac over 2a.

  • −b2a-\frac{b}{2a} is the parabola's axis of symmetry, the vertical line through its vertex.
  • ±b2−4ac2a\pm\frac{\sqrt{b^2 - 4ac}}{2a} steps the same distance to each side of that line, landing on the two roots.

So the vertex of a parabola is always halfway between its two roots. For y=x2−2x−3y = x^2 - 2x - 3, the axis is −b2a=22=1-\frac{b}{2a} = \frac{2}{2} = 1 and the distance is 162=2\frac{\sqrt{16}}{2} = 2, so the roots are 1−2=−11 - 2 = -1 and 1+2=31 + 2 = 3. The vertex is at x=1x = 1, and its height is 12−2(1)−3=−41^2 - 2(1) - 3 = -4, so the vertex is (1,−4)(1, -4).

The vertex, at x=−b2ax = -\frac{b}{2a}, is where the parabola is flat for an instant: its derivative, 2ax+b2ax + b, is 0 there.

What does the discriminant tell you?

The discriminant tells you how many real solutions a quadratic equation has before you solve it, and so how many times its parabola meets the x-axis. That is where the name comes from: it discriminates, or tells apart, the three cases. It is the expression under the square root in the quadratic formula:

b2−4acb^2 - 4ac

The discriminant is b squared minus 4 times a times c.

Three small graphs side by side. y = x² − 4x + 3 crosses its x-axis at green points x = 1 and x = 3, with b² − 4ac = 4: two real roots. y = x² − 4x + 4 touches the axis at x = 2, with b² − 4ac = 0: one repeated root. y = x² − 4x + 5 stays above the axis, with b² − 4ac = −4: no real roots.
The same parabola raised one step at a time. With c=3c = 3 it crosses the x-axis twice, with c=4c = 4 it touches it once at its vertex, and with c=5c = 5 it misses it.
What the sign of the discriminant means
b² − 4acReal solutionsThe parabolaExample
PositiveTwo different onesCrosses the x-axis twicex2−4x+3=0x^2 - 4x + 3 = 0 has b2−4ac=4b^2 - 4ac = 4, so x=1x = 1 or x=3x = 3
ZeroOne, repeatedTouches the x-axis at its vertexx2−4x+4=0x^2 - 4x + 4 = 0 has b2−4ac=0b^2 - 4ac = 0, so x=2x = 2
NegativeNone (two complex ones)Never meets the x-axisx2−4x+5=0x^2 - 4x + 5 = 0 has b2−4ac=−4b^2 - 4ac = -4, so x=2±ix = 2 \pm i

The reason is the square root. A positive number has two square roots, so ±\pm gives two different answers. The square root of 0 is 0, so both answers land on −b2a-\frac{b}{2a}. A negative number has no real square root at all.

When aa, bb and cc are whole numbers, the discriminant says more. If it is a perfect square, such as 1, 25 or 121, the solutions are whole numbers or fractions and the quadratic factors. If it is positive but not a perfect square, such as 12, the solutions are irrational and keep a square root, such as 2±32 \pm \sqrt{3}.

Read the sign of b2−4acb^2 - 4ac itself. Taking its square root first is unnecessary, and impossible in real numbers when it is negative.

Where does the quadratic formula come from?

The quadratic formula comes from completing the square: adding the one number that turns x2+bxx^2 + bx into a perfect square, so the equation can be solved with a single square root. The picture shows it with numbers, for x2+6x=16x^2 + 6x = 16.

A 5-by-5 square outlined in green, cut into four pieces: a blue square labeled x² in the top left with sides x, a purple rectangle labeled 3x to its right and another below it, and a dashed amber 3-by-3 corner labeled +9 in the bottom right. Both outer sides are marked x + 3, and the identity x² + 6x + 9 = (x + 3)² is written underneath.
x2+6xx^2 + 6x is an x-by-x square and two 3-by-x strips. The 3-by-3 corner it is missing has area 9, so x2+6x+9=(x+3)2x^2 + 6x + 9 = (x + 3)^2. Drawn at the solution x=2x = 2, the completed square is 5 by 5.

Adding 9 to both sides of x2+6x=16x^2 + 6x = 16 gives (x+3)2=25(x + 3)^2 = 25. Then x+3=5x + 3 = 5 or x+3=−5x + 3 = -5, so x=2x = 2 or x=−8x = -8. The picture can only show the positive length, x=2x = 2; the negative square root gives the second solution.

The same steps on ax2+bx+c=0ax^2 + bx + c = 0, with letters in place of numbers, produce the formula:

  1. 1Divide every term by aa: x2+bax+ca=0x^2 + \frac{b}{a}x + \frac{c}{a} = 0.
  2. 2Move the constant to the right: x2+bax=−cax^2 + \frac{b}{a}x = -\frac{c}{a}.
  3. 3Add the square of half the xx coefficient, (b2a)2=b24a2\left(\frac{b}{2a}\right)^2 = \frac{b^2}{4a^2}, to both sides: x2+bax+b24a2=b24a2−cax^2 + \frac{b}{a}x + \frac{b^2}{4a^2} = \frac{b^2}{4a^2} - \frac{c}{a}.
  4. 4Write the left side as a square and put the right side over 4a24a^2: (x+b2a)2=b2−4ac4a2\left(x + \frac{b}{2a}\right)^2 = \frac{b^2 - 4ac}{4a^2}.
  5. 5Take the square root of both sides, keeping both signs: x+b2a=±b2−4ac2ax + \frac{b}{2a} = \pm\frac{\sqrt{b^2 - 4ac}}{2a}.
  6. 6Subtract b2a\frac{b}{2a} from both sides: x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}.

The ±\pm and the discriminant both appear in the square-root step: a positive number has two square roots, and the number being rooted is b2−4acb^2 - 4ac.

When should you use the quadratic formula instead of factoring?

Use the quadratic formula when a quadratic does not factor quickly, when aa is not 1, or when the solutions might be irrational or complex. It works on every quadratic equation. Factoring is faster when it works, and taking square roots is fastest when there is no xx term.

Four ways to solve a quadratic equation
MethodBest whenExample
Taking square rootsThere is no xx term (b=0b = 0)x2−49=0x^2 - 49 = 0, so x=±7x = \pm 7
FactoringTwo whole numbers multiply to cc and add to bb (with a=1a = 1)x2−5x+6=(x−2)(x−3)=0x^2 - 5x + 6 = (x - 2)(x - 3) = 0, so x=2x = 2 or 33
Completing the squarea=1a = 1 and bb is even, or you want the vertexx2+6x=16x^2 + 6x = 16 becomes (x+3)2=25(x + 3)^2 = 25
Quadratic formulaAny quadratic, especially one that will not factor3x2+7x−2=03x^2 + 7x - 2 = 0 gives x=−7±736x = \frac{-7 \pm \sqrt{73}}{6}

A quick test when aa, bb and cc are whole numbers: work out b2−4acb^2 - 4ac. If it is a perfect square, the quadratic factors, and either method works. If it is not, go straight to the formula. For 3x2+7x−2=03x^2 + 7x - 2 = 0 the discriminant is 49+24=7349 + 24 = 73, not a perfect square, so there are no whole-number factors to find.

What is the quadratic formula used for?

The quadratic formula is used whenever one quantity depends on the square of another and you need the input that gives a particular output. Some common uses:

  • Physics: when a thrown or dropped object reaches a given height. Near Earth's surface, ignoring air resistance, its height in meters after tt seconds is h=−4.9t2+v0t+h0h = -4.9t^2 + v_0 t + h_0, a quadratic in tt.
  • Area: the sides of a shape with a known area. A garden 3 m longer than it is wide, with an area of 40 m², gives w2+3w−40=0w^2 + 3w - 40 = 0, so its width is w=5w = 5 m.
  • Business: the break-even points of a profit that rises and then falls, where the profit is exactly 0.
  • Highest and lowest values: the vertex, at x=−b2ax = -\frac{b}{2a}, gives the maximum height of a ball or the price that brings in the most revenue.
  • Matrices: the eigenvalues of a 2 × 2 matrix are the solutions of a quadratic equation.

In a real problem, check each solution against the situation. The garden equation also has the solution w=−8w = -8, and a ball's height equation usually has a negative time as a solution. Both solve the equation but not the problem, so they are dropped.

Worked examples

Rearranging into standard form first

Solve 3x2=7x+63x^2 = 7x + 6.

  1. 1Move every term to one side: 3x2−7x−6=03x^2 - 7x - 6 = 0.
  2. 2Read the coefficients: a=3a = 3, b=−7b = -7, c=−6c = -6.
  3. 3Discriminant: (−7)2−4(3)(−6)=49+72=121(-7)^2 - 4(3)(-6) = 49 + 72 = 121, and 121=11\sqrt{121} = 11.
  4. 4Substitute: x=−(−7)±112(3)=7±116x = \frac{-(-7) \pm 11}{2(3)} = \frac{7 \pm 11}{6}.
  5. 5Split: x=7+116=3x = \frac{7 + 11}{6} = 3 and x=7−116=−46=−23x = \frac{7 - 11}{6} = -\frac{4}{6} = -\frac{2}{3}.
  6. 6Check x=3x = 3 in the original equation: 3(3)2=273(3)^2 = 27 and 7(3)+6=277(3) + 6 = 27.

Answer: x=3x = 3 or x=−23x = -\frac{2}{3}

Two irrational solutions

Solve x2−4x+1=0x^2 - 4x + 1 = 0. Give exact answers and decimals.

  1. 1Read the coefficients: a=1a = 1, b=−4b = -4, c=1c = 1.
  2. 2Discriminant: (−4)2−4(1)(1)=16−4=12(-4)^2 - 4(1)(1) = 16 - 4 = 12. It is positive but not a perfect square, so there are two irrational solutions.
  3. 3Simplify the root: 12=4⋅3=23\sqrt{12} = \sqrt{4 \cdot 3} = 2\sqrt{3}.
  4. 4Substitute: x=4±232x = \frac{4 \pm 2\sqrt{3}}{2}.
  5. 5Divide both terms on top by 2: x=2±3x = 2 \pm \sqrt{3}.
  6. 6As decimals, with 3≈1.732\sqrt{3} \approx 1.732: 2+1.732=3.7322 + 1.732 = 3.732 and 2−1.732=0.2682 - 1.732 = 0.268.

Answer: x=2+3≈3.732x = 2 + \sqrt{3} \approx 3.732 or x=2−3≈0.268x = 2 - \sqrt{3} \approx 0.268

One repeated solution

Solve 4x2−12x+9=04x^2 - 12x + 9 = 0.

  1. 1Read the coefficients: a=4a = 4, b=−12b = -12, c=9c = 9.
  2. 2Discriminant: (−12)2−4(4)(9)=144−144=0(-12)^2 - 4(4)(9) = 144 - 144 = 0.
  3. 3With a discriminant of 0, the ±\pm adds and subtracts nothing: x=12±08=128=32x = \frac{12 \pm 0}{8} = \frac{12}{8} = \frac{3}{2}.
  4. 4The quadratic is a perfect square, (2x−3)2(2x - 3)^2, and its parabola touches the x-axis only at its vertex, (32,0)\left(\frac{3}{2}, 0\right).

Answer: x=32x = \frac{3}{2}, one repeated solution

No real solutions

Solve x2+2x+5=0x^2 + 2x + 5 = 0.

The upward parabola y = x² + 2x + 5 on a grid, entirely above the x-axis, with its vertex at (−1, 4). An amber double arrow marks the 4-unit gap from the x-axis up to the vertex. A hollow purple point on the x-axis at x = −1 is labeled real part −1, and the text reads b² − 4ac = −16, no x-intercepts.
The lowest point of y=x2+2x+5y = x^2 + 2x + 5 is (−1,4)(-1, 4), 4 units above the x-axis, so the parabola never meets it. The complex solutions −1±2i-1 \pm 2i still have the axis of symmetry, x=−1x = -1, as their real part.
  1. 1Read the coefficients: a=1a = 1, b=2b = 2, c=5c = 5.
  2. 2Discriminant: 22−4(1)(5)=4−20=−162^2 - 4(1)(5) = 4 - 20 = -16. It is negative, so there are no real solutions: the parabola never meets the x-axis.
  3. 3For the complex solutions, use ii, the number with i2=−1i^2 = -1: −16=16⋅−1=4i\sqrt{-16} = \sqrt{16} \cdot \sqrt{-1} = 4i.
  4. 4Substitute: x=−2±4i2=−1±2ix = \frac{-2 \pm 4i}{2} = -1 \pm 2i.
  5. 5The real part, −1-1, is −b2a-\frac{b}{2a}: the axis of symmetry through the vertex (−1,4)(-1, 4).

Answer: No real solutions. The two complex solutions are x=−1+2ix = -1 + 2i and x=−1−2ix = -1 - 2i.

The vertex halfway between the roots

Find the roots and the vertex of y=2x2−8x+3y = 2x^2 - 8x + 3.

  1. 1Read the coefficients: a=2a = 2, b=−8b = -8, c=3c = 3. The discriminant is 64−24=4064 - 24 = 40.
  2. 2Axis of symmetry: −b2a=84=2-\frac{b}{2a} = \frac{8}{4} = 2.
  3. 3Distance from the axis to each root: 402a=2104=102≈1.581\frac{\sqrt{40}}{2a} = \frac{2\sqrt{10}}{4} = \frac{\sqrt{10}}{2} \approx 1.581.
  4. 4Roots: x=2±102x = 2 \pm \frac{\sqrt{10}}{2}, about 0.4190.419 and 3.5813.581.
  5. 5Vertex height: y=2(2)2−8(2)+3=8−16+3=−5y = 2(2)^2 - 8(2) + 3 = 8 - 16 + 3 = -5.
  6. 6Check that the vertex is halfway: 0.419+3.5812=2\frac{0.419 + 3.581}{2} = 2.

Answer: Roots x=2±102x = 2 \pm \frac{\sqrt{10}}{2}, about 0.4190.419 and 3.5813.581; vertex (2,−5)(2, -5).

When does a thrown ball land?

A ball is thrown straight up at 12 m/s from 2 m above the ground. Its height in meters after tt seconds is h=−4.9t2+12t+2h = -4.9t^2 + 12t + 2. When does it hit the ground?

A graph of height h in meters against time t in seconds. A blue arc starts at 2 m when t = 0, peaks at 9.35 m at 1.22 s, and comes down to the t-axis at a green point, t ≈ 2.61 s. A dashed gray continuation runs back in time to a hollow red point at t ≈ −0.16 s, labeled before the throw.
The ball's height over time. The equation −4.9t2+12t+2=0-4.9t^2 + 12t + 2 = 0 has two solutions, but only t≈2.61t \approx 2.61 s is after the throw. The dashed curve shows where the other, t≈−0.16t \approx -0.16 s, comes from.
  1. 1The ground is h=0h = 0, so solve −4.9t2+12t+2=0-4.9t^2 + 12t + 2 = 0, with a=−4.9a = -4.9, b=12b = 12, c=2c = 2.
  2. 2Discriminant: 122−4(−4.9)(2)=144+39.2=183.212^2 - 4(-4.9)(2) = 144 + 39.2 = 183.2, and 183.2≈13.535\sqrt{183.2} \approx 13.535.
  3. 3Substitute: t=−12±13.5352(−4.9)=−12±13.535−9.8t = \frac{-12 \pm 13.535}{2(-4.9)} = \frac{-12 \pm 13.535}{-9.8}.
  4. 4Minus case: t=−25.535−9.8≈2.61t = \frac{-25.535}{-9.8} \approx 2.61. Plus case: t=1.535−9.8≈−0.16t = \frac{1.535}{-9.8} \approx -0.16.
  5. 5A negative time is before the ball was thrown, so that solution is dropped.
  6. 6The highest point is at t=−b2a=129.8≈1.22t = -\frac{b}{2a} = \frac{12}{9.8} \approx 1.22 s, at a height of about 9.359.35 m.

Answer: The ball lands after about 2.612.61 seconds.

Check yourself

  1. 1.In 3x² − 4x + 7 = 0, what are a, b and c?Show answer

    a = 3, b = −4 and c = 7. Each coefficient keeps its sign.

  2. 2.Solve x² − 5x + 6 = 0 with the quadratic formula.Show answer

    x = 2 or x = 3. The discriminant is 25 − 24 = 1, so x = (5 ± 1) / 2.

  3. 3.Solve 5x = 2x² − 3.Show answer

    x = 3 or x = −1/2. In standard form it is 2x² − 5x − 3 = 0, the discriminant is 25 + 24 = 49, and x = (5 ± 7) / 4.

  4. 4.Solve x² − 2x − 1 = 0. Give the exact answer.Show answer

    x = 1 ± √2. The discriminant is 4 + 4 = 8 and √8 = 2√2, so x = (2 ± 2√2) / 2 = 1 ± √2.

  5. 5.What is the discriminant of x² + 6x + 9 = 0, and what does it tell you?Show answer

    36 − 36 = 0, so there is one repeated solution, x = −3.

  6. 6.How many real solutions does 2x² + x + 3 = 0 have?Show answer

    None. The discriminant is 1 − 24 = −23, which is negative.

  7. 7.Solve x² + 4x + 13 = 0.Show answer

    x = −2 ± 3i. The discriminant is 16 − 52 = −36 and √(−36) = 6i, so x = (−4 ± 6i) / 2. There are no real solutions.

  8. 8.What is the axis of symmetry of y = 2x² − 12x + 7?Show answer

    x = 3, because −b/2a = 12/4 = 3.

  9. 9.A parabola crosses the x-axis at x = −4 and x = 2. What is the x-coordinate of its vertex?Show answer

    −1, halfway between the roots: (−4 + 2) / 2 = −1.

  10. 10.Without solving, what do the two solutions of 2x² − 7x + 3 = 0 add up to?Show answer

    7/2, which is −b/a. The solutions are 3 and 1/2.

Common mistakes

  • Writing −b-b as a negative number when bb is already negative: for x2−6x+5=0x^2 - 6x + 5 = 0, putting −6-6 on top.−b-b means the opposite of bb. Here b=−6b = -6, so −b=6-b = 6 and x=6±162x = \frac{6 \pm \sqrt{16}}{2}, which gives 5 and 1.
  • Squaring a negative bb without parentheses, so that −62-6^2 comes out as −36-36.Square the whole number: (−6)2=36(-6)^2 = 36. Type the parentheses on a calculator too. b2b^2 is never negative.
  • Dividing only the square root by 2a2a: x=−b±b2−4ac2ax = -b \pm \frac{\sqrt{b^2 - 4ac}}{2a}.The fraction bar runs under the whole top: x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}, so −b-b is divided by 2a2a too.
  • Reading aa, bb and cc before the equation is in standard form: from 3x2=7x+63x^2 = 7x + 6, taking b=7b = 7 and c=6c = 6.Move everything to one side first: 3x2−7x−6=03x^2 - 7x - 6 = 0, so b=−7b = -7 and c=−6c = -6.
  • Losing a sign in −4ac-4ac when aa or cc is negative: for x2−2x−3=0x^2 - 2x - 3 = 0, writing the discriminant as 4−124 - 12.−4(1)(−3)=+12-4(1)(-3) = +12, so the discriminant is 4+12=164 + 12 = 16.
  • Simplifying 4±232\frac{4 \pm 2\sqrt{3}}{2} to 2±232 \pm 2\sqrt{3}.Divide every term on top by 2: 42±232=2±3\frac{4}{2} \pm \frac{2\sqrt{3}}{2} = 2 \pm \sqrt{3}.
  • Writing no solution when the discriminant is negative.Write no real solutions. There are still two complex solutions, such as −1±2i-1 \pm 2i for x2+2x+5=0x^2 + 2x + 5 = 0.
  • Working out only the plus case and giving one answer.Work out both the ++ case and the −- case. A positive discriminant always means two different solutions.

Questions students ask

Is the quadratic formula the same as a quadratic equation?

No. A quadratic equation is the problem: any equation that can be written as ax² + bx + c = 0 with a ≠ 0. The quadratic formula, x = (−b ± √(b² − 4ac)) / 2a, is a tool that solves it. Factoring and completing the square are other ways to solve the same equation.

Does the quadratic formula always work?

Yes, for every equation ax² + bx + c = 0 with a ≠ 0, including ones that will not factor. When the discriminant is negative it still works, but its answers are complex numbers instead of real ones. If a = 0 the formula would divide by zero; the equation is then linear, bx + c = 0, and its solution is x = −c/b.

Why does the quadratic formula give two answers?

Because deriving it takes a square root, and a positive number has two square roots, one positive and one negative: 5² and (−5)² are both 25. That is the ± in the formula: the plus gives one solution and the minus gives the other. On the graph they are the two x-intercepts, the same distance either side of the parabola's axis of symmetry. When the discriminant is 0, the two answers are the same number.

How do you say the quadratic formula in words?

x equals negative b, plus or minus the square root of b squared minus four a c, all over two a. The words all over two a matter: 2a divides everything above it, not just the square root. A common way to memorize it is to sing those words to the tune of Pop Goes the Weasel.

Who invented the quadratic formula?

No single person. Old Babylonian clay tablets from 1800 to 1600 BC solve problems that lead to quadratic equations, and the Indian mathematician Brahmagupta wrote a general rule in words around 628 AD. Al-Khwarizmi solved quadratic equations by completing the square in the 9th century, Simon Stevin gave a rule covering all cases in 1594, and René Descartes printed cases of it in the form used today in 1637.

Can a quadratic equation have three solutions?

No. A quadratic equation has at most two solutions, because a parabola can cross the x-axis at most twice. Counting complex solutions, and counting a repeated solution twice, every quadratic equation has exactly two.

Can you use the quadratic formula for x³ or x⁴ equations?

Not directly: it solves equations whose highest power is x². An equation such as x⁴ − 5x² + 4 = 0 is quadratic in x², so substituting u = x² gives u² − 5u + 4 = 0, with u = 1 or u = 4, and then x = ±1 or x = ±2. Cubic equations need other methods, such as factoring out a root you can find; a general cubic formula exists but is much longer.

How do you put the quadratic formula in a calculator?

Work out the discriminant b² − 4ac first. Then type each solution as one line, with brackets around the whole top and around 2a: (−b + √(b² − 4ac)) ÷ (2a), then the same with − in place of +. For 2x² − 5x − 3 = 0 the discriminant is 49, so (5 + √49) ÷ (2 × 2) = 3 and (5 − √49) ÷ (2 × 2) = −0.5. Without the brackets, the calculator divides only the square root, or divides by 2 and then multiplies by a. Square a negative b in brackets too: (−5)² = 25, but −5² comes out as −25.

What if b or c is zero?

The formula still works, but there is a faster way. If c = 0, factor out x: x(ax + b) = 0, so x = 0 or x = −b/a. If b = 0, solve by square roots: x² = −c/a, so x = ±√(−c/a), which is real only when −c/a is 0 or positive.

Is the discriminant the same as the determinant?

No. The discriminant, b² − 4ac, belongs to a quadratic and decides how many real solutions it has. A determinant is a number calculated from a square matrix. They meet in one place: the eigenvalues of a 2 × 2 matrix are the solutions of a quadratic equation, and its discriminant decides whether they are real.

Sources