Index Ai Academy
Foundation · Foundation mathAlgebra

Quadratics: bowls and their lowest point

About 42 minLooking ahead: some prerequisites aren't done yet

Why this matters

A quadratic, ax² + bx + c, is the simplest curve with a lowest (or highest) point. That makes it the shape of learning itself: the squared-error loss of a one-weight model is a quadratic bowl, and training means finding its bottom. This lesson finds where a quadratic crosses zero, two ways, and then the exact bottom of the bowl, which for a model is the best weight. You'll also write one Python function that handles every quadratic, including the ones with no roots.

  • Recognize ax² + bx + c as a bowl or a hill, and find where it crosses zero
  • Find roots by factoring and by the formula, and tell 2, 1 or 0 roots from the discriminant
  • Find the lowest point of a bowl at x = −b/(2a), and compute roots and vertices in Python
  • Find the best weight for a one-weight model as the bottom of its loss bowl
Quick check
Have a guess before you start. Where does y = x² − 4 cross zero?

The math: the bowl and its bottom

Purpose. The simplest curve with a lowest point.

A quadratic is ax² + bx + c, with a not 0. Its graph is a U-shaped parabola: a bowl when a is positive, a hill when a is negative. Two places on it matter:

  • the roots, where it crosses zero (y = 0), and
  • the vertex, its lowest point (or highest, for a hill).

Roots by factoring. A product is zero only when one of its factors is zero. So once a quadratic is factored, its roots appear at sight: x² − 2x − 3 = (x − 3)(x + 1), which is zero when x = 3 or x = −1.