Quadratic equations

Quadratic equations and their coefficients, incomplete equations, completing the square, the discriminant and the quadratic formula, the D/4 shortcut for an even second coefficient, Vieta’s theorem and its converse, factoring a quadratic trinomial, biquadratic equations and word problems — with step-by-step worked examples.

  • Grade 8
  • 25 min
  • 12 questions
  • Lesson 29 of 92

In this lesson you will learn

  • Bring a quadratic equation to standard form, name a, b and c, and solve incomplete equations without the formula
  • Explain the quadratic formula by completing the square and solve any quadratic with the discriminant (with D/4 when b is even)
  • Apply Vieta’s theorem and its converse, and factor a quadratic trinomial
  • Solve biquadratic equations, equations solved by substitution, and word problems that lead to a quadratic

Aysel wants to lay out a rectangular flower bed in the yard. It must have an area of 24 m², and its length must be 2 m more than its width. If the width is x metres, the area is x(x + 2), so x(x + 2) = 24, that is, x² + 2x − 24 = 0. The method from the lesson “Linear equations” does not help here: the unknown is squared, and moving it to one side is not enough. In this lesson you will learn to solve any equation of this kind, and at the end we will find the size of Aysel’s flower bed.

Quadratic equations turn up everywhere: in area and motion problems, in physics and in economics. To solve them you will need the formulas for (a ± b)² from the lesson “Special products (short multiplication formulas)”. The roots you learn to find here will reappear in the lesson “The quadratic function and its graph” as the points where a parabola crosses the x-axis.

A quadratic equation and its coefficients

Quadratic equationDefinition

An equation of the form ax² + bx + c = 0, where x is the unknown and a, b, c are given numbers with a ≠ 0. a is the leading coefficient, b is the second coefficient and c is the constant term. If a were 0, the x² would disappear and the equation would be linear — that is why the condition a ≠ 0 matters.

An equation is not always given in a ready form. To read the coefficients correctly, first expand the brackets, move all terms to the left side, collect like terms and order the terms by decreasing powers of x: this is the standard form. A coefficient is taken together with its sign: in 2x² − 3x + 1 = 0, b = −3, not 3.

EquationStandard formabc
2x² − 3x + 1 = 02x² − 3x + 1 = 02−31
x² = 16x² − 16 = 010−16
5x − x² = 0−x² + 5x = 0−150
3x² = 12 − x3x² + x − 12 = 031−12
(x + 2)² = 3x + 10x² + x − 6 = 011−6
In the last row (x + 2)² = x² + 4x + 4, then 3x + 10 is moved to the left: x² + 4x + 4 − 3x − 10 = x² + x − 6. A term with coefficient 0 is not written — then b = 0 or c = 0.

Incomplete quadratic equationDefinition

A quadratic equation in which at least one of b and c is zero: ax² + bx = 0 (c = 0), ax² + c = 0 (b = 0) or ax² = 0. Such equations are solved faster without the discriminant, by factoring or by taking a square root.

ax² + bx = 0 ⇒ x(ax + b) = 0 ⇒ x₁ = 0x₂ = −b/aax² + bx = 0 ⇒ x(ax + b) = 0 ⇒ x₁ = 0x₂ = −b/a

Where

x(ax + b)
the common factor x taken out of the bracket
x₁ = 0
always one of the roots when c = 0

A product is zero only when one of its factors is zero. That is why an equation with c = 0 always has two roots, and one of them is 0.

Equations with c = 0

Problem

Solve: 1) 5x² + 7x = 0; 2) 4x² = 9x.

Show solutionHide solution

Solution

1) Take out the common factor: x(5x + 7) = 0. Either x = 0 or 5x + 7 = 0 ⇒ x = −7/5 = −1.4.
Answer: 0 and −1.4.
2) Move everything to the left: 4x² − 9x = 0 ⇒ x(4x − 9) = 0 ⇒ x = 0 or x = 9/4 = 2.25.
Answer: 0 and 2.25. Had we divided the equation by x, we would get 4x = 9 and lose the root x = 0.
ax² + c = 0 ⇒ x² = −c/a; if −c/a > 0, then x₁,₂ = ±√(−c/a)ax² + c = 0 ⇒ x² = −c/a; if −c/a > 0, then x₁,₂ = ±√(−c/a)

Where

−c/a−c/a
the number x² must equal; its sign decides how many roots there are
±
two opposite numbers with the same square: √9 = 3, but x² = 9 has the roots 3 and −3

