Registry Synced

Quadratic Equations and Discriminant

2398 words
12 min read

Reading compass

Now ยท ๐ŸŽฏ Learning Objectives

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. Compute the discriminant and determine the nature of roots
  3. Classify roots as real and distinct, real and equal, or complex
  4. Find the sum and product of roots without solving the equation
  5. 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=0ax^2 + bx + c = 0. Its solutions (roots) are the xx-coordinates where the parabola y=ax2+bx+cy = ax^2 + bx + c crosses the xx-axis. These are called the zeros of the quadratic function. Imagine a ball thrown in the air: h(t)=โˆ’5t2+20t+2h(t) = -5t^2 + 20t + 2. Solving h(t)=0h(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ร—22\times 2 matrices.

4.2 Methods of Solving

4.2.1 Method 1: Factoring (When Applicable)

Recipe:
  1. Write in standard form: ax2+bx+c=0ax^2 + bx + c = 0
  2. Factor the left side
  3. Set each factor to zero
  4. Solve for xx Example 1.1 (Easy): Solve x2โˆ’5x+6=0x^2 - 5x + 6 = 0. Step 1: Factor: (xโˆ’2)(xโˆ’3)=0(x - 2)(x - 3) = 0 Step 2: xโˆ’2=0x - 2 = 0 or xโˆ’3=0x - 3 = 0 Step 3: x=2x = 2 or x=3x = 3
x=2,ย 3\boxed{x = 2,\ 3}
Example 1.2: Solve 2x2+7x+3=02x^2 + 7x + 3 = 0. Step 1: Factor by grouping: 2x2+7x+3=2x2+6x+x+32x^2 + 7x + 3 = 2x^2 + 6x + x + 3 =2x(x+3)+1(x+3)=(2x+1)(x+3)= 2x(x + 3) + 1(x + 3) = (2x + 1)(x + 3) Step 2: 2x+1=02x + 1 = 0 or x+3=0โ€…โ€ŠโŸนโ€…โ€Šx=โˆ’1/2x + 3 = 0 \implies x = -1/2 or x=โˆ’3x = -3
x=โˆ’12,ย โˆ’3\boxed{x = -\frac{1}{2},\ -3}

4.2.2 Method 2: Completing the Square

Recipe:
  1. Move cc to RHS: ax2+bx=โˆ’cax^2 + bx = -c
  2. Divide by aa: x2+bax=โˆ’cax^2 + \frac{b}{a}x = -\frac{c}{a}
  3. Add (b2a)2\left(\frac{b}{2a}\right)^2 to both sides
  4. Factor LHS as perfect square
  5. Take square root and solve Example 2.1: Solve x2+6x+2=0x^2 + 6x + 2 = 0 by completing the square. Step 1: x2+6x=โˆ’2x^2 + 6x = -2 Step 2: Add (6/2)2=9(6/2)^2 = 9: x2+6x+9=โˆ’2+9x^2 + 6x + 9 = -2 + 9 Step 3: (x+3)2=7(x + 3)^2 = 7 Step 4: x+3=ยฑ7โ€…โ€ŠโŸนโ€…โ€Šx=โˆ’3ยฑ7x + 3 = \pm\sqrt{7} \implies x = -3 \pm \sqrt{7}
x=โˆ’3ยฑ7\boxed{x = -3 \pm \sqrt{7}}

4.2.3 Method 3: The Quadratic Formula (Universal)

For ax2+bx+c=0ax^2 + bx + c = 0, the quadratic formula:
x=โˆ’bยฑb2โˆ’4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
This formula works for all quadratic equations โ€” real or complex roots. Example 3.1: Solve 2x2โˆ’3xโˆ’5=02x^2 - 3x - 5 = 0. Step 1: a=2a = 2, b=โˆ’3b = -3, c=โˆ’5c = -5 Step 2: x=3ยฑ(โˆ’3)2โˆ’4(2)(โˆ’5)2(2)=3ยฑ9+404=3ยฑ494x = \frac{3 \pm \sqrt{(-3)^2 - 4(2)(-5)}}{2(2)} = \frac{3 \pm \sqrt{9 + 40}}{4} = \frac{3 \pm \sqrt{49}}{4} Step 3: x=3+74=104=52x = \frac{3 + 7}{4} = \frac{10}{4} = \frac{5}{2} or x=3โˆ’74=โˆ’44=โˆ’1x = \frac{3 - 7}{4} = \frac{-4}{4} = -1
x=52,ย โˆ’1\boxed{x = \frac{5}{2},\ -1}

4.3 The Discriminant

4.3.1 Intuition

The discriminant D=b2โˆ’4acD = b^2 - 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โˆ’4acD = b^2 - 4ac
DiscriminantNature of RootsGraph
D>0D > 0Two distinct real rootsParabola crosses x-axis at two points
D=0D = 0One real root (double/repeated)Parabola touches x-axis at one point
D<0D < 0Two complex conjugate rootsParabola does NOT cross x-axis
(Diagram)

4.3.3 Worked Examples

Example 4.1 (Easy): Determine the nature of roots of x2โˆ’5x+6=0x^2 - 5x + 6 = 0. Step 1: a=1a = 1, b=โˆ’5b = -5, c=6c = 6 Step 2: D=25โˆ’24=1>0D = 25 - 24 = 1 > 0 Conclusion: Two distinct real roots.
D=1>0โ†’Twoย realย roots\boxed{D = 1 > 0 \rightarrow \text{Two real roots}}
Example 4.2 (Medium): For what kk does x2+kx+9=0x^2 + kx + 9 = 0 have a double root? Step 1: a=1a = 1, b=kb = k, c=9c = 9 Step 2: D=k2โˆ’36D = k^2 - 36 Step 3: For double root, D=0โ€…โ€ŠโŸนโ€…โ€Šk2=36โ€…โ€ŠโŸนโ€…โ€Šk=ยฑ6D = 0 \implies k^2 = 36 \implies k = \pm 6
k=6ย orย k=โˆ’6\boxed{k = 6 \text{ or } k = -6}
Example 4.3 (Hard): Show that f(x)=x2+x+1f(x) = x^2 + x + 1 has no real zeros. Step 1: a=1a = 1, b=1b = 1, c=1c = 1 Step 2: D=1โˆ’4=โˆ’3<0D = 1 - 4 = -3 < 0 Conclusion: No real zeros (complex roots). The parabola lies entirely above the x-axis.
D=โˆ’3<0โ†’Noย realย roots\boxed{D = -3 < 0 \rightarrow \text{No real roots}}

4.4 Sum and Product of Roots

4.4.1 Vieta's Formulas

For ax2+bx+c=0ax^2 + bx + c = 0 with roots ฮฑ\alpha and ฮฒ\beta:
ฮฑ+ฮฒ=โˆ’ba\alpha + \beta = -\frac{b}{a} ฮฑฮฒ=ca\alpha\beta = \frac{c}{a}
Derivation: If ฮฑ\alpha and ฮฒ\beta are roots, then ax2+bx+c=a(xโˆ’ฮฑ)(xโˆ’ฮฒ)ax^2 + bx + c = a(x - \alpha)(x - \beta) Expanding: a(x2โˆ’(ฮฑ+ฮฒ)x+ฮฑฮฒ)=ax2โˆ’a(ฮฑ+ฮฒ)x+aฮฑฮฒa(x^2 - (\alpha + \beta)x + \alpha\beta) = ax^2 - a(\alpha + \beta)x + a\alpha\beta Comparing: โˆ’a(ฮฑ+ฮฒ)=bโ€…โ€ŠโŸนโ€…โ€Šฮฑ+ฮฒ=โˆ’b/a-a(\alpha + \beta) = b \implies \alpha + \beta = -b/a And: aฮฑฮฒ=cโ€…โ€ŠโŸนโ€…โ€Šฮฑฮฒ=c/aa\alpha\beta = c \implies \alpha\beta = c/a

4.4.2 Worked Examples

Example 5.1 (Easy): Find the sum and product of roots of x2โˆ’7x+12=0x^2 - 7x + 12 = 0. Step 1: a=1a = 1, b=โˆ’7b = -7, c=12c = 12 Step 2: Sum =โˆ’(โˆ’7)/1=7= -(-7)/1 = 7 Step 3: Product =12/1=12= 12/1 = 12
Sum=7,ย Product=12\boxed{\text{Sum} = 7,\ \text{Product} = 12}
Example 5.2 (Medium): If ฮฑ\alpha and ฮฒ\beta are roots of 2x2โˆ’5x+1=02x^2 - 5x + 1 = 0, find 1ฮฑ+1ฮฒ\frac{1}{\alpha} + \frac{1}{\beta}. Step 1: ฮฑ+ฮฒ=52\alpha + \beta = \frac{5}{2}, ฮฑฮฒ=12\alpha\beta = \frac{1}{2} Step 2: 1ฮฑ+1ฮฒ=ฮฑ+ฮฒฮฑฮฒ=5/21/2=5\frac{1}{\alpha} + \frac{1}{\beta} = \frac{\alpha + \beta}{\alpha\beta} = \frac{5/2}{1/2} = 5
5\boxed{5}
Example 5.3 (Hard): Form a quadratic equation whose roots are 2+32 + \sqrt{3} and 2โˆ’32 - \sqrt{3}. Step 1: Sum =(2+3)+(2โˆ’3)=4= (2 + \sqrt{3}) + (2 - \sqrt{3}) = 4 Step 2: Product =(2+3)(2โˆ’3)=4โˆ’3=1= (2 + \sqrt{3})(2 - \sqrt{3}) = 4 - 3 = 1 Step 3: Equation: x2โˆ’(sum)x+(product)=0x^2 - (\text{sum})x + (\text{product}) = 0 x2โˆ’4x+1=0x^2 - 4x + 1 = 0
x2โˆ’4x+1=0\boxed{x^2 - 4x + 1 = 0}

4.5 Complex Roots

When D<0D < 0, the roots are complex conjugates: ฮฑ=p+qi\alpha = p + qi, ฮฒ=pโˆ’qi\beta = p - qi, where i=โˆ’1i = \sqrt{-1}. Example 6.1: Solve x2+4x+5=0x^2 + 4x + 5 = 0. Step 1: a=1a = 1, b=4b = 4, c=5c = 5 Step 2: D=16โˆ’20=โˆ’4<0D = 16 - 20 = -4 < 0 Step 3: x=โˆ’4ยฑโˆ’42=โˆ’4ยฑ2i2=โˆ’2ยฑix = \frac{-4 \pm \sqrt{-4}}{2} = \frac{-4 \pm 2i}{2} = -2 \pm i
x=โˆ’2+i,ย โˆ’2โˆ’i\boxed{x = -2 + i,\ -2 - i}

4.6 Why This Matters

The discriminant tells you everything about the behavior of a quadratic without solving it. In optimization:
  • D>0D > 0: Two break-even points
  • D=0D = 0: Exactly one break-even (touching)
  • D<0D < 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>0a > 0) guarantees a unique minimum.

