1. Home
  2. Explore
  3. Mathematics
  4. Understanding the Quadratic Formula

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Understanding the Quadratic Formula

The Quadratic Formula Through Patterns and Representations

Why the quadratic formula matters

The quadratic formula is often memorized as a collection of symbols, but its underlying ideas connect to several broader mathematical patterns:

  • Factoring a number close to a perfect square

  • Expressing a product as a difference of squares

  • Relating a quadratic’s roots to its coefficients

  • Changing how information is represented to make a problem easier

These connections make quadratic equations easier to understand and solve, and they also appear in applications such as computer graphics.


1. Factoring numbers close to perfect squares

A useful mental-math strategy is to look for a nearby square when factoring a number.

For example:

  • 35=36−1=62−1235 = 36 - 1 = 6^2 - 1^235=36−1=62−12, so 35=(6−1)(6+1)=5⋅735 = (6-1)(6+1)=5\cdot735=(6−1)(6+1)=5⋅7.

  • 143=144−1=122−12143 = 144 - 1 = 12^2 - 1^2143=144−1=122−12, so 143=(12−1)(12+1)=11⋅13143 = (12-1)(12+1)=11\cdot13143=(12−1)(12+1)=11⋅13.

  • 3599=3600−1=602−123599 = 3600 - 1 = 60^2 - 1^23599=3600−1=602−12, so 3599=(60−1)(60+1)=59⋅613599 = (60-1)(60+1)=59\cdot613599=(60−1)(60+1)=59⋅61.

The key identity is the difference-of-squares formula:

x2−y2=(x−y)(x+y)x^2-y^2=(x-y)(x+y)x2−y2=(x−y)(x+y)

In particular, when a number is one less than a square,

x2−1=(x−1)(x+1)x^2-1=(x-1)(x+1)x2−1=(x−1)(x+1)

This explains why the factors of a number just below a square often lie on either side of the square root.

More generally, if a number NNN can be written as k2−d2k^2-d^2k2−d2, then

N=(k−d)(k+d)N=(k-d)(k+d)N=(k−d)(k+d)

This strategy can simplify factoring when a number is close to a perfect square. It does not mean that every number will factor neatly this way, but it provides a useful structure to look for.


2. A product as a difference of squares

Suppose two numbers lie equally far from a midpoint mmm. They can be represented as

m−dandm+dm-d \quad\text{and}\quad m+dm−dandm+d

where ddd is their distance from the midpoint. Their product is

(m−d)(m+d)=m2−d2(m-d)(m+d)=m^2-d^2(m−d)(m+d)=m2−d2

The middle terms cancel when the product is expanded.

This identity gives a way to understand a product in terms of the two numbers’ midpoint and distance from that midpoint. Any two numbers rrr and sss can be described this way:

m=r+s2,d=s−r2m=\frac{r+s}{2}, \qquad d=\frac{s-r}{2}m=2r+s​,d=2s−r​

Thus, questions about products can sometimes be transformed into questions about differences of squares. A seemingly irregular pair of numbers may become easier to analyze once it is represented by its midpoint and its displacement from that midpoint.

Key idea: A pair of numbers can be described either directly, as rrr and sss, or indirectly, as m−dm-dm−d and m+dm+dm+d. The second representation makes their product a difference of squares.


3. Normalizing a quadratic

A general quadratic equation has the form

ax2+bx+c=0ax^2+bx+c=0ax2+bx+c=0

where a≠0a\ne 0a=0. Dividing every term by aaa gives the equivalent equation

x2+b′x+c′=0x^2+b'x+c'=0x2+b′x+c′=0

where

b′=ba,c′=cab'=\frac{b}{a}, \qquad c'=\frac{c}{a}b′=ab​,c′=ac​

This process is called normalizing the quadratic: it changes the coefficients but leaves the roots unchanged. Multiplying or dividing an equation by a nonzero constant does not change which values make its two sides equal.

For example, the equation

3x2−4x+5=03x^2-4x+5=03x2−4x+5=0

can be normalized to

x2−43x+53=0x^2-\frac{4}{3}x+\frac{5}{3}=0x2−34​x+35​=0

The normalized form is useful because its leading coefficient is 111, which makes the connection between coefficients and roots especially clear.


4. How the roots determine the coefficients

Suppose the roots of a normalized quadratic are rrr and sss. A monic quadratic with these roots is

(x−r)(x−s)(x-r)(x-s)(x−r)(x−s)

Expanding gives

(x−r)(x−s)=x2−(r+s)x+rs(x-r)(x-s)=x^2-(r+s)x+rs(x−r)(x−s)=x2−(r+s)x+rs

