
Math Education
How to Solve Quadratic Equations: Formula & Worked Examples

Dewi Lestari
Mathematics Specialist

A quadratic equation has the form ax² + bx + c = 0 (a ≠ 0). There are three ways to solve it: factoring, the quadratic formula x = (−b ± √(b²−4ac)) / 2a, or completing the square. The discriminant D = b² − 4ac determines the nature of the roots: D>0 two distinct roots, D=0 one repeated root, D<0 no real roots.
What Is a Quadratic Equation?
A quadratic equation is an equation with a variable raised to the second power, in the standard form:
where a, b, c are constants and a ≠ 0. The concept dates back to ancient Babylonia around 2000 BC — Babylonian mathematicians were already able to solve problems equivalent to quadratic equations, although they did not use modern notation. The mathematician al-Khwarizmi later formalised the method in the 9th century AD in his work Al-Kitab al-mukhtasar fi hisab al-jabr wal-muqabala.
The roots of a quadratic equation are the values of x that satisfy the equation. A quadratic equation can have two distinct roots, one repeated root, or no real roots — depending on the value of its discriminant.
Three Methods for Solving Quadratic Equations
Method 1: Factoring
Find two numbers p and q such that p + q = b and p × q = a×c:
Method 2: The Quadratic Formula
Formula: x = (−b ± √(b²−4ac)) / (2a)
Discriminant
- D > 0: two distinct roots
- D = 0: one repeated root
- D < 0: no real roots
Method 3: Completing the Square
Rewrite the equation in the form
💡 Tip for choosing a method: Try factoring first — if you cannot factor within 30 seconds, switch to the quadratic formula. The quadratic formula always works for every quadratic equation and frequently appears in standardised exams.
How to Solve Quadratic Equations: Worked Examples
Example 1: Factoring
Solve:
Step 1: a=1, b=−5, c=6. Find p and q: p+q = −5, p×q = 6 → p = −2, q = −3 (since −2+(−3)=−5 and −2×(−3)=6)
Step 2: Factor
Step 3: x − 2 = 0 → x = 2, or x − 3 = 0 → x = 3
Answer: x = 2 or x = 3
Example 2: Quadratic Formula
Solve:
Step 1: a=2, b=−3, c=−2
Step 2: Compute the discriminant
Step 3: Substitute into the quadratic formula
Answer: x = 2 or x = −1/2
Example 3: Completing the Square
Solve:
Step 1: Move the constant to the right-hand side
Step 2: Add
Step 3: x + 2 = ±3 → x = 1 or x = −5
Answer: x = 1 or x = −5
Common Mistakes When Solving Quadratic Equations
Mistake 1: Misreading the sign of a coefficient
In
Mistake 2: Forgetting the ± (plus-minus) in the quadratic formula The quadratic formula produces two roots: x₁ with the + sign and x₂ with the − sign. Dropping one of the signs gives only one root and an incomplete answer. Write both possibilities explicitly: x = (−b + √D) / 2a and x = (−b − √D) / 2a.
Table of Quadratic Equation Types
| Equation | a | b | c | Discriminant D | Nature of Roots |
|---|---|---|---|---|---|
| x²−5x+6=0 | 1 | −5 | 6 | 1 | Two distinct roots |
| x²−4x+4=0 | 1 | −4 | 4 | 0 | One repeated root (x=2) |
| x²+x+1=0 | 1 | 1 | 1 | −3 | No real roots |
| 2x²−3x−2=0 | 2 | −3 | −2 | 25 | Two distinct roots |
| 4x²−4x+1=0 | 4 | −4 | 1 | 0 | One repeated root (x=½) |
Practice Problems
Problem 1: ⭐ Solve by factoring:
Problem 2: ⭐⭐ Solve using the quadratic formula:
Problem 3: ⭐⭐ Solve by completing the square:
Problem 4: ⭐⭐⭐ A rectangular city park has an area of 60 m². Its length is 4 m greater than its width. Find the dimensions of the park using a quadratic equation!
Problem 5: ⭐⭐⭐ (Exam-style) The quadratic equation
Answer Key:
- (x−3)(x−4)=0 → x = 3 or x = 4
- a=1, b=2, c=−8. D=4+32=36. x=(−2±6)/2 → x = 2 or x = −4
- x²−6x=−5 → (x−3)²=4 → x−3=±2 → x = 5 or x = 1
- w(w+4)=60 → w²+4w−60=0 → (w+10)(w−6)=0 → w=6, l=10 → length 10 m, width 6 m
- D = 0 → (k+2)² − 4(2k) = 0 → k² + 4k + 4 − 8k = 0 → k² − 4k + 4 = 0 → (k−2)² = 0 → k = 2
Summary
- A quadratic equation has the form ax² + bx + c = 0 (a ≠ 0) and has at most two real roots.
- Three solution methods: factoring (quick when possible), the quadratic formula (always works), and completing the square (important for conceptual understanding).
- The discriminant D = b² − 4ac determines the nature of the roots: D>0 two distinct roots, D=0 one repeated root, D<0 no real roots.
- The quadratic formula is essential for Grade 9 exams and preparation for standardised tests.
- Quadratic equations are applied in physics (projectile motion), economics (profit optimisation), and engineering (arch design).
Want to master quadratic equations and other maths topics with an experienced mentor? Algonova has helped more than 1,000,000 students in 90+ countries learn maths through a personalised approach — classes of up to 8 students with a curriculum tailored to each child's level. Try a free masterclass at Algonova and find the maths learning style that fits your child best.
Read also: How to Calculate the Perimeter of a Rectangle and How to Find the Surface Area of a Cylinder.

