Completing the square

Math · Algebra I

Question 1 of 10

0

    Write x² + 6x − 6 in the form (x + p)² + q. What is the value of p?

    Decimals (0.75 or 0,75), fractions (3/4) and mixed numbers (1 1/2) are accepted. Do not use thousands separators.

    How to type your answer
    • Fractions: 3/4. Mixed numbers: 1 1/2.
    • Decimals with a point or a comma: 0.75 or 0,75.
    • Negative numbers start with a minus: -3/4.
    • Percentages need the % sign: 75%.

    Stuck? Read the explanation

    Unlocks at a streak of 5 correct answers in a row.

    Print a free worksheet (PDF)

    Embed this practice on your site or class page

    Paste this HTML into your page. Students practise right there; it is free and needs no account.

    Completing the square explained

    Completing the square rewrites a quadratic in the form (x+p)2+q(x + p)^2 + q. This form shows the turning point of the graph straight away, at (−p,q)(-p, q), and it can be used to solve quadratic equations. When the coefficient of x2x^2 is 1, the method is quick: halve the coefficient of xx to get pp, then find qq.

    For x2+bx+cx^2 + bx + c, take p=b2p = \dfrac{b}{2}. Then (x+p)2(x + p)^2 contributes p2p^2 too much, so q=c−p2q = c - p^2. If the coefficient of x2x^2 is aa and not 1, first take aa out of the xx terms, complete the square inside the bracket, and then use p=b2ap = \dfrac{b}{2a} and q=c−b24aq = c - \dfrac{b^2}{4a} for the form a(x+p)2+qa(x + p)^2 + q.

    The turning point is a minimum when aa is positive and a maximum when it is negative.

    Worked example

    Write y=x2−6x+11y = x^2 - 6x + 11 in the form (x+p)2+q(x + p)^2 + q.

    1. Halve the coefficient of xx: p=−62=−3p = \dfrac{-6}{2} = -3.
    2. Then p2=9p^2 = 9, so q=11−9=2q = 11 - 9 = 2.
    3. y=(x−3)2+2y = (x - 3)^2 + 2. The turning point is (3,2)(3, 2), which is a minimum.

    Check at x=3x = 3: 9−18+11=29 - 18 + 11 = 2.

    What you will practise

    New numbers every time you practise. Levels: Easy, Medium, Hard. Each answer is followed by a worked explanation.

    Example questions

    • Easy

      Complete the square for x² + 6x − 10, writing it as (x + p)² + q. Find p.

    • Medium

      The curve y = x² − 2x + 5 has one turning point. What is the y-coordinate of the turning point?

    • Hard

      Write 2x² − 7x + 5 in the form 2(x + p)² + q. Find the value of q. Give your answer exactly, as a decimal or a fraction.