−c/a > 0: two opposite roots; −c/a < 0: no roots, because no number has a negative square; if c is zero as well (ax² = 0), the only root is x = 0.

Equations with b = 0, and a perfect square

Problem

Solve: 1) 2x² − 18 = 0; 2) 4x² + 25 = 0; 3) (x − 3)² = 16.

Show solutionHide solution

Solution

1) 2x² = 18 ⇒ x² = 9 ⇒ x = ±3. Answer: −3 and 3.
2) 4x² = −25 ⇒ x² = −25/4 < 0. A square cannot be negative, so there are no roots.
3) Here x − 3 stands inside the square: x − 3 = 4 or x − 3 = −4 ⇒ x = 7 or x = −1.
We did not need to expand the brackets — in the next section this idea becomes the key to every quadratic equation.

Sign up free to keep reading

The rest of the lesson, the quiz and your notes open with an Educora account. Signing up takes a minute, and your progress is saved on all your devices.

Completing the square and the quadratic formula

We solved (x − 3)² = 16 in one step because the left side was a perfect square. Every quadratic equation can be brought to this shape: if we add p² to x² + 2px, the formula (a + b)² = a² + 2ab + b² gives a perfect square: x² + 2px + p² = (x + p)². This method is called completing the square.

  1. Divide by a

    If a ≠ 1, divide both sides by a so that the coefficient of x² becomes 1.

  2. Move the constant to the right

    Keep only the x² term and the x term on the left.

  3. Add the square of half

    Halve the coefficient of x, square it and add it to both sides.

  4. Write the square

    Write the left side as (x + p)² and work out the right side.

  5. Take the square root

    If the right side is not negative, x + p = ±√(right side); if it is negative, there are no roots.

Solving by completing the square

Problem

Solve by completing the square: 1) x² + 6x − 7 = 0; 2) x² − 4x + 1 = 0.

Show solutionHide solution

Solution

1) x² + 6x = 7. Half of 6 is 3, and 3² = 9: x² + 6x + 9 = 7 + 9 ⇒ (x + 3)² = 16.
x + 3 = 4 or x + 3 = −4 ⇒ x = 1 or x = −7.
2) x² − 4x = −1. Half of −4 is −2, and (−2)² = 4: x² − 4x + 4 = −1 + 4 ⇒ (x − 2)² = 3.
x − 2 = ±√3 ⇒ x = 2 ± √3 (≈ 3.73 and ≈ 0.27). Roots can be irrational — that does not mean you made a mistake.

Now take the same steps with letters, for ax² + bx + c = 0. Divide by a: x² + (b/a)x = −c/a. Add (b/(2a))² to both sides: (x + b/(2a))² = (b² − 4ac)/(4a²). The denominator 4a² is always positive, so the sign of the right side is decided by the numerator b² − 4ac alone. Taking the square root and solving for x gives the famous quadratic formula.

DiscriminantDefinition

The number D = b² − 4ac. The Latin discriminare means “to distinguish”: the discriminant tells you how many roots there are before you solve the equation.

D = b² − 4acx₁,₂ = (−b ± √D) / (2a)D = b² − 4acx₁,₂ = (−b ± √D) / (2a)

Where

D
the discriminant; its sign shows the number of roots
a, b, c
the coefficients of the standard form, with their signs
±
two roots: one computed with “+”, the other with “−”
2a
the denominator belongs to the whole numerator: all of −b ± √D is divided by 2a

D > 0: two different roots; D = 0: one root (two equal roots) x = −b/(2a); D < 0: no real roots.

The three cases of the discriminant

Problem

Solve: 1) 2x² + 3x − 2 = 0; 2) 9x² − 6x + 1 = 0; 3) x² + 2x + 5 = 0.

Show solutionHide solution

Solution

1) a = 2, b = 3, c = −2. D = 3² − 4 · 2 · (−2) = 9 + 16 = 25 > 0, √D = 5.
x₁ = (−3 + 5)/4 = 1/2, x₂ = (−3 − 5)/4 = −2.
2) D = (−6)² − 4 · 9 · 1 = 36 − 36 = 0, so there is one root: x = 6/18 = 1/3. Indeed, 9x² − 6x + 1 = (3x − 1)².
3) D = 2² − 4 · 1 · 5 = 4 − 20 = −16 < 0: no real roots.

Interactive