๐Ÿ“ Key Formulas โ€” Summary Table

ConceptFormulaWhen to Use
Quadratic formulax=โˆ’bยฑb2โˆ’4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}Solving ANY quadratic
DiscriminantD=b2โˆ’4acD = b^2 - 4acNature of roots
D>0D > 0Two distinct real rootsParabola crosses x-axis twice
D=0D = 0One double real rootParabola touches x-axis
D<0D < 0Two complex conjugate rootsParabola doesn't cross x-axis
Sum of rootsฮฑ+ฮฒ=โˆ’b/a\alpha + \beta = -b/aVieta's formula
Product of rootsฮฑฮฒ=c/a\alpha\beta = c/aVieta's formula
Forming equationx2โˆ’(sum)x+(product)=0x^2 - (\text{sum})x + (\text{product}) = 0Given roots
Completing squarea(x+b2a)2+4acโˆ’b24aa\left(x + \frac{b}{2a}\right)^2 + \frac{4ac - b^2}{4a}Vertex form

โš ๏ธ Common Pitfalls

Pitfall 1: Sign Error in the Quadratic Formula

Mistake: Writing x=โˆ’bยฑb2โˆ’4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} correctly but evaluating โˆ’b-b as negative even when bb is already negative. Example: For x2โˆ’5x+6=0x^2 - 5x + 6 = 0, b=โˆ’5b = -5, so โˆ’b=5-b = 5, not โˆ’5-5. x=5ยฑ25โˆ’242=5ยฑ12=3,2x = \frac{5 \pm \sqrt{25 - 24}}{2} = \frac{5 \pm 1}{2} = 3, 2. โœ“