Comparing this with

x2+b′x+c′x^2+b'x+c'x2+b′x+c′

gives two important relationships:

r+s=−b′r+s=-b'r+s=−b′

and

rs=c′rs=c'rs=c′

These are examples of Vieta’s relationships: the coefficients of a polynomial are connected to sums and products of its roots.

For a normalized quadratic:

  • The coefficient of xxx is the negative sum of the roots.

  • The constant term is the product of the roots.

This also explains why factoring by inspection sometimes works. For example,

x2−7x+12=0x^2-7x+12=0x2−7x+12=0

requires two roots whose sum is 777 and whose product is 121212. The numbers 333 and 444 satisfy both conditions, so

x2−7x+12=(x−3)(x−4)x^2-7x+12=(x-3)(x-4)x2−7x+12=(x−3)(x−4)

and the roots are 333 and 444.

Guessing is not always practical, however. The midpoint-and-distance method turns these relationships into a systematic procedure.


5. Deriving the simpler quadratic formula

Let rrr and sss be the roots of the normalized quadratic

x2+b′x+c′=0x^2+b'x+c'=0x2+b′x+c′=0

Write the roots in midpoint form:

r=m−d,s=m+dr=m-d, \qquad s=m+dr=m−d,s=m+d

Their midpoint is

m=r+s2m=\frac{r+s}{2}m=2r+s​

Since r+s=−b′r+s=-b'r+s=−b′, the midpoint is