Loading simulation…
The graph of y = x² + bx + c. The roots of the equation are the points where the curve crosses the x-axis: at the start, 2 and 3 for x² − 5x + 6 = 0. Increase c: D = b² − 4c first drops to zero (the curve touches the axis), then becomes negative (the curve leaves the axis and there are no roots). The graph is studied in detail in the lesson “The quadratic function and its graph”.

A negative a and irrational roots

Problem

Solve: 1) −x² + 4x + 5 = 0; 2) 3x² − 2x − 2 = 0.

Show solutionHide solution

Solution

1) First multiply the equation by −1 so that a is positive: x² − 4x − 5 = 0. D = 16 + 20 = 36, √D = 6.
x = (4 ± 6)/2 ⇒ x₁ = 5, x₂ = −1.
2) D = (−2)² − 4 · 3 · (−2) = 4 + 24 = 28, √28 = 2√7.
x = (2 ± 2√7)/6 = (1 ± √7)/3, that is, x₁ ≈ 1.22 and x₂ ≈ −0.55.
We divided both terms of the numerator and the denominator by 2.

An even second coefficient and the reduced equation

When b is even (b = 2k), every number in the formula is divisible by 2, and D by 4. If we cancel in advance, we work with smaller numbers and make fewer arithmetic mistakes.

b = 2k: D/4 = k² − acx₁,₂ = (−k ± √(D/4)) / ab = 2k: D/4 = k² − acx₁,₂ = (−k ± √(D/4)) / a

Where

k
half the second coefficient, k = b/2 (with its sign)
D/4D/4
the discriminant divided by four; its sign is the same as the sign of D
a
the denominator is now a, not 2a

The formula comes from the usual one by dividing the numerator and the denominator by 2: (−2k ± √(4(k² − ac)))/(2a) = (−k ± √(k² − ac))/a.

Three equations with D/4

Problem

Solve: 1) x² − 14x + 40 = 0; 2) 3x² + 8x − 3 = 0; 3) 5x² − 12x + 7 = 0.

Show solutionHide solution

Solution

1) k = −7: D/4 = 49 − 40 = 9, x = 7 ± 3 ⇒ 10 and 4.
2) k = 4: D/4 = 16 − 3 · (−3) = 16 + 9 = 25, x = (−4 ± 5)/3 ⇒ 1/3 and −3.
3) k = −6: D/4 = 36 − 35 = 1, x = (6 ± 1)/5 ⇒ 7/5 and 1.
Compare: in equation 1) the usual formula gives D = 196 − 160 = 36 — much bigger numbers.

Reduced (monic) quadratic equationDefinition

A quadratic equation whose leading coefficient is 1: x² + px + q = 0. Any quadratic can be reduced by dividing by a: 2x² − 6x + 4 = 0 ⇒ x² − 3x + 2 = 0.

x² + px + q = 0: x₁,₂ = −p/2 ± √((p/2)² − q)x² + px + q = 0: x₁,₂ = −p/2 ± √((p/2)² − q)

Where

p
the coefficient of x
q
the constant term

In words: half the coefficient of x with the opposite sign, plus or minus the square root of (that half squared minus the constant term). It is especially handy when p is even.

Reduced equations

Problem

Solve: 1) x² − 6x − 16 = 0; 2) x² + 10x + 21 = 0.

Show solutionHide solution

Solution

1) p/2 = −3: x = 3 ± √(9 + 16) = 3 ± 5 ⇒ 8 and −2.
2) p/2 = 5: x = −5 ± √(25 − 21) = −5 ± 2 ⇒ −3 and −7.
Both answers can be checked with Vieta’s theorem from the next section: 8 + (−2) = 6 and 8 · (−2) = −16.

Vieta’s theorem and factoring

Let us add and multiply the two roots from the formula. In the sum the ±√D terms cancel: x₁ + x₂ = (−b + √D)/(2a) + (−b − √D)/(2a) = −2b/(2a) = −b/a. In the product the formula (m + n)(m − n) = m² − n² does the work: x₁ · x₂ = (b² − D)/(4a²) = 4ac/(4a²) = c/a. These relations are named after the 16th-century French mathematician François Viète.

x₁ + x₂ = −b/ax₁ · x₂ = c/ax₁ + x₂ = −b/ax₁ · x₂ = c/a

Where

x₁, x₂
the roots of the equation (D ≥ 0 is needed)
−b/a−b/a
the sum of the roots
c/ac/a
the product of the roots

