Facebook Pixel
Mathos AI logo

Quadratic Formula and Completing the Square

Quadratic Formula and Completing the Square

A quadratic equation is an equation that can be written in the standard form ax2+bx+c=0ax^2 + bx + c = 0, where aa, bb, and cc are constants and a≠0a \neq 0. While some quadratic equations can be solved by factoring, not all of them can. For those that cannot be easily factored, we use two powerful methods: completing the square and the quadratic formula.

Completing the Square

Completing the square is a method used to rewrite a quadratic equation so that it contains a perfect square trinomial. This allows you to solve for xx by taking the square root of both sides.

Steps to complete the square for x2+bx+c=0x^2 + bx + c = 0:

  1. Move the constant term cc to the right side of the equation.
  2. Take half of the xx coefficient (bb), square it: (b2)2(\frac{b}{2})^2.
  3. Add this value to both sides of the equation.
  4. Rewrite the left side as a squared binomial: (x+b2)2(x + \frac{b}{2})^2.
  5. Take the square root of both sides (remembering the ±\pm symbol) and solve for xx.

Example: Solve x2+6x+2=0x^2 + 6x + 2 = 0

  1. Move the constant to the right side: x2+6x=−2x^2 + 6x = -2
  2. Take half of 66 (which is 33) and square it to get 99. Add 99 to both sides: x2+6x+9=−2+9x^2 + 6x + 9 = -2 + 9
  3. Factor the left side into a perfect square: (x+3)2=7(x + 3)^2 = 7
  4. Take the square root of both sides: x+3=±7x + 3 = \pm\sqrt{7}
  5. Solve for xx: x=−3±7x = -3 \pm \sqrt{7}

The Quadratic Formula

The quadratic formula is derived from completing the square and provides a direct way to find the solutions to any quadratic equation ax2+bx+c=0ax^2 + bx + c = 0.

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

Example: Solve 3x2−2x−5=03x^2 - 2x - 5 = 0

Here, a=3a = 3, b=−2b = -2, and c=−5c = -5. Plug these values into the formula:

x=−(−2)±(−2)2−4(3)(−5)2(3)x = \frac{-(-2) \pm \sqrt{(-2)^2 - 4(3)(-5)}}{2(3)} x=2±4+606x = \frac{2 \pm \sqrt{4 + 60}}{6} x=2±646x = \frac{2 \pm \sqrt{64}}{6} x=2±86x = \frac{2 \pm 8}{6}

Now, calculate the two possible values for xx:

  • x=2+86=106=53x = \frac{2 + 8}{6} = \frac{10}{6} = \frac{5}{3}
  • x=2−86=−66=−1x = \frac{2 - 8}{6} = \frac{-6}{6} = -1

The solutions are x=53x = \frac{5}{3} and x=−1x = -1.

The Discriminant

The expression inside the square root of the quadratic formula, b2−4acb^2 - 4ac, is called the discriminant. It tells you exactly how many real solutions the quadratic equation has, without having to solve the entire equation.

  • If b2−4ac>0b^2 - 4ac > 0: The equation has two distinct real solutions.
  • If b2−4ac=0b^2 - 4ac = 0: The equation has exactly one real solution (a repeated root).
  • If b2−4ac<0b^2 - 4ac < 0: The equation has no real solutions (the solutions are complex numbers).