Free preview

83 lessons

Mathematical Foundations for ML

Free preview

Mathematical Foundations for ML · 83 lessons

Build the maths foundations that make ML click

No surprise gaps

Actually remember it

Skip what you know

One subscription. All learning paths included.

Our content is best on a larger screen

Quadratics with no real solutions

Negative discriminant means no real solutions

Explanation

The discriminant Δ=b24ac\Delta = b^2 - 4ac tells us how many real solutions a quadratic equation ax2+bx+c=0ax^2 + bx + c = 0 has. We already know the three cases: Δ>0\Delta > 0 gives two real solutions, Δ=0\Delta = 0 gives one repeated solution, and Δ<0\Delta < 0 gives none. But why does a negative discriminant rule out real solutions entirely?

Look at the quadratic formula:

x=b±Δ2ax = \dfrac{-b \pm \sqrt{\Delta}}{2a}

When Δ<0\Delta < 0, the formula asks us to take the square root of a negative number. No real number squared gives a negative result: positive numbers square to positives, negative numbers square to positives, and 02=00^2 = 0. So Δ\sqrt{\Delta} does not exist in the real numbers, and neither does xx.

Sometimes we can spot this without computing Δ\Delta at all. For instance, x2+9=0x^2 + 9 = 0 rearranges to x2=9x^2 = -9. Since no real number squares to 9-9, there are no real solutions.

A brief look ahead - complex numbers

Details

Example

Determine whether 2x23x+5=02x^2 - 3x + 5 = 0 has real solutions.

Solution

We identify a=2a = 2, b=3b = -3, and c=5c = 5, then compute the discriminant:

Δ=b24ac=(3)24(2)(5)=940=31.\begin{align*} \Delta &= b^2 - 4ac \\ &= (-3)^2 - 4(2)(5) \\ &= 9 - 40 \\ &= -31. \end{align*}

Since Δ=31<0\Delta = -31 < 0, the quadratic formula would require 31\sqrt{-31}, which has no real value. The equation has no real solutions.

What would the complex solutions look like?

Details

Practice questions

4 questions

What is the discriminant of 3x2+2x+4=03x^2 + 2x + 4 = 0, and what does it tell us?

Select the correct answer:

+ 3 more questions

Geometric interpretation

Explanation

Every quadratic y=ax2+bx+cy = ax^2 + bx + c graphs as a U-shaped curve called a parabola. The real solutions of ax2+bx+c=0ax^2 + bx + c = 0 are the xx-coordinates where the parabola crosses the xx-axis (where y=0y = 0). The discriminant tells us how many crossings there are:

  • Δ>0\Delta > 0: the parabola crosses the xx-axis twice (two real solutions).
  • Δ=0\Delta = 0: the parabola just touches the xx-axis at its turning point (one repeated solution).
  • Δ<0\Delta < 0: the parabola misses the xx-axis entirely (no real solutions).

The turning point of a parabola is its lowest or highest point. The sign of aa determines the direction:

  • a>0a > 0: the parabola opens upward (U-shape), so the turning point is the lowest point. If this lowest point sits above the xx-axis, the parabola never reaches y=0y = 0 - no real solutions.
  • a<0a < 0: the parabola opens downward (inverted U), so the turning point is the highest point. If this highest point sits below the xx-axis, the parabola again never reaches y=0y = 0.

Use the sliders to adjust aa, bb, and cc and watch how the discriminant and the number of xx-axis crossings change together.

123456−1−212345678−3−4−1−2
(1.0,4.0)
Δ=16.0 - no real solutions

y=1.0x22.0x+5.0

a 1.0
b −2.0
c 5.0

Example

Does x22x+5=0x^2 - 2x + 5 = 0 have real solutions? What does the parabola y=x22x+5y = x^2 - 2x + 5 look like?

Solution

First, the discriminant:

Δ=(2)24(1)(5)=420=16<0.\Delta = (-2)^2 - 4(1)(5) = 4 - 20 = -16 < 0.

So the equation has no real solutions. Geometrically, this means the parabola does not cross the xx-axis. We can see why in the graph below:

12345−1−2−3123456789
(1,4)

The parabola opens upward (a=1>0a = 1 > 0), so its turning point is the lowest point on the curve. That lowest point is at y=4y = 4, which is above the xx-axis - the dashed line shows the gap. The parabola never comes down far enough to reach y=0y = 0, so there are no xx-axis crossings and no real solutions.

Practice questions

4 questions

A parabola opens upward and has its turning point at (3,7)(3, 7). How many real roots does the corresponding quadratic equation have?

Select the correct answer:

+ 3 more questions