Completing the square Knowledge-Based Study

Math · Algebra · Math · Quadratics

Math topic explanations on Completing the square.

Study notes

  1. What is Completing the Square?

    Completing the square is an algebraic technique used to rewrite a quadratic expression of the form ax2+bx+cax^2 + bx + c into vertex form, a(x−h)2+ka(x - h)^2 + k, or to solve quadratic equations.

    The method is based on the algebraic identity for a perfect square trinomial:

    (x+d)2=x2+2dx+d2(x + d)^2 = x^2 + 2dx + d^2(x−d)2=x2−2dx+d2(x - d)^2 = x^2 - 2dx + d^2

    Notice that in any monic perfect square trinomial (where the coefficient of x2x^2 is 1), the constant term is always the square of half the coefficient of xx:

    (2d2)2=d2\left(\frac{2d}{2}\right)^2 = d^2

    When given an incomplete quadratic expression such as x2+bxx^2 + bx, we can complete the square by adding (b2)2\left(\frac{b}{2}\right)^2.

    Step-by-Step Procedure for a=1a = 1

    To convert an expression of the form x2+bx+cx^2 + bx + c into completed square form:

    1. Identify the linear coefficient, bb.
    2. Divide bb by 2 and square the result: (b2)2\left(\frac{b}{2}\right)^2.
    3. Add and subtract this value within the expression to keep the value unchanged: x2+bx+c=(x2+bx+(b2)2)−(b2)2+cx^2 + bx + c = \left(x^2 + bx + \left(\frac{b}{2}\right)^2\right) - \left(\frac{b}{2}\right)^2 + c
    4. Factor the perfect square trinomial and simplify the remaining constants: (x+b2)2+(c−b24)\left(x + \frac{b}{2}\right)^2 + \left(c - \frac{b^2}{4}\right)

    Worked Example

    Rewrite x2−6x+4x^2 - 6x + 4 in completed square form.

    • Here, b=−6b = -6.
    • Half of bb is −62=−3\frac{-6}{2} = -3, and its square is (−3)2=9(-3)^2 = 9.
    • Add and subtract 9: x2−6x+9−9+4x^2 - 6x + 9 - 9 + 4
    • Factor the first three terms: (x−3)2−5(x - 3)^2 - 5

    Handling Leading Coefficients Other Than 1

    When the leading coefficient a≠1a \neq 1, you must factor aa out of the quadratic and linear terms before finding the term needed to complete the square.

    1. Group the quadratic and linear terms: ax2+bx+c=a(x2+bax)+cax^2 + bx + c = a\left(x^2 + \frac{b}{a}x\right) + c
    2. Find half of the new linear coefficient, b2a\frac{b}{2a}, and square it: (b2a)2=b24a2\left(\frac{b}{2a}\right)^2 = \frac{b^2}{4a^2}.
    3. Add and subtract this term inside the parentheses: a(x2+bax+b24a2−b24a2)+ca\left(x^2 + \frac{b}{a}x + \frac{b^2}{4a^2} - \frac{b^2}{4a^2}\right) + c
    4. Distribute aa when moving the subtracted term outside: a(x+b2a)2−a(b24a2)+c=a(x+b2a)2−b24a+ca\left(x + \frac{b}{2a}\right)^2 - a\left(\frac{b^2}{4a^2}\right) + c = a\left(x + \frac{b}{2a}\right)^2 - \frac{b^2}{4a} + c

    Worked Example

    Rewrite 2x2+12x+72x^2 + 12x + 7 by completing the square.

    • Factor 2 from the first two terms: 2(x2+6x)+72(x^2 + 6x) + 7
    • Half of 6 is 3, and 32=93^2 = 9. Add and subtract 9 inside the bracket: 2(x2+6x+9−9)+72(x^2 + 6x + 9 - 9) + 7
    • Expand the bracket for −9-9: 2(x+3)2−2(9)+7=2(x+3)2−18+7=2(x+3)2−112(x + 3)^2 - 2(9) + 7 = 2(x + 3)^2 - 18 + 7 = 2(x + 3)^2 - 11

    1. Solving Quadratic Equations

    To solve an equation such as x2+8x−9=0x^2 + 8x - 9 = 0 by completing the square:

    1. Isolate the constant term on the right-hand side: x2+8x=9x^2 + 8x = 9
    2. Add (82)2=16\left(\frac{8}{2}\right)^2 = 16 to both sides: x2+8x+16=9+16x^2 + 8x + 16 = 9 + 16
    3. Factor the left side: (x+4)2=25(x + 4)^2 = 25
    4. Take the square root of both sides: x+4=±5x + 4 = \pm 5
    5. Solve for xx: x=−4+5=1orx=−4−5=−9x = -4 + 5 = 1 \quad \text{or} \quad x = -4 - 5 = -9

    2. Locating the Vertex and Extreme Value

    Writing a quadratic function in vertex form y=a(x−h)2+ky = a(x - h)^2 + k directly reveals the coordinates of the turning point (vertex) at (h,k)(h, k):

    • If a>0a > 0, the parabola opens upwards and has a minimum value of kk at x=hx = h.
    • If a<0a < 0, the parabola opens downwards and has a maximum value of kk at x=hx = h.

    For example, the function f(x)=(x−3)2−5f(x) = (x - 3)^2 - 5 has a minimum value of −5-5 occurring at x=3x = 3, giving vertex coordinates (3,−5)(3, -5).