Skip to main content
Mathematics
ALGEBRA · 01

Factorization & the quadratic formula

A ball is thrown from a height. After tt seconds its height is given by an expression with a t2t^2 term, a tt term and a constant (the projectile page shows where it comes from). A sum like x2+5x+6x^2+5x+6 is an expression; each piece is a term: x2x^2, 5x5x, and the plain number 66, which is the constant term. An equation with an x2x^2 term, such as x2+5x+6=0x^2+5x+6=0, is called a quadratic equation. When does the ball reach the ground? We need the value of tt that makes the height zero, which means solving a quadratic equation. Usually we put an input into an expression and calculate the output, as on the function page. Here the question runs backwards: we know the output we want and must find the input that produces it.

Expanding (x+2)(x+3)(x + 2)(x + 3) gives x2+5x+6x^2 + 5x + 6. Taking one term from each bracket gives x⋅x=x2x\cdot x=x^2, x⋅3=3xx\cdot 3=3x, 2⋅x=2x2\cdot x=2x and 2⋅3=62\cdot 3=6; the middle terms add to 5x5x. Now cover the brackets and leave the expansion visible. To recover them, the two numbers must add to 5 and multiply to 6. We have something specific to look for. Rewriting a sum as this kind of product is factorization. If suitable integers do not come to mind, we need not keep guessing: later we will complete a square in the diagram, explain the corresponding algebra, and derive the quadratic formula from that construction.

01Where does every term come from?

The exponent 2 means two identical brackets, not squaring each term separately. Choose a formula below and play all four selections.

(a+b)2(a+b)^2
BRACKET 1(a+b)BRACKET 2(a+b)a²ababb²
Selection 1a⋅a=a2a\cdot a=a^2
Selection 2a⋅b=aba\cdot b=ab
Selection 3b⋅a=abb\cdot a=ab
Selection 4b⋅b=b2b\cdot b=b^2
**Multiplication distributes**: choose one term from **each bracket**, multiply, and add all four possible products.
0%
(a+b)2=a2+2ab+b2(a+b)^2=a^2+2ab+b^2
x2+6x+9=x2+2⋅3⋅x+32=(x+3)2x^2+6x+9=x^2+2\cdot3\cdot x+3^2=(x+3)^2

Read the identity backwards: x takes the role of a and 3 takes the role of b.

(a±b)2=a2±2ab+b2(a\pm b)^2=a^2\pm2ab+b^2

Use the matching sign throughout. The last term is always +b2+b^2, because both b⋅bb\cdot b and (−b)(−b) are b2b^2. In contrast, (a+b)(a−b)(a+b)(a-b) has a last term −b2-b^2.

02Use the expansion to find the factors.

For ax2+bx+cax^2+bx+c, suppose the factors are (Ax+B)(Cx+D)(Ax+B)(Cx+D). Capital AA, BB, CC, DD are unknown constants. Lowercase aa is the number in front of x2x^2 (the leading coefficient), bb the number in front of xx, and cc the constant. Multiply one term from each bracket, then collect the two terms containing xx. If two expressions are equal for every xx, their x2x^2, xx and constant coefficients must match. Matching the squared, linear and constant terms gives the three conditions below.

(Ax+B)(Cx+D)=ACx2+ADx+BCx+BD(Ax+B)(Cx+D)=ACx^2+ADx+BCx+BD
(Ax+B)(Cx+D)=ACx2+(AD+BC)x+BD(Ax+B)(Cx+D)=ACx^2+(AD+BC)x+BD
AC=a,AD+BC=b,BD=cAC=a,\qquad AD+BC=b,\qquad BD=c
2x2−2x−42x^2-2x-4
x coefficientsconstants1x-22x2AD = 2BC = -4AD + BC = -2AC = 2BD = -4
(x−2)(2x+2)(x-2)(2x+2)

Choose factors for the leading coefficient and the constant. The crossing products must add to the middle coefficient. Cross-multiplying means multiplying AA with DD and BB with CC, then adding the two products. The display always shows the product you actually chose.

Matched: -2 is the required coefficient -2. The factorization is valid.
2x2−2x−4=(x−2)(2x+2)2x^2-2x-4=(x-2)(2x+2)1⋅2=2,(−2)⋅2=−4,1⋅2+(−2)⋅2=−21\cdot2=2,\quad(-2)\cdot2=-4,\quad1\cdot2+(-2)\cdot2=-2

If this expression equals zero, (x−2)(2x+2)=0(x-2)(2x+2)=0. Why must a factor be zero? If x−2x-2 is not zero, we may divide by it, leaving 2x+2=02x+2=0. Thus either x−2=0x-2=0, giving x=2x=2, or 2x+2=02x+2=0, giving x=−1x=-1. Substituting either answer makes the original product zero. Integer factors are convenient, but not every quadratic has them. We need another way to solve those equations: completing the square.

03Build the quadratic formula, one equality at a time.

A quadratic equation has the standard form ax2+bx+c=0ax^2+bx+c=0, with a≠0a\ne0. We want to isolate xx. Turning the left side into a square will let us take square roots. The area picture first shows why a corner must be added; the algebra then works for all signs of the coefficients. Taking a square root can give two signs: if (x+3)2=16(x+3)^2=16, then x+3x+3 is either 44 or −4-4. The notation ∣a∣|a| means the size of aa without its sign. Click any line to inspect that step.

Area example: x2+6xx^2 + 6x. Split 6x into two strips of area 3x, and move one around the square. Here x>0x > 0.

x²3x3x3²x3x3
x2+6x=(x+3)2−9x^2+6x=(x+3)^2-9
The missing corner is 3×3=93 \times 3 = 9. Adding it completes a square of side x+3x+3. For negative bb, use the same algebra; do not interpret a negative number as a physical side length.
DERIVATION 1 / 9
ax2+bx+c=0(a≠0)ax^2+bx+c=0\quad(a\ne0)

The leading coefficient a is nonzero; otherwise this is not quadratic.

0%

What does the square root tell us?

Δ=b2−4ac=0\Delta=b^2-4ac=0

Zero Δ\Delta: the two signs give the same root, a repeated real root.

x=−3x=-3

Sign in to see more

Sign in to continue the rest of this lesson and keep your progress in sync.