Pitfall 2: Forgetting the ยฑ\pm Sign

Mistake: Writing x=โˆ’b+D2ax = \frac{-b + \sqrt{D}}{2a} and forgetting ยฑ\pm, thus finding only one root. Correct: The ยฑ\pm gives both roots. Every quadratic (in the complex plane) has exactly two roots.

Pitfall 3: Discriminant Confusion

Mistake: Thinking D>0D > 0 means "one real root" or D=0D = 0 means "no real root." Correct: D>0D > 0 โ†’ TWO real roots; D=0D = 0 โ†’ ONE (double) real root; D<0D < 0 โ†’ NO real roots (complex).

Pitfall 4: Forgetting to Write in Standard Form First

Mistake: Trying to apply the quadratic formula to 3x2+5=7x3x^2 + 5 = 7x without rearranging. Correct: First write 3x2โˆ’7x+5=03x^2 - 7x + 5 = 0, then identify a=3a = 3, b=โˆ’7b = -7, c=5c = 5.

๐Ÿ“ Practice Questions

Q1: Solve x2โˆ’9=0x^2 - 9 = 0.
Strategy Hint: Difference of squares.
(xโˆ’3)(x+3)=0โ€…โ€ŠโŸนโ€…โ€Šx=3ย orย x=โˆ’3(x-3)(x+3) = 0 \implies x = 3 \text{ or } x = -3
x=ยฑ3\boxed{x = \pm 3} Q2: Solve 2x2โˆ’5xโˆ’3=02x^2 - 5x - 3 = 0 using the quadratic formula.
Strategy Hint: a=2a=2, b=โˆ’5b=-5, c=โˆ’3c=-3.
x=5ยฑ25+244=5ยฑ494=5ยฑ74x = \frac{5 \pm \sqrt{25 + 24}}{4} = \frac{5 \pm \sqrt{49}}{4} = \frac{5 \pm 7}{4} x=3ย orย x=โˆ’12x = 3 \text{ or } x = -\frac{1}{2}
x=3,ย โˆ’12\boxed{x = 3,\ -\frac{1}{2}} Q3: Find the discriminant and nature of roots of x2โˆ’6x+9=0x^2 - 6x + 9 = 0.
Strategy Hint: Compute D=b2โˆ’4acD = b^2 - 4ac.
D=36โˆ’36=0D = 36 - 36 = 0 โ†’ one double real root.
D=0,ย doubleย rootย x=3\boxed{D = 0,\ \text{double root } x = 3} Q4: For what kk does x2โˆ’4x+k=0x^2 - 4x + k = 0 have real and distinct roots?
Strategy Hint: Need D>0D > 0.
D=16โˆ’4k>0โ€…โ€ŠโŸนโ€…โ€Šk<4D = 16 - 4k > 0 \implies k < 4
k<4\boxed{k < 4} Q5: Find the sum and product of roots of 3x2+7xโˆ’2=03x^2 + 7x - 2 = 0.
Strategy Hint: Sum =โˆ’b/a= -b/a, Product =c/a= c/a.
Sum =โˆ’73= -\frac{7}{3}, Product =โˆ’23= -\frac{2}{3}
Sum=โˆ’73,ย Product=โˆ’23\boxed{\text{Sum} = -\frac{7}{3},\ \text{Product} = -\frac{2}{3}} Q6: Form a quadratic equation with roots 33 and โˆ’4-4.
Strategy Hint: x2โˆ’(sum)x+product=0x^2 - (\text{sum})x + \text{product} = 0.
Sum =3+(โˆ’4)=โˆ’1= 3 + (-4) = -1, Product =3(โˆ’4)=โˆ’12= 3(-4) = -12 x2โˆ’(โˆ’1)x+(โˆ’12)=0โ€…โ€ŠโŸนโ€…โ€Šx2+xโˆ’12=0x^2 - (-1)x + (-12) = 0 \implies x^2 + x - 12 = 0
x2+xโˆ’12=0\boxed{x^2 + x - 12 = 0} Q7: Solve x2โˆ’4x+13=0x^2 - 4x + 13 = 0 (complex roots).
Strategy Hint: D<0D < 0, use i=โˆ’1i = \sqrt{-1}.
x=4ยฑ16โˆ’522=4ยฑโˆ’362=4ยฑ6i2=2ยฑ3ix = \frac{4 \pm \sqrt{16 - 52}}{2} = \frac{4 \pm \sqrt{-36}}{2} = \frac{4 \pm 6i}{2} = 2 \pm 3i
x=2+3i,ย 2โˆ’3i\boxed{x = 2 + 3i,\ 2 - 3i} Q8: If ฮฑ,ฮฒ\alpha, \beta are roots of x2โˆ’5x+3=0x^2 - 5x + 3 = 0, find ฮฑ2+ฮฒ2\alpha^2 + \beta^2.
Strategy Hint: ฮฑ2+ฮฒ2=(ฮฑ+ฮฒ)2โˆ’2ฮฑฮฒ\alpha^2 + \beta^2 = (\alpha+\beta)^2 - 2\alpha\beta.
ฮฑ+ฮฒ=5\alpha + \beta = 5, ฮฑฮฒ=3\alpha\beta = 3 ฮฑ2+ฮฒ2=25โˆ’6=19\alpha^2 + \beta^2 = 25 - 6 = 19
19\boxed{19} Q9: Solve 2x2+3xโˆ’2=02x^2 + 3x - 2 = 0 by completing the square.
Strategy Hint: Divide by 2 first, then complete.
x2+32x=1x^2 + \frac{3}{2}x = 1 x2+32x+916=1+916=2516x^2 + \frac{3}{2}x + \frac{9}{16} = 1 + \frac{9}{16} = \frac{25}{16} (x+34)2=2516(x + \frac{3}{4})^2 = \frac{25}{16} x+34=ยฑ54x + \frac{3}{4} = \pm \frac{5}{4} x=โˆ’3ยฑ54โ€…โ€ŠโŸนโ€…โ€Šx=12ย orย x=โˆ’2x = \frac{-3 \pm 5}{4} \implies x = \frac{1}{2} \text{ or } x = -2
x=12,ย โˆ’2\boxed{x = \frac{1}{2},\ -2} Q10: A rectangular garden has area 96 mยฒ. The length is 4 m more than the width. Find dimensions.
Strategy Hint: l=w+4l = w + 4, A=w(w+4)=96A = w(w+4) = 96.
w2+4wโˆ’96=0w^2 + 4w - 96 = 0 D=16+384=400D = 16 + 384 = 400 w=โˆ’4ยฑ202=8ย orย โˆ’12w = \frac{-4 \pm 20}{2} = 8 \text{ or } -12 (discard negative) w=8w = 8, l=12l = 12
8mร—12m\boxed{8\text{m} \times 12\text{m}} Q11: If one root of x2โˆ’7x+k=0x^2 - 7x + k = 0 is 22, find kk and the other root.
Strategy Hint: If 22 is a root, f(2)=0f(2) = 0.
4โˆ’14+k=0โ€…โ€ŠโŸนโ€…โ€Šk=104 - 14 + k = 0 \implies k = 10 Other root: product =k=10= k = 10, so other root =10/2=5= 10/2 = 5 Check: 2+5=7=โˆ’b/a2 + 5 = 7 = -b/a โœ“
k=10,ย otherย root=5\boxed{k = 10,\ \text{other root} = 5} Q12: Prove that x2+px+p2=0x^2 + px + p^2 = 0 has no real roots for any non-zero real pp.
Strategy Hint: Show D<0D < 0 for pโ‰ 0p \neq 0.
D=p2โˆ’4p2=โˆ’3p2D = p^2 - 4p^2 = -3p^2 For pโ‰ 0p \neq 0, โˆ’3p2<0-3p^2 < 0 โ†’ no real roots.
D=โˆ’3p2<0ย forย pโ‰ 0\boxed{D = -3p^2 < 0 \text{ for } p \neq 0}

๐Ÿ”— Cross-References

Document outline

Keep your place and jump directly to a heading.

Table of contents

No note selected

Open a chapter to see its outline, backlinks, and sources here.