For the reduced equation x² + px + q = 0: x₁ + x₂ = −p, x₁ · x₂ = q. The theorem only makes sense when roots exist: x² + x + 5 = 0 has no roots, so it has no roots with sum −1 either.

The converse of Vieta’s theoremDefinition

If two numbers m and n satisfy m + n = −p and m · n = q, then they are the roots of x² + px + q = 0. This lets you find roots mentally and build an equation with given roots.

Finding roots mentally

Problem

Use Vieta’s theorem to find the roots of 1) x² − 11x + 30 = 0; 2) x² + 2x − 15 = 0; 3) x² + 9x + 20 = 0. 4) Write a reduced quadratic equation whose roots are −2 and 5.

Show solutionHide solution

Solution

1) Sum 11, product 30: 5 and 6 (5 + 6 = 11, 5 · 6 = 30).
2) Sum −2, product −15. The product is negative, so the roots have different signs: 3 and −5.
3) Sum −9, product 20. The product is positive and the sum negative, so both roots are negative: −4 and −5.
4) p = −(−2 + 5) = −3, q = (−2) · 5 = −10 ⇒ x² − 3x − 10 = 0.

Calculations without finding the roots

Problem

1) x₁ and x₂ are the roots of x² − 5x + 3 = 0. Find x₁² + x₂² and 1/x₁ + 1/x₂.
2) One root of x² + px − 12 = 0 is 3. Find the other root and p.

Show solutionHide solution

Solution

1) D = 25 − 12 = 13 > 0, so the roots exist but are irrational. By Vieta, x₁ + x₂ = 5 and x₁x₂ = 3.
x₁² + x₂² = (x₁ + x₂)² − 2x₁x₂ = 25 − 6 = 19.
1/x₁ + 1/x₂ = (x₁ + x₂)/(x₁x₂) = 5/3.
2) x₁ · x₂ = −12 and x₁ = 3 ⇒ x₂ = −4. x₁ + x₂ = −p ⇒ −1 = −p ⇒ p = 1.

A quadratic trinomial is the expression ax² + bx + c; its roots are the roots of ax² + bx + c = 0. From Vieta’s theorem b = −a(x₁ + x₂) and c = a · x₁x₂; substituting gives ax² + bx + c = a(x² − (x₁ + x₂)x + x₁x₂) = a(x − x₁)(x − x₂).

ax² + bx + c = a(x − x₁)(x − x₂)

Where

a
the leading coefficient — it must stay in front of the brackets
x₁, x₂
the roots of the trinomial

When D = 0, ax² + bx + c = a(x − x₁)²; when D < 0 the trinomial cannot be split into linear factors. Other methods — the common factor and grouping — are in the lesson “Factoring polynomials”.

Factoring

Problem

Factor: 1) 2x² − 5x − 3; 2) −x² + x + 6. 3) Simplify the fraction (x² − 4x + 3)/(x² − 1).

Show solutionHide solution

Solution

1) D = 25 + 24 = 49, x = (5 ± 7)/4 ⇒ x₁ = 3, x₂ = −1/2.
2x² − 5x − 3 = 2(x − 3)(x + 1/2) = (x − 3)(2x + 1).
2) Roots: −x² + x + 6 = 0 ⇒ x² − x − 6 = 0 ⇒ 3 and −2. Since a = −1,
−x² + x + 6 = −(x − 3)(x + 2); do not forget the factor a = −1.
3) x² − 4x + 3 = (x − 1)(x − 3) (a + b + c = 0: roots 1 and 3), and x² − 1 = (x − 1)(x + 1).
The fraction equals (x − 3)/(x + 1) for x ≠ ±1.
  1. Bring to standard form

    Expand the brackets and move every term to the left: ax² + bx + c = 0.

  2. Simplify

    If all coefficients share a common factor, divide by it; if a < 0, multiply the equation by −1.

  3. Look for a shortcut

    Is it incomplete? Is a + b + c = 0 or a − b + c = 0? Can Vieta give the roots quickly?

  4. Compute the discriminant

    D = b² − 4ac (if b is even, D/4 = k² − ac). If D < 0, there are no real roots.

  5. Find and check the roots

    Apply the formula, then check the answer with Vieta’s theorem or by substituting it into the equation.

Equations that reduce to quadratics, and word problems

Biquadratic equationDefinition

