Enter an equation or problem
Camera input is not recognized!

Solving 0=x−4x2−8x+16 quadratic equation by completing the square

Step-by-step explanation

1. Simplify the expression

12 additional steps

0=x-4x2-8x+16

Group like terms:

0=(x-8x)+16-4x2

Simplify the arithmetic:

0=-7x+16-4x2

Swap sides:

-7x+16-4(x2)=0

Add (x2) to both sides:

(-7x+16-4(x2))+4(x2)=0+4(x2)

Simplify the arithmetic:

(-7x+16-4(x2))+4(x2)=4x2

Multiply both sides by (x2):

((-7x+16-4(x2))+4(x2))·(x2)=(4(x2))·(x2)

Expand the parentheses:

-7x·x2+16x2-4x2·x2+4x2x2=(4(x2))·(x2)

Simplify the arithmetic:

-7x3+16x2-4x2·x2+4x2x2=(4(x2))·(x2)

Multiply the fraction(s):

-7x3+16x2+-4x2x2+4=(4(x2))·(x2)

Group like terms:

-7x3+16x2+(-4+4)=(4(x2))·(x2)

Simplify the arithmetic:

-7x3+16x2=(4(x2))·(x2)

Multiply the fraction(s):

-7x3+16x2=4x2x2

Simplify the arithmetic:

-7x3+16x2=4

2. Move all terms to the left side of the equation

16x2+3=4

Subtract 4 from both sides:

16x2+3−4=4−4

Simplify the expression

16x2−1=0

3. Identify a, b, and c

First write the quadratic in standard form, ax2+bx+c=0. Completing the square works from the coefficients a, b, and c, so identify them before changing the equation.

16x2−1=0

a=16
b=0
c=−1

4. Divide by a so the square can be completed

To complete a square, the x2 term needs coefficient 1. Since a=16, divide every term on both sides by 16 so the solution set stays the same.

16x2+0x−1=0

1616x2+0x16−116=016

Simplify the expression

x2+0x-116=0


The coefficients are:
a=1
b=0
c=-116

5. Isolate the x terms

Move the constant term away from the x terms. Add 116 to both sides, which keeps the equation balanced and leaves the left side ready to become a square.

x2+0x-116=0

x2+0x-116+116=0+116

x2+0x=116

6. Add the missing square term

A trinomial x2+bx+(b2)2 factors as (x+b2)2. That is why we add (b2)2. The same value must be added to both sides.

b=0

(b2)2=(02)2

Use the exponents fraction rule (xy)2=x2y2

(02)2=0222

0222=04

04=00

Here the square value is 0. Add it to both sides, then combine the right side so the equation is still equivalent to the original.

2 additional steps

x2+0x=116

x2+0x+00=116+00

Reduce the zero numerator:

x2+0x+00=116+0

Simplify the arithmetic:

x2+0x+00=116

Now the left side is a perfect-square trinomial. Half of the b coefficient is the number inside the parentheses:
b=0, so b2=0. Rewrite the left side as one squared binomial.

b2=02

Reduce the zero numerator:

b2=0

x2+0x+00=116

(x+0)2=116

7. Use square roots to solve for x

The equation is now in the form u2=N, where u is the linear expression inside the parentheses. Take the square root of both sides. A square can come from a positive or a negative value, so use the ± sign before solving the two branches.

(x+0)2=116

(x+0)2=116

Cancel out the square and square root on the left side of the equation:

x+0=±116

Subtract from both sides

x+0+0=±116

Simplify the left side:

x=±116

x=0±116

x=0±14

The two solutions come from the plus and minus square-root branches:
x1=14
x2=-14

8. See the completed square on the graph

The completed-square equation is (x+0)2=116. It also tells us the parabola's vertex is (0,-1) and its axis of symmetry is x=0. The parabola crosses the x-axis at x=1/4 and x=-1/4.

9. Check your work

Check the roots against the equation we solved, not just against the final line. From (x+0)2=116, the roots x1=14 and x2=-14 make the square side match the right side. Substituting \frac{1}{4} or -\frac{1}{4} into the completed-square equation makes the squared expression equal the right side. Using rounded decimals, f(1/4)≈0 and f(-1/4)≈0. The exact roots make the original equation equal 0.

Why learn this

Learn more with Tiger
Completing the square turns a quadratic into vertex form, so the algebra and the graph tell the same story. It is useful when factoring is not convenient, and it explains where the quadratic formula comes from. The method also shows the vertex, axis of symmetry, and whether the graph crosses the x-axis.