Chalk−1

Math · College algebra · Worked example

Solve a quadratic by completing the square

Solve 2x2+8⁢x−10=0 by completing the square, then write the quadratic in vertex form.

2x2+8⁢x−10=0

Try one — Chalk checks each line

Make the leading coefficient 1

Completing the square is simplest when x2 has coefficient 1. Divide every term by 2. Dividing both sides by a nonzero number keeps the same solutions.

x2+4⁢x−5=0

Move the constant term

Add 5 to both sides so the x terms stand alone on the left.

x2+4⁢x=5

Add the square of half the x coefficient

Half of 4 is 2, and 22=4. Adding 4 turns x2+4⁢x into the perfect square x2+4⁢x+4. Add the same 4 to the right side to keep the equation balanced.

x2+4⁢x+4=9

Write the left side as a square

Factor the perfect square. The equation now says that x+2 is a number whose square is 9.

(x+2)2=9

Take both square roots

A positive number has two square roots, so x+2=3 or x+2=−3. Writing only +3 would lose a solution.

x+2=±3

Solve each case and check

Subtract 2 in each case. Both values check in the original equation, since 2⁢(1)2+8⁢(1)−10=0 and 2⁢(−5)2+8⁢(−5)−10 =50−40−10 =0.

x=1 or x=−5

Read the vertex form

The same steps rewrite y=2x2+8⁢x−10 in vertex form. Its vertex is (−2,−18), the lowest point of the parabola, halfway between the x-intercepts −5 and 1.

2x2+8⁢x−10=2⁢(x+2)2−18

Result

x=1 or x=−5. In vertex form, 2x2+8⁢x−10 =2⁢(x+2)2−18, with vertex (−2,−18).

x=1 or x=−5

Your turn

1. One like the example

Solve x2−8⁢x+3=0 by completing the square.

Show the answer and explanation

x=4±13.

Move the constant to get x2−8⁢x=−3. Half of −8 is −4 and (−4)2=16, so add 16 to both sides, which gives (x−4)2=13. Then x−4=±13 and x=4±13, about 7.606 and 0.394.

x2−8⁢x+3=0x2−8⁢x=−3(x−4)2=13x=4±13

2. A variation

Solve x2+3⁢x−1=0 by completing the square. The x coefficient is odd, so expect fractions.

Show the answer and explanation

x=(−3±13)⁢/2.

Move the constant, x2+3⁢x=1. Half of 3 is 3⁢/2, and (3⁢/2)2=9⁢/4. Adding 9⁢/4 to both sides gives (x+3⁢/2)2 =1+9⁢/4 =13⁢/4. Taking both roots, x+3⁢/2=±13/2, so x=(−3±13)⁢/2.

x2+3⁢x−1=0x2+3⁢x=1(x+32)2=134x=−3±132

3. Somewhere new

Write y=x2−6⁢x+11 in vertex form. What is the lowest value of y, and where does it occur?

Show the answer and explanation

y=(x−3)2+2. The lowest value is 2, at x=3.

Half of −6 is −3 and (−3)2=9. Write 11 as 9+2, so x2−6⁢x+11 =(x2−6⁢x+9)+2 =(x−3)2+2. A square is never negative, so y is smallest when x−3=0, and then y=2.

y=x2−6⁢x+11y=x2−6⁢x+9+2y=(x−3)2+2

Keep exploring

Open the steps in Math and replace the 10 with 16. Completing the square then gives (x+2)2=12, and the roots become irrational.

Return to the concept →
Sources and scope

Authored study material. Tool results depend on the stated inputs and model assumptions.

After reading

Try it, then study it

Open the example in its tool to check steps or change values, then review the key terms as flashcards.

Check the steps in Math See the vertex and intercepts in Graph Study the 6 key terms Open worked example on a board Quadratic formula in Math Reference

Your existing work stays on this device. Examples open as editable copies.