Quadratic Equations and Discriminant
2398 words
12 min read
Visual companion
Python
Type and operator map
Python Week 1: the first filter for runtime behavior
View
Revision summary
What this note is really saying
Short form
# Quadratic Equations and Discriminant ## ๐ฏ Learning Objectives By the end of this topic, you will be able to: 1. **Solve** quadratic equations by factoring, completing the square, and the quadratic formula 2.

Quadratic Equations and Discriminant
๐ฏ Learning Objectives
By the end of this topic, you will be able to:
- Solve quadratic equations by factoring, completing the square, and the quadratic formula
- Compute the discriminant and determine the nature of roots
- Classify roots as real and distinct, real and equal, or complex
- Find the sum and product of roots without solving the equation
- Form a quadratic equation given its roots
๐ Prerequisites
- Quadratic Functions โ standard form, vertex, parabola
- Algebra โ factoring, square roots, rationalizing denominators
- Number systems โ real vs. complex numbers
๐ Core Content
4.1 Intuition: Finding the Zeros
A quadratic equation is the equation ax2+bx+c=0. Its solutions (roots) are the x-coordinates where the parabola y=ax2+bx+c crosses the x-axis. These are called the zeros of the quadratic function.
Imagine a ball thrown in the air: h(t)=โ5t2+20t+2. Solving h(t)=0 tells us when the ball hits the ground. Solving quadratic equations answers "when does something become zero?"
๐ก Why this matters: Quadratic equations appear everywhere in science, engineering, and finance: projectile motion, optimization, break-even analysis, compound interest problems, and eigenvalues of 2ร2 matrices.
4.2 Methods of Solving
4.2.1 Method 1: Factoring (When Applicable)
Recipe:
- Write in standard form: ax2+bx+c=0
- Factor the left side
- Set each factor to zero
- Solve for x Example 1.1 (Easy): Solve x2โ5x+6=0. Step 1: Factor: (xโ2)(xโ3)=0 Step 2: xโ2=0 or xโ3=0 Step 3: x=2 or x=3
Example 1.2: Solve 2x2+7x+3=0.
Step 1: Factor by grouping: 2x2+7x+3=2x2+6x+x+3
=2x(x+3)+1(x+3)=(2x+1)(x+3)
Step 2: 2x+1=0 or x+3=0โนx=โ1/2 or x=โ3
4.2.2 Method 2: Completing the Square
Recipe:
- Move c to RHS: ax2+bx=โc
- Divide by a: x2+abโx=โacโ
- Add (2abโ)2 to both sides
- Factor LHS as perfect square
- Take square root and solve Example 2.1: Solve x2+6x+2=0 by completing the square. Step 1: x2+6x=โ2 Step 2: Add (6/2)2=9: x2+6x+9=โ2+9 Step 3: (x+3)2=7 Step 4: x+3=ยฑ7โโนx=โ3ยฑ7โ
4.2.3 Method 3: The Quadratic Formula (Universal)
For ax2+bx+c=0, the quadratic formula:
This formula works for all quadratic equations โ real or complex roots.
Example 3.1: Solve 2x2โ3xโ5=0.
Step 1: a=2, b=โ3, c=โ5
Step 2: x=2(2)3ยฑ(โ3)2โ4(2)(โ5)โโ=43ยฑ9+40โโ=43ยฑ49โโ
Step 3: x=43+7โ=410โ=25โ or x=43โ7โ=4โ4โ=โ1
4.3 The Discriminant
4.3.1 Intuition
The discriminant D=b2โ4ac tells us what kind of roots the equation has โ without actually solving it. It's like a medical test that tells you the nature of the disease before treatment.
4.3.2 Definition and Classification
D=b2โ4ac| Discriminant | Nature of Roots | Graph |
|---|---|---|
| D>0 | Two distinct real roots | Parabola crosses x-axis at two points |
| D=0 | One real root (double/repeated) | Parabola touches x-axis at one point |
| D<0 | Two complex conjugate roots | Parabola does NOT cross x-axis |
(Diagram)
4.3.3 Worked Examples
Example 4.1 (Easy): Determine the nature of roots of x2โ5x+6=0.
Step 1: a=1, b=โ5, c=6
Step 2: D=25โ24=1>0
Conclusion: Two distinct real roots.
Example 4.2 (Medium): For what k does x2+kx+9=0 have a double root?
Step 1: a=1, b=k, c=9
Step 2: D=k2โ36
Step 3: For double root, D=0โนk2=36โนk=ยฑ6
Example 4.3 (Hard): Show that f(x)=x2+x+1 has no real zeros.
Step 1: a=1, b=1, c=1
Step 2: D=1โ4=โ3<0
Conclusion: No real zeros (complex roots). The parabola lies entirely above the x-axis.
4.4 Sum and Product of Roots
4.4.1 Vieta's Formulas
For ax2+bx+c=0 with roots ฮฑ and ฮฒ:
Derivation: If ฮฑ and ฮฒ are roots, then ax2+bx+c=a(xโฮฑ)(xโฮฒ)
Expanding: a(x2โ(ฮฑ+ฮฒ)x+ฮฑฮฒ)=ax2โa(ฮฑ+ฮฒ)x+aฮฑฮฒ
Comparing: โa(ฮฑ+ฮฒ)=bโนฮฑ+ฮฒ=โb/a
And: aฮฑฮฒ=cโนฮฑฮฒ=c/a
4.4.2 Worked Examples
Example 5.1 (Easy): Find the sum and product of roots of x2โ7x+12=0.
Step 1: a=1, b=โ7, c=12
Step 2: Sum =โ(โ7)/1=7
Step 3: Product =12/1=12
Example 5.2 (Medium): If ฮฑ and ฮฒ are roots of 2x2โ5x+1=0, find ฮฑ1โ+ฮฒ1โ.
Step 1: ฮฑ+ฮฒ=25โ, ฮฑฮฒ=21โ
Step 2: ฮฑ1โ+ฮฒ1โ=ฮฑฮฒฮฑ+ฮฒโ=1/25/2โ=5
Example 5.3 (Hard): Form a quadratic equation whose roots are 2+3โ and 2โ3โ.
Step 1: Sum =(2+3โ)+(2โ3โ)=4
Step 2: Product =(2+3โ)(2โ3โ)=4โ3=1
Step 3: Equation: x2โ(sum)x+(product)=0
x2โ4x+1=0
4.5 Complex Roots
When D<0, the roots are complex conjugates: ฮฑ=p+qi, ฮฒ=pโqi, where i=โ1โ.
Example 6.1: Solve x2+4x+5=0.
Step 1: a=1, b=4, c=5
Step 2: D=16โ20=โ4<0
Step 3: x=2โ4ยฑโ4โโ=2โ4ยฑ2iโ=โ2ยฑi
4.6 Why This Matters
The discriminant tells you everything about the behavior of a quadratic without solving it. In optimization:
- D>0: Two break-even points
- D=0: Exactly one break-even (touching)
- D<0: No real break-even (always profitable or never) In machine learning, many loss functions are quadratic (or approximated as quadratic near the minimum). The convexity (a>0) guarantees a unique minimum.
๐ Key Formulas โ Summary Table
| Concept | Formula | When to Use |
|---|---|---|
| Quadratic formula | x=2aโbยฑb2โ4acโโ | Solving ANY quadratic |
| Discriminant | D=b2โ4ac | Nature of roots |
| D>0 | Two distinct real roots | Parabola crosses x-axis twice |
| D=0 | One double real root | Parabola touches x-axis |
| D<0 | Two complex conjugate roots | Parabola doesn't cross x-axis |
| Sum of roots | ฮฑ+ฮฒ=โb/a | Vieta's formula |
| Product of roots | ฮฑฮฒ=c/a | Vieta's formula |
| Forming equation | x2โ(sum)x+(product)=0 | Given roots |
| Completing square | a(x+2abโ)2+4a4acโb2โ | Vertex form |
โ ๏ธ Common Pitfalls
Pitfall 1: Sign Error in the Quadratic Formula
Mistake: Writing x=2aโbยฑb2โ4acโโ correctly but evaluating โb as negative even when b is already negative.
Example: For x2โ5x+6=0, b=โ5, so โb=5, not โ5.
x=25ยฑ25โ24โโ=25ยฑ1โ=3,2. โ
Pitfall 2: Forgetting the ยฑ Sign
Mistake: Writing x=2aโb+Dโโ and forgetting ยฑ, thus finding only one root.
Correct: The ยฑ gives both roots. Every quadratic (in the complex plane) has exactly two roots.
Pitfall 3: Discriminant Confusion
Mistake: Thinking D>0 means "one real root" or D=0 means "no real root."
Correct: D>0 โ TWO real roots; D=0 โ ONE (double) real root; D<0 โ NO real roots (complex).
Pitfall 4: Forgetting to Write in Standard Form First
Mistake: Trying to apply the quadratic formula to 3x2+5=7x without rearranging.
Correct: First write 3x2โ7x+5=0, then identify a=3, b=โ7, c=5.
๐ Practice Questions
Q1: Solve x2โ9=0.Strategy Hint: Difference of squares.(xโ3)(x+3)=0โนx=3ย orย x=โ3x=ยฑ3โ Q2: Solve 2x2โ5xโ3=0 using the quadratic formula.Strategy Hint: a=2, b=โ5, c=โ3.x=45ยฑ25+24โโ=45ยฑ49โโ=45ยฑ7โ x=3ย orย x=โ21โx=3,ย โ21โโ Q3: Find the discriminant and nature of roots of x2โ6x+9=0.Strategy Hint: Compute D=b2โ4ac.D=36โ36=0 โ one double real root.D=0,ย doubleย rootย x=3โ Q4: For what k does x2โ4x+k=0 have real and distinct roots?Strategy Hint: Need D>0.D=16โ4k>0โนk<4k<4โ Q5: Find the sum and product of roots of 3x2+7xโ2=0.Strategy Hint: Sum =โb/a, Product =c/a.Sum =โ37โ, Product =โ32โSum=โ37โ,ย Product=โ32โโ Q6: Form a quadratic equation with roots 3 and โ4.Strategy Hint: x2โ(sum)x+product=0.Sum =3+(โ4)=โ1, Product =3(โ4)=โ12 x2โ(โ1)x+(โ12)=0โนx2+xโ12=0x2+xโ12=0โ Q7: Solve x2โ4x+13=0 (complex roots).Strategy Hint: D<0, use i=โ1โ.x=24ยฑ16โ52โโ=24ยฑโ36โโ=24ยฑ6iโ=2ยฑ3ix=2+3i,ย 2โ3iโ Q8: If ฮฑ,ฮฒ are roots of x2โ5x+3=0, find ฮฑ2+ฮฒ2.Strategy Hint: ฮฑ2+ฮฒ2=(ฮฑ+ฮฒ)2โ2ฮฑฮฒ.ฮฑ+ฮฒ=5, ฮฑฮฒ=3 ฮฑ2+ฮฒ2=25โ6=1919โ Q9: Solve 2x2+3xโ2=0 by completing the square.Strategy Hint: Divide by 2 first, then complete.x2+23โx=1 x2+23โx+169โ=1+169โ=1625โ (x+43โ)2=1625โ x+43โ=ยฑ45โ x=4โ3ยฑ5โโนx=21โย orย x=โ2x=21โ,ย โ2โ Q10: A rectangular garden has area 96 mยฒ. The length is 4 m more than the width. Find dimensions.Strategy Hint: l=w+4, A=w(w+4)=96.w2+4wโ96=0 D=16+384=400 w=2โ4ยฑ20โ=8ย orย โ12 (discard negative) w=8, l=128mร12mโ Q11: If one root of x2โ7x+k=0 is 2, find k and the other root.Strategy Hint: If 2 is a root, f(2)=0.4โ14+k=0โนk=10 Other root: product =k=10, so other root =10/2=5 Check: 2+5=7=โb/a โk=10,ย otherย root=5โ Q12: Prove that x2+px+p2=0 has no real roots for any non-zero real p.Strategy Hint: Show D<0 for p๎ =0.D=p2โ4p2=โ3p2 For p๎ =0, โ3p2<0 โ no real roots.D=โ3p2<0ย forย p๎ =0โ
๐ Cross-References
- Previous topic: Quadratic Functions
- Next topic: Polynomials โ quadratics generalize to higher-degree polynomials
- Related: Complex numbers โ needed when D<0
- Across courses: BSMA1003 Maths 2 (eigenvalues use characteristic polynomial); BSMA1002 Stats 1 (quadratic regression) Join Discord Previous3.1 Quadratic FunctionsNext4.0 Polynomial Operations