Enter an equation or problem
Camera input is not recognized!

Solving 2x2+5x=420 quadratic equation by completing the square

Solution

Exact form: x1=-54+33854
x_1=-5/4+√(3385)/4
x2=-54-33854
x_2=-5/4-√(3385)/4
Decimal form: x1=13.295
x_1=13.295
x2=−15.795
x_2=-15.795

Step-by-step explanation

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

2x2+5x=420

Subtract 420 from both sides:

2x2+5x−420=420−420

Simplify the expression

2x2+5x−420=0

2. 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.

2x2+5x−420=0

a=2
b=5
c=−420

3. Divide by a so the square can be completed

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

2x2+5x−420=0

22x2+5x2−4202=02

Simplify the expression

x2+52x-210=0


The coefficients are:
a=1
b=52
c=-210

4. Isolate the x terms

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

x2+52x-210=0

x2+52x-210+210=0+210

x2+52x=210

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=52

(b2)2=(522)2

Use the exponents fraction rule (xy)2=x2y2

(522)2=(52)222

(52)222=2544

2544=254·14

254·14=2516

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

3 additional steps

x2+52x=210

x2+52x+2516=210+2516

Convert the integer into a fraction:

x2+52x+2516=336016+2516

Combine the fractions:

x2+52x+2516=(3360+25)16

Combine the numerators:

x2+52x+2516=338516

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

2 additional steps

b2=522

Simplify the division:

b2=5(2·2)

Simplify the arithmetic:

b2=54

x2+52x+2516=338516

(x+54)2=338516

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+54)2=338516

(x+54)2=338516

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

x+54=±338516

Subtract 54 from both sides

x+54-54=-54±338516

Simplify the left side:

x=-54±338516

x=-54±338516

x=-54±33854

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

7. See the completed square on the graph

The completed-square equation is (x+54)2=338516. It also tells us the parabola's vertex is (-1.25,-423.125) and its axis of symmetry is x=-1.25. The parabola crosses the x-axis at x=13.295 and x=-15.795.

8. Check your work

Check the roots against the equation we solved, not just against the final line. From (x+54)2=338516, the roots x1=-54+33854 and x2=-54-33854 make the square side match the right side. Substituting -\frac{5}{4}+\frac{\sqrt{3385}}{4} or -\frac{5}{4}-\frac{\sqrt{3385}}{4} into the completed-square equation makes the squared expression equal the right side. Using rounded decimals, f(13.295)≈0 and f(-15.795)≈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.