Enter an equation or problem
Camera input is not recognized!

Solving x2−800x+112000=0 quadratic equation by completing the square

Solution

Exact form: x1=400+40·30
x_1=400+40·√(30)
x2=400-40·30
x_2=400-40·√(30)
Decimal form: x1=619.089
x_1=619.089
x2=180.911
x_2=180.911

Step-by-step explanation

1. Simplify the expression

2 additional steps

x2-800x+112000=0

Subtract 112,000 from both sides:

(x2-800x+112000)-112000=0-112000

Simplify the arithmetic:

x2-800x=0-112000

Simplify the arithmetic:

x2-800x=-112000

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

x2−800x=−112000

Add -112000 to both sides of the equation:

x2−800x+112000=−112000+112000

Simplify the expression

x2−800x+112000=0

3. Identify the coefficient that controls the square

The equation is now in standard form, ax2+bx+c=0. Completing the square works from the coefficients, and we need the coefficient of x because half of that coefficient determines the square to add.

x2−800x+112000=0

a=1
b=−800
c=112,000

4. Isolate the x terms

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

x2−800x+112000=0

x2−800x+112000−112000=0−112000

x2−800x=−112000

5. 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=−800

(b2)2=(-8002)2

Use the exponents fraction rule (xy)2=x2y2

(-8002)2=(-800)222

(-800)222=6400004

6400004=160000

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

x2−800x=−112000

x2−800x+160000=−112000+160000

Simplify the arithmetic:

x2−800x+160000=48000

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

2 additional steps

b2=-8002

Find the greatest common factor of the numerator and denominator:

b2=(-400·2)(1·2)

Factor out and cancel the greatest common factor:

b2=-400

x2−800x+160000=48000

(x−400)2=48000

6. 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−400)2=48000

(x-400)2=48000

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

x-400=±48000

Add 400 to both sides

x-400+400=400±48000

Simplify the left side:

x=400±48000

Write the prime factors:

400±2·2·2·2·2·2·2·3·5·5·5

Group the prime factors into pairs and rewrite them in exponent form:

400±22·22·22·2·3·52·5

Use the rule (x2)=x to simplify further:

400±2·2·2·5·2·3·5

Perform any multiplication or division, from left to right:

400±4·2·5·2·3·5

400±8·5·2·3·5

400±40·2·3·5

Perform any multiplication or division, from left to right:

400±40·6·5

400±40·30

The two solutions come from the plus and minus square-root branches:
x1=400+40·30
x2=400-40·30

7. See the completed square on the graph

The completed-square equation is (x−400)2=48000. It also tells us the parabola's vertex is (400,−48000) and its axis of symmetry is x=400. The parabola crosses the x-axis at x=619.089 and x=180.911.

8. Check your work

Check the roots against the equation we solved, not just against the final line. From (x-400)2=48000, the roots x1=400+40·30 and x2=400-40·30 make the square side match the right side. Substituting 400+40·\sqrt{30} or 400-40·\sqrt{30} into the completed-square equation makes the squared expression equal the right side. Using rounded decimals, f(619.089)≈0 and f(180.911)≈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.