An equation of the form ax⁴ + bx² + c = 0 (a ≠ 0). The substitution t = x² turns it into the quadratic equation at² + bt + c = 0. Since t = x² cannot be negative, we keep only the roots with t ≥ 0.

  1. Find the repeated expression

    x², x² − 2x or another expression appears in the equation both squared and to the first power.

  2. Introduce a new variable

    Let t be that expression and write the condition on t (for t = x², t ≥ 0).

  3. Solve the equation in t

    With the discriminant, D/4 or Vieta’s theorem.

  4. Reject what does not fit

    Discard the values of t that break the condition.

  5. Return to x

    Find x for every t and check the roots in the original equation.

Biquadratic equations and substitution

Problem

Solve: 1) x⁴ − 5x² + 4 = 0; 2) x⁴ + 3x² − 4 = 0; 3) (x² − 2x)² − 2(x² − 2x) − 3 = 0.

Show solutionHide solution

Solution

1) t = x² ≥ 0: t² − 5t + 4 = 0 ⇒ t = 1 or t = 4 (a + b + c = 0).
x² = 1 ⇒ x = ±1; x² = 4 ⇒ x = ±2. Answer: −2, −1, 1, 2 — four roots.
2) t² + 3t − 4 = 0 ⇒ t = 1 or t = −4. t = −4 < 0 is rejected.
x² = 1 ⇒ x = ±1 — only two roots.
3) t = x² − 2x: t² − 2t − 3 = 0 ⇒ t = 3 or t = −1 (a − b + c = 0).
x² − 2x = 3 ⇒ x² − 2x − 3 = 0 ⇒ x = 3, x = −1.
x² − 2x = −1 ⇒ (x − 1)² = 0 ⇒ x = 1.
Answer: −1, 1, 3. Here t may be negative, because x² − 2x is not a square.

Setting up the equation in a word problem works as with linear equations: choose the unknown, write the conditions as an equation, solve it. The new step is the last one: a quadratic often has two roots, but both may not fit the meaning of the problem — a length cannot be negative, and a number of people cannot be a fraction.

Three word problems

Problem

1) Aysel’s flower bed has an area of 24 m², and its length is 2 m more than its width. Find its size.
2) The product of two consecutive natural numbers is 132. Find the numbers.
3) In a football tournament every team played every other team once; 28 matches were played in total. How many teams took part?

Show solutionHide solution

Solution

1) Let the width be x m: x(x + 2) = 24 ⇒ x² + 2x − 24 = 0. k = 1: D/4 = 1 + 24 = 25, x = −1 ± 5 ⇒ 4 and −6.
A width cannot be negative, so the bed is 4 m wide and 6 m long. Check: 4 · 6 = 24.
2) n(n + 1) = 132 ⇒ n² + n − 132 = 0. D = 1 + 528 = 529 = 23², n = (−1 ± 23)/2 ⇒ 11 and −12.
−12 is not a natural number. Answer: 11 and 12.
3) Each of n teams plays n − 1 matches, but every match is counted twice: n(n − 1)/2 = 28 ⇒ n² − n − 56 = 0.
D = 1 + 224 = 225, n = (1 ± 15)/2 ⇒ 8 and −7. Answer: 8 teams.
Check yourself
  1. 1.The discriminant of x² − 3x − 4 = 0 is D =
  2. 2.The sum of the roots of 2x² − 8x + 5 = 0 is
  3. 3.The product of the roots of 2x² − 8x + 5 = 0 is
  4. 4.The larger root of x² − x − 6 = 0 is
  5. 5.The number of roots of x⁴ − 10x² + 9 = 0 is

Remember

  • A quadratic equation is ax² + bx + c = 0 with a ≠ 0; read the coefficients, with their signs, from the standard form.
  • Incomplete equations: if c = 0, take x out of the bracket (x = 0 is always a root); if b = 0, find x². Never divide by x.
  • D = b² − 4ac, x₁,₂ = (−b ± √D)/(2a): D > 0 — two roots, D = 0 — one root, D < 0 — no real roots.
  • If b = 2k: D/4 = k² − ac, x₁,₂ = (−k ± √(D/4))/a.
  • Vieta: x₁ + x₂ = −b/a, x₁ · x₂ = c/a; if a + b + c = 0, the roots are 1 and c/a; ax² + bx + c = a(x − x₁)(x − x₂).
  • In a biquadratic equation substitute t = x² ≥ 0; in a word problem drop the root that does not make sense.
Spotted a mistake or something inaccurate in this lesson?

Check yourself

12 questions. Every correct answer earns XP.

Question 1 / 12

Question 1 / 12. In 3x² − 2x + 7 = 0, what is the coefficient b?