m=−b′2m=-\frac{b'}{2}m=−2b′​

Their product is

rs=(m−d)(m+d)=m2−d2rs=(m-d)(m+d)=m^2-d^2rs=(m−d)(m+d)=m2−d2

But rs=c′rs=c'rs=c′, so

c′=m2−d2c'=m^2-d^2c′=m2−d2

Rearranging gives

d2=m2−c′d^2=m^2-c'd2=m2−c′

Therefore, the roots are

r,s=m±m2−c′r,s=m\pm\sqrt{m^2-c'}r,s=m±m2−c′​

Substituting m=−b′2m=-\frac{b'}{2}m=−2b′​ gives the normalized quadratic’s roots directly. The compact pattern is:

Roots = midpoint ±\boldsymbol{\pm}± distance, where the midpoint is half the sum of the roots and the squared distance is the midpoint squared minus their product.

The expression m2−c′m^2-c'm2−c′ determines whether the roots are real or complex:

  • If m2−c′>0m^2-c'>0m2−c′>0, there are two distinct real roots.

  • If m2−c′=0m^2-c'=0m2−c′=0, the two roots coincide.

  • If m2−c′<0m^2-c'<0m2−c′<0, the roots are a complex-conjugate pair.


6. Worked examples

Example 1: A normalized quadratic with real roots

Solve

x2+10x+3=0x^2+10x+3=0x2+10x+3=0

The midpoint is

m=−102=−5m=-\frac{10}{2}=-5m=−210​=−5

The squared distance from the midpoint is

d2=m2−c′=25−3=22d^2=m^2-c'=25-3=22d2=m2−c′=25−3=22

Thus, the roots are

−5±22-5\pm\sqrt{22}−5±22​

Example 2: A quadratic that must first be normalized

Solve

3x2−4x+5=03x^2-4x+5=03x2−4x+5=0

After dividing by 333:

x2−43x+53=0x^2-\frac{4}{3}x+\frac{5}{3}=0x2−34​x+35​=0

The midpoint is

m=−−4/32=23m=-\frac{-4/3}{2}=\frac{2}{3}m=−2−4/3​=32​

The squared distance is

d2=m2−c′=49−53=49−159=−119d^2=m^2-c' =\frac{4}{9}-\frac{5}{3} =\frac{4}{9}-\frac{15}{9} =-\frac{11}{9}d2=m2−c′=94​−35​=94​−915​=−911​

Because the squared distance is negative, the roots are complex:

23±−119=23±113i\frac{2}{3}\pm\sqrt{-\frac{11}{9}} = \frac{2}{3}\pm\frac{\sqrt{11}}{3}i32​±−911​​=32​±311​​i

Example 3: A simple pair of complex roots

Solve

x2−6x+10=0x^2-6x+10=0x2−6x+10=0

The midpoint is

m=−−62=3m=-\frac{-6}{2}=3m=−2−6​=3

The squared distance is

d2=32−10=−1d^2=3^2-10=-1d2=32−10=−1

Therefore, the roots are

3±i3\pm i3±i

7. Complex roots and the Pythagorean theorem

The roots 3+i3+i3+i and 3−i3-i3−i can be pictured as points in the complex plane. Each has real part 333 and imaginary part either 111 or −1-1−1. The distance from the origin to either point is its modulus, found using the Pythagorean theorem:

∣3±i∣=32+12=10|3\pm i|=\sqrt{3^2+1^2}=\sqrt{10}∣3±i∣=32+12​=10​

The product of the roots is

(3+i)(3−i)=32−i2=9−(−1)=10(3+i)(3-i)=3^2-i^2=9-(-1)=10(3+i)(3−i)=32−i2=9−(−1)=10

Because the roots are complex conjugates, their moduli are equal. The modulus of their product is the product of their moduli, so each modulus must be 10\sqrt{10}10​.

This is another appearance of the difference-of-squares identity. With an imaginary distance, the product becomes a sum of squares:

(m+id)(m−id)=m2−(id)2=m2+d2(m+i d)(m-i d)=m^2-(i d)^2=m^2+d^2(m+id)(m−id)=m2−(id)2=m2+d2

Here, i2=−1i^2=-1i2=−1, so subtracting a negative square produces addition. This connects quadratic equations with complex numbers and the geometry of right triangles.


8. From the simpler formula to the standard quadratic formula

For the general equation

ax2+bx+c=0ax^2+bx+c=0ax2+bx+c=0

normalizing gives

x2+bax+ca=0x^2+\frac{b}{a}x+\frac{c}{a}=0x2+ab​x+ac​=0

The midpoint of the roots is

m=−12(ba)=−b2am=-\frac{1}{2}\left(\frac{b}{a}\right) =-\frac{b}{2a}m=−21​(ab​)=−2ab​

The squared distance from the midpoint is

d2=m2−ca=(−b2a)2−cad^2=m^2-\frac{c}{a} =\left(-\frac{b}{2a}\right)^2-\frac{c}{a}d2=m2−ac​=(−2ab​)2−ac​

Combining the terms gives

d2=b2−4ac4a2d^2=\frac{b^2-4ac}{4a^2}d2=4a2b2−4ac​

Thus, the roots m±dm\pm dm±d are

x=−b±b2−4ac2a\boxed{x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}}x=2a−b±b2−4ac​​​

This is the standard quadratic formula. Its larger expression comes from writing the midpoint-and-distance method entirely in terms of the original coefficients aaa, bbb, and ccc.

The quantity b2−4acb^2-4acb2−4ac is the discriminant. Its sign determines the type of roots:

  • If b2−4ac>0b^2-4ac>0b2−4ac>0, there are two distinct real roots.

  • If b2−4ac=0b^2-4ac=0b2−4ac=0, there is one repeated real root.

  • If b2−4ac<0b^2-4ac<0b2−4ac<0, there are two nonreal complex-conjugate roots.

The midpoint-and-distance form can be easier to interpret because it separates the answer into a central value and an offset. The standard formula compresses those same relationships into one expression.


9. An application: quadratic equations in ray tracing

The quadratic formula has practical uses in computer graphics, including ray tracing. Ray tracing models light by sending rays through pixels in an image and calculating what each ray encounters in a scene.

To determine whether a ray intersects a sphere, a program can describe the ray’s position as a function of time and calculate its distance from the sphere’s center. Setting that distance equal to the sphere’s radius leads to a quadratic equation.

The solutions tell the program when the ray intersects the sphere:

  • Two real solutions can represent entry into and exit from the sphere.

  • One repeated solution can represent a ray that just grazes the sphere.

  • No real solutions mean the ray misses the sphere.

A graphics program may perform this calculation for vast numbers of rays across many pixels and frames. A formula that may rarely be used directly in everyday life can therefore be applied repeatedly in specialized technical work.


10. Mathematical problem-solving through representation

The quadratic formula illustrates a broader strategy: the same information can be represented in different ways, and some representations make particular tasks easier.

For a quadratic, the relevant information can be described through:

  • The coefficients aaa, bbb, and ccc

  • The roots rrr and sss

  • The midpoint mmm and distance ddd of the roots

Moving from roots to coefficients is straightforward: expand (x−r)(x−s)(x-r)(x-s)(x−r)(x−s). Moving from coefficients to roots is harder, so it helps to use an intermediate representation. Normalizing the equation and then using midpoint and distance turns the problem into a familiar difference-of-squares calculation.

This is a general mathematical habit: when a problem is difficult in its current form, look for another way to represent the same information. A suitable intermediate form may reveal patterns that are hidden in the original one.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent