Algebra Formulas

The algebra formulas used most often in school and in practice: the quadratic formula, the special products and factoring patterns, and the equations of straight lines.

The quadratic formula

A quadratic equation ax² + bx + c = 0 with a ≠ 0 has solutions x = (−b ± √(b² − 4ac)) ÷ 2a.

The discriminant D = b² − 4ac decides the kind of roots: D > 0 gives two distinct real roots, D = 0 one repeated real root, and D < 0 two complex conjugate roots.

Example: x² − 5x + 6 = 0 has a = 1, b = −5, c = 6, so D = 25 − 24 = 1 and x = (5 ± 1) ÷ 2, giving x = 3 or x = 2.

Quadratic facts
QuantityFormula
Rootsx = (−b ± √(b² − 4ac)) ÷ 2a
DiscriminantD = b² − 4ac
Vertex(h, k) with h = −b ÷ 2a, k = c − b² ÷ 4a
Vertex formy = a(x − h)² + k
Factored formy = a(x − x₁)(x − x₂)
Sum of rootsx₁ + x₂ = −b ÷ a
Product of rootsx₁ × x₂ = c ÷ a

Sources: OpenStax: College Algebra 2e §2.5 Quadratic Equations

Special products and factoring

These identities hold for all real (and complex) a and b. Read left to right to expand; read right to left to factor.

Algebraic identities
NameIdentity
Square of a sum(a + b)² = a² + 2ab + b²
Square of a difference(a − b)² = a² − 2ab + b²
Difference of squaresa² − b² = (a + b)(a − b)
Cube of a sum(a + b)³ = a³ + 3a²b + 3ab² + b³
Cube of a difference(a − b)³ = a³ − 3a²b + 3ab² − b³
Sum of cubesa³ + b³ = (a + b)(a² − ab + b²)
Difference of cubesa³ − b³ = (a − b)(a² + ab + b²)
FOIL(a + b)(c + d) = ac + ad + bc + bd
Trinomial square(a + b + c)² = a² + b² + c² + 2ab + 2bc + 2ca

Sources: OpenStax: College Algebra 2e §1.4 Polynomials; OpenStax: College Algebra 2e §1.5 Factoring Polynomials

Lines, distance and properties of numbers

For points (x₁, y₁) and (x₂, y₂) in the plane:

  • Slope: m = (y₂ − y₁) ÷ (x₂ − x₁)
  • Slope-intercept form: y = mx + b
  • Point-slope form: y − y₁ = m(x − x₁)
  • Standard form: Ax + By = C
  • Distance: d = √((x₂ − x₁)² + (y₂ − y₁)²)
  • Midpoint: ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2)
  • Parallel lines have equal slopes; perpendicular lines have slopes whose product is −1
  • Distributive property: a(b + c) = ab + ac; commutative: a + b = b + a, ab = ba; associative: (a + b) + c = a + (b + c)
  • Absolute value: |x| = x if x ≥ 0 and −x if x < 0; |ab| = |a||b|

Sources: OpenStax: College Algebra 2e §1.1 Real Numbers: Algebra Essentials

References

Frequently asked questions

When can I not use the quadratic formula?

Only when a = 0, because then the equation is linear (bx + c = 0) and the formula would divide by zero. For every a ≠ 0 the formula gives both roots.

What does a negative discriminant mean?

The parabola does not cross the x-axis, so there are no real roots. The two roots are complex: x = −b/2a ± i√(4ac − b²)/2a.