Solving Quadratic Equations by Completing the Square

Foundations of Perfect Square Trinomials
  • [Definition of a Perfect Square Trinomial] A trinomial that results from squaring a binomial. When factored, it always yields a repeated factor and can be expressed in the form (x+d)2(x + d)^2 or (x−d)2(x - d)^2.

  • [Factoring Mechanics] Factoring a trinomial of the form x2+bx+cx^2 + bx + c requires identifying two factors of the constant term cc that simultaneously sum to the linear coefficient bb.

  • Example: x2+8x+16x^2 + 8x + 16

    • Find factors of positive 1616 that sum to positive 88.

    • The factors are positive 44 and positive 44, since 4×4=164 \times 4 = 16 and 4+4=84 + 4 = 8.

    • Because the factor is repeated, the trinomial is written as the binomial squared: (x+4)2(x + 4)^2.

  • Example: x2+2x+1x^2 + 2x + 1

    • Find factors of positive 11 that sum to positive 22.

    • The factors are positive 11 and positive 11, since 1×1=11 \times 1 = 1 and 1+1=21 + 1 = 2.

    • Written as a binomial squared: (x+1)2(x + 1)^2.

  • Example: x2−18x+81x^2 - 18x + 81

    • Find factors of positive 8181 that sum to negative −18-18.

    • The factors are −9-9 and −9-9, since (−9)×(−9)=81(-9) \times (-9) = 81 and (−9)+(−9)=−18(-9) + (-9) = -18.

    • Written as a binomial squared: (x−9)2(x - 9)^2.

  • Example: x2−10x+25x^2 - 10x + 25

    • Find factors of positive 2525 that sum to negative −10-10.

    • The factors are −5-5 and −5-5, since (−5)×(−5)=25(-5) \times (-5) = 25 and (−5)+(−5)=−10(-5) + (-5) = -10.

    • Written as a binomial squared: (x−5)2(x - 5)^2.

Solving Equations Using Square Roots
  • * [Core Principle of the Square Root Method] When an equation features a perfect square trinomial set equal to a constant, factoring the trinomial into a squared binomial allows both sides of the equation to be solved via square roots. Taking the square root of a squared quantity undoes the exponent of 22, isolating the binomial inside the parentheses.

  • * [The Dual Root Rule] Every positive real number possesses two square roots: a positive principal square root and a negative square root. Both possibilities must be accounted for using the plus-or-minus symbol (±\pm).

  • Example 1: x2+4x+4=25x^2 + 4x + 4 = 25

    • Identify the left-hand side as a perfect square trinomial: factors of 44 that sum to 44 are 22 and 22.

    • Rewrite the equation as a binomial squared: (x+2)2=25(x + 2)^2 = 25.

    • Take the square root of both sides to undo the power of 22: (x+2)2=±25\sqrt{(x + 2)^2} = \pm\sqrt{25}, which simplifies to x+2=±5x + 2 = \pm 5.

    • Separate into two distinct linear equations: x+2=5x + 2 = 5 and x+2=−5x + 2 = -5.

    • Solve each equation independently: x=5−2=3x = 5 - 2 = 3 and x=−5−2=−7x = -5 - 2 = -7.

    • The two solutions are x=−7x = -7 and x=3x = 3.

  • Example 3: x2−14x+49=4x^2 - 14x + 49 = 4

    • Identify the left-hand side as a perfect square trinomial: factors of 4949 that sum to −14-14 are −7-7 and −7-7.

    • Rewrite as a squared binomial: (x−7)2=4(x - 7)^2 = 4.

    • Take the square root of both sides: (x−7)2=±4\sqrt{(x - 7)^2} = \pm\sqrt{4}, which simplifies to x−7=±2x - 7 = \pm 2.

    • Set up both operational cases: x−7=2x - 7 = 2 and x−7=−2x - 7 = -2.

    • Solve each case: x=2+7=9x = 2 + 7 = 9 and x=−2+7=5x = -2 + 7 = 5.

    • The solutions are x=5x = 5 and x=9x = 9.

  • Practice Note: Examples 2 and 4 follow this exact procedure: factor the existing perfect square trinomial on the left into a squared binomial, apply the square root to both sides including the ±\pm sign, and solve the two resulting linear equations.

