FreeMathCamp
Course Articles

Free Math Camp

A free course in the maths you need before calculus. Short lessons, interactive visuals, practice that adapts to you, and a record of progress on your account.

freemathcamp.app

Made by Adam Richard Turner

hello@adamrichardturner.dev

Course

  • Foundations
  • Articles
  • Start free
  • Sign in

Legal

  • Privacy
  • Terms
  • Do not sell or share

Copyright © Adam Richard Turner. All rights reserved.

  1. Articles
  2. /
  3. Polynomials & Quadratics
Polynomials & Quadratics

The Quadratic Formula and the Discriminant Explained

How to solve quadratic equations by factorising and with the quadratic formula, where the formula comes from, and how the discriminant predicts two, one or no real roots, seen on the graph.

3 min read Supports 3 lessons
In short

The quadratic formula solves any equation ax2+bx+c=0ax^2 + bx + c = 0ax2+bx+c=0: x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}x=2a−b±b2−4ac​​. The discriminant b2−4acb^2 - 4acb2−4ac tells you how many real solutions there are.

A quadratic equation ax2+bx+c=0ax^2 + bx + c = 0ax2+bx+c=0 asks where the parabola y=ax2+bx+cy = ax^2 + bx + cy=ax2+bx+c meets the xxx-axis. Those crossing points are the equation's roots or solutions.

Solving by factorising

Zero product property
AB=0  ⟹  A=0   or   B=0AB = 0 \;\Longrightarrow\; A = 0 \;\text{ or }\; B = 0AB=0⟹A=0 or B=0

If a product is zero, at least one of its factors must be.

Worked example

Solve x2+x=12x^2 + x = 12x2+x=12.

  1. 1

    Rearrange so one side is zero.

    x2+x−12=0x^2 + x - 12 = 0x2+x−12=0
Watch out

Never divide both sides by xxx. In x2=5xx^2 = 5xx2=5x that throws away the solution x=0x = 0x=0. Rearrange and factorise instead: x(x−5)=0x(x - 5) = 0x(x−5)=0.

The formula that always works

Many quadratics do not factorise neatly. Completing the square on the general equation ax2+bx+c=0ax^2 + bx + c = 0ax2+bx+c=0 produces a formula that solves every one of them.

Quadratic formula
x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}x=2a−b±b2−4ac​​
  1. 2x2+3x−4=02x^2 + 3x - 4 = 02x2+3x−4=0

    Read off the coefficients.

1/5

Where the formula comes from

  1. ax2+bx+c=0ax^2 + bx + c = 0ax2+bx+c=0
1/6

The discriminant

Everything under the square root, b2−4acb^2 - 4acb2−4ac, is called the discriminant, often written Δ\DeltaΔ. You cannot take the real square root of a negative number, so its sign decides how many real solutions there are.

Discriminant
Δ=b2−4ac\Delta = b^2 - 4acΔ=b2−4ac

Δ>0\Delta > 0Δ>0: two real roots · Δ=0\Delta = 0Δ=0: one repeated root · Δ<0\Delta < 0Δ<0: no real roots

Same shape, different heights: the discriminant counts the crossings.

Tip

Check the discriminant first. If it is a perfect square, the quadratic factorises neatly and that is usually quicker.

Watch out

The whole of −b-b−b is divided by 2a2a2a, not just the square root. Write one long fraction bar.

Common questions

What does the discriminant tell you?

Its sign gives the number of real solutions: positive means two, zero means one (repeated), and negative means none.

Does the quadratic formula always work?

Yes, for any quadratic equation with a≠0a \neq 0a=0. When the discriminant is negative it tells you there are no real solutions.

Practise quadratic formula

The The Quadratic Formula lesson has worked examples and unlimited practice that adapts to you.

Open the lesson

On this page

  1. Solving by factorising
  2. The formula that always works
  3. Where the formula comes from
  4. The discriminant
  5. Common questions
Lessons on this
  • The Quadratic FormulaPolynomials, Quadratics & Rational Functions
  • Solving Quadratics by FactoringPolynomials, Quadratics & Rational Functions
  • Completing the Square & Vertex FormPolynomials, Quadratics & Rational Functions
Related reading8
Ideas this article builds on or leads to.
  • Polynomials & Quadratics
    How to Factorise Quadratics: Sum-Product Method and Difference of Two Squares

    Factorising a quadratic rewrites it as a product of brackets: x2+7x+12=(x+3)(x+4)x^2 + 7x + 12 = (x + 3)(x + 4)x2+7x+12=(x+3)(x+4). For x2+bx+cx^2 + bx + cx2+bx+c, look for two numbers that add to bbb and multiply to ccc.

  • Polynomials & Quadratics
    Completing the Square and Vertex Form of a Quadratic

    Completing the square rewrites x2+bx+cx^2 + bx + cx2+bx+c as (x+b2)2+k(x + \frac{b}{2})^2 + k(x+2b​)2+k. The result, vertex form a(x−h)2+ka(x - h)^2 + ka(x−h)2+k, shows the parabola's turning point (h,k)(h, k)(h,k) directly.

  • Powers & Roots
    Square Roots and Surds: Simplifying Radicals Step by Step

    The square root n\sqrt{n}n​ is the non-negative number that squares to nnn: 49=7\sqrt{49} = 749​=7. A root that cannot be written as a whole number or fraction, like 2\sqrt{2}2​, is called a surd (or radical).

  • Number & Arithmetic
    Factors and Multiples: What Is the Difference?

    A factor of a number divides it exactly, with no remainder. A multiple of a number is that number times a whole number. So 444 is a factor of 121212, and 121212 is a multiple of 444.

  • Algebra
    Rearranging Formulae: How to Change the Subject of a Formula

    Rearranging a formula means making a different letter its subject, the letter on its own on one side. You use the same balancing steps as solving an equation, treating the other letters as if they were numbers.

  • Algebra
    How to Solve Linear Equations: The Balance Method

    A linear equation like 3x−4=113x - 4 = 113x−4=11 is solved by doing the same inverse operation to both sides until the variable is alone. Each step keeps the equation balanced, like a pair of scales.

  • Number & Arithmetic
    Negative Numbers: Adding, Subtracting, Multiplying and Dividing

    Negative numbers are numbers less than zero, written with a minus sign and placed to the left of zero on the number line. Together with zero and the positive whole numbers they form the integers.

  • Fractions, Decimals & Percentages
    What Is a Fraction? Numerators, Denominators and Mixed Numbers

    A fraction ab\frac{a}{b}ba​ means aaa parts of a whole that has been cut into bbb equal parts. The bottom number is the denominator; the top is the numerator.