Expanding multiplies brackets into a sum. Factorizing reverses that process. We will trace every product, match the coefficients, then build a formula that solves any quadratic equation over the real or complex numbers.
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
Selection 1a⋅a=a2
Selection 2a⋅b=ab
Selection 3b⋅a=ab
Selection 4b⋅b=b2
Multiplication distributes: choose one term from EACH bracket, multiply, and add all four possible products.
(a+b)2=a2+2ab+b2
x2+6x+9=x2+2⋅3⋅x+32=(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
Use the matching sign throughout. The last term is always +b², because both b·b and (−b)(−b) are b². In contrast, (a+b)(a−b) has a last term −b².
02Use the expansion to find the factors.
For ax²+bx+c, suppose the factors are (Ax+B)(Cx+D). Capital A, B, C, D are unknown constants, distinct from the original coefficients a, b, c. Expanding gives the three conditions below.
(Ax+B)(Cx+D)=ACx2+(AD+BC)x+BD AC=a,AD+BC=b,BD=c
2x2−2x−4
(x−2)(2x+2)
Choose factors for the leading coefficient and the constant. The crossing products must add to the middle coefficient. 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)1⋅2=2,(−2)⋅2=−4,1⋅2+(−2)⋅2=−2
If this expression equals zero, at least one factor must be zero: x=2 or x=−1. Integer factors are convenient, but not every quadratic has them. Completing the square is the general method.
03Build the quadratic formula, one equality at a time.
A quadratic equation has the standard form ax²+bx+c=0, with a≠0. The goal is to isolate x by turning the left side into a square. Click any line to inspect that step.
Area example: x² + 6x. Split 6x into two strips of area 3x, and move one around the square. Here x > 0.
x2+6x=(x+3)2−9
The missing corner is 3 × 3 = 9. Adding it completes a square of side x+3. For negative b, use the same algebra; do not interpret a negative number as a physical side length.
DERIVATION 1 / 9
ax2+bx+c=0(a=0)
The leading coefficient a is nonzero; otherwise this is not quadratic.
What does the square root tell us?
Δ=b2−4ac=0
Zero Δ: the two signs give the same root, a repeated real root.