The Completing the Square Method
  • * [Purpose] When a quadratic equation does not naturally contain a perfect square trinomial, the method of completing the square artificially creates one through algebraic manipulation.

  • * [Algorithmic Procedure]

    1. Step 1 (Isolate terms): Rewrite the equation into the form x2+bx=cx^2 + bx = c by moving the constant term over to the opposite side of the equality.

    2. Step 2 (Calculate and add): Identify the linear coefficient bb, divide it by 22 to get half of bb, square that result: (b2)2\left(\frac{b}{2}\right)^2, and add this calculated value to both sides of the equation to maintain equality.

    3. Step 3 (Factor): Factor the newly created perfect square trinomial on the left side into the form (x+b2)2\left(x + \frac{b}{2}\right)^2.

    4. Step 4 (Take square roots): Take the square root of both sides, remembering to introduce ±\pm on the constant side.

    5. Step 5 (Solve): Solve the resulting linear equations for xx.

  • Walkthrough Example: x2+8x+7=0x^2 + 8x + 7 = 0

    • Step 1 (Isolate terms): Subtract 77 from both sides: x2+8x=−7x^2 + 8x = -7.

    • Step 2 (Calculate and add the square of half of bb): Identify b=8b = 8. Take half of bb: 82=4\frac{8}{2} = 4. Square the result: 42=164^2 = 16. Add 1616 to both sides of the equation: x2+8x+16=−7+16x^2 + 8x + 16 = -7 + 16, simplifying to x2+8x+16=9x^2 + 8x + 16 = 9.

    • Step 3 (Factor the perfect square trinomial): Factors of 1616 that sum to 88 are 44 and 44, yielding (x+4)2=9(x + 4)^2 = 9.

    • Step 4 (Take square roots): x+4=±9x + 4 = \pm\sqrt{9}, which gives x+4=±3x + 4 = \pm 3.

    • Step 5 (Solve both cases): x+4=3  ⟹  x=3−4=−1x + 4 = 3 \implies x = 3 - 4 = -1 and x+4=−3  ⟹  x=−3−4=−7x + 4 = -3 \implies x = -3 - 4 = -7.

    • The solutions are x=−7x = -7 and x=−1x = -1.

Rational Solutions via Completing the Square
  • Example 5: x2−12x+27=0x^2 - 12x + 27 = 0

    • Step 1: Move the constant 2727 to the right-hand side by subtracting 2727 from both sides: x2−12x=−27x^2 - 12x = -27.

    • Step 2: Determine the value to complete the square: b=−12b = -12. Half of bb is −122=−6\frac{-12}{2} = -6. Squaring this value yields (−6)2=36(-6)^2 = 36. Add 3636 to both sides: x2−12x+36=−27+36x^2 - 12x + 36 = -27 + 36, giving x2−12x+36=9x^2 - 12x + 36 = 9.

    • Step 3: Factor the left side: Factors of 3636 that sum to −12-12 are −6-6 and −6-6, giving (x−6)2=9(x - 6)^2 = 9.

    • Step 4: Take the square root of both sides: x−6=±3x - 6 = \pm 3.

    • Step 5: Solve both equations: x−6=3  ⟹  x=9x - 6 = 3 \implies x = 9 and x−6=−3  ⟹  x=3x - 6 = -3 \implies x = 3.

    • The solutions are x=3x = 3 and x=9x = 9.

  • Example 8: x2+2x−50=−2x^2 + 2x - 50 = -2

    • Step 1: Isolate the variable terms on the left by adding 5050 to both sides: x2+2x=−2+50x^2 + 2x = -2 + 50, giving x2+2x=48x^2 + 2x = 48.

    • Step 2: Complete the square: b=2b = 2. Half of bb is 22=1\frac{2}{2} = 1. Squaring yields 12=11^2 = 1. Add 11 to both sides: x2+2x+1=48+1x^2 + 2x + 1 = 48 + 1, giving x2+2x+1=49x^2 + 2x + 1 = 49.

    • Step 3: Factor the left side: Factors of 11 that sum to 22 are 11 and 11, giving (x+1)2=49(x + 1)^2 = 49.

    • Step 4: Take the square root of both sides: x+1=±7x + 1 = \pm 7.

    • Step 5: Solve both cases: x+1=7  ⟹  x=6x + 1 = 7 \implies x = 6 and x+1=−7  ⟹  x=−8x + 1 = -7 \implies x = -8.

    • The solutions are x=−8x = -8 and x=6x = 6.

  • Practice Note: Examples 6 and 7 utilize this identical sequence of algebraic steps.

Quadratic Equations with Irrational Solutions
  • * [Nature of Irrational Solutions] When the constant on the right-hand side is not a perfect square, its square root cannot be evaluated as an integer or rational fraction. The solution must be retained in radical form, simplified whenever possible, and written using ±\pm.

  • Example 9: x2−2x−4=0x^2 - 2x - 4 = 0

    • Step 1: Move the constant term to the right side by adding 44: x2−2x=4x^2 - 2x = 4.

    • Step 2: Identify b=−2b = -2. Half of bb is −22=−1\frac{-2}{2} = -1. Squaring yields (−1)2=1(-1)^2 = 1. Add 11 to both sides: x2−2x+1=4+1x^2 - 2x + 1 = 4 + 1, giving x2−2x+1=5x^2 - 2x + 1 = 5.

    • Step 3: Factor the trinomial on the left: Factors of 11 that sum to −2-2 are −1-1 and −1-1, yielding (x−1)2=5(x - 1)^2 = 5.

    • Step 4: Take the square root of both sides: x−1=±5x - 1 = \pm\sqrt{5}. The radical 5\sqrt{5} is irrational and cannot be simplified further.

    • Step 5: Separate and solve both cases: x−1=5  ⟹  x=1+5x - 1 = \sqrt{5} \implies x = 1 + \sqrt{5} and x−1=−5  ⟹  x=1−5x - 1 = -\sqrt{5} \implies x = 1 - \sqrt{5}.

    • Compact Solution Format: x=1±5x = 1 \pm \sqrt{5}.

  • Example 10: x2+16x+46=0x^2 + 16x + 46 = 0

    • Step 1: Isolate the variable terms by subtracting 4646 from both sides: x2+16x=−46x^2 + 16x = -46.

    • Step 2: Complete the square: b=16b = 16. Half of bb is 162=8\frac{16}{2} = 8. Squaring yields 82=648^2 = 64. Add 6464 to both sides: x2+16x+64=−46+64x^2 + 16x + 64 = -46 + 64, giving x2+16x+64=18x^2 + 16x + 64 = 18.

    • Step 3: Factor the perfect square trinomial: Factors of 6464 that sum to 1616 are 88 and 88, yielding (x+8)2=18(x + 8)^2 = 18.

    • Step 4: Take the square root of both sides: x+8=±18x + 8 = \pm\sqrt{18}.

    • Radical Simplification Process: Decompose 1818 into a perfect square factor: 18=9×2=9×2=32\sqrt{18} = \sqrt{9 \times 2} = \sqrt{9} \times \sqrt{2} = 3\sqrt{2}. Therefore: x+8=±32x + 8 = \pm 3\sqrt{2}.

    • Step 5: Solve for xx by subtracting 88 from both sides: x+8=32  ⟹  x=−8+32x + 8 = 3\sqrt{2} \implies x = -8 + 3\sqrt{2} and x+8=−32  ⟹  x=−8−32x + 8 = -3\sqrt{2} \implies x = -8 - 3\sqrt{2}.

    • Combined Solution: x=−8±32x = -8 \pm 3\sqrt{2}.

Advanced Manipulation and Radical Simplification
  • * [Grouping Terms] If variable terms are located on the wrong side of the equality, all variable terms must be collected together on the left-hand side before initiating the completing the square algorithm.

  • Example 11 (Regrouping and Solving):

    • Initial Structure: An equation where an xx-term is present on the right-hand side, requiring the addition of 8x8x over to the left side: x2+8x+7=66x^2 + 8x + 7 = 66.

    • Step 1 (Isolate variable terms): Subtract 77 from both sides: x2+8x=66−7x^2 + 8x = 66 - 7, giving x2+8x=59x^2 + 8x = 59.

    • Step 2 (Complete the square): Identify b=8b = 8. Half of bb is 82=4\frac{8}{2} = 4. Squaring yields 42=164^2 = 16. Add 1616 to both sides: x2+8x+16=59+16x^2 + 8x + 16 = 59 + 16, giving x2+8x+16=75x^2 + 8x + 16 = 75.

    • Step 3 (Factor the perfect square trinomial): Factors of 1616 that sum to 88 are 44 and 44, yielding (x+4)2=75(x + 4)^2 = 75.

    • Step 4 (Take square roots): x+4=±75x + 4 = \pm\sqrt{75}.

    • Radical Simplification Process: Decompose 7575 into a perfect square factor: 75=25×3=53\sqrt{75} = \sqrt{25 \times 3} = 5\sqrt{3}. Substitute back: x+4=±53x + 4 = \pm 5\sqrt{3}.

    • Step 5 (Isolate xx): Subtract 44 from both sides directly: x=−4±53x = -4 \pm 5\sqrt{3}.