Enter an equation or problem
Camera input is not recognized!

Solving 8x2+25x+13=0 quadratic equation by completing the square

Solution

Exact form: x1=-2516+20916
x_1=-25/16+√(209)/16
x2=-2516-20916
x_2=-25/16-√(209)/16
Decimal form: x1=−0.659
x_1=-0.659
x2=−2.466
x_2=-2.466

Step-by-step explanation

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

8x2+25x+13=0

a=8
b=25
c=13

2. Divide by a so the square can be completed

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

8x2+25x+13=0

88x2+25x8+138=08

Simplify the expression

x2+258x+138=0


The coefficients are:
a=1
b=258
c=138

3. Isolate the x terms

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

x2+258x+138=0

x2+258x+138-138=0-138

x2+258x=-138

4. 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=258

(b2)2=(2582)2

Use the exponents fraction rule (xy)2=x2y2

(2582)2=(258)222

(258)222=625644

625644=62564·14

62564·14=625256

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

5 additional steps

x2+258x=-138

x2+258x+625256=-138+625256

Find the lowest common denominator:

x2+258x+625256=(-13·32)(8·32)+625256

Multiply the denominators:

x2+258x+625256=(-13·32)256+625256

Multiply the numerators:

x2+258x+625256=-416256+625256

Combine the fractions:

x2+258x+625256=(-416+625)256

Combine the numerators:

x2+258x+625256=209256

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

2 additional steps

b2=2582

Simplify the division:

b2=25(8·2)

Simplify the arithmetic:

b2=2516

x2+258x+625256=209256

(x+2516)2=209256

5. 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+2516)2=209256

(x+2516)2=209256

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

x+2516=±209256

Subtract 2516 from both sides

x+2516-2516=-2516±209256

Simplify the left side:

x=-2516±209256

x=-2516±209256

x=-2516±20916

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

6. See the completed square on the graph

The completed-square equation is (x+2516)2=209256. It also tells us the parabola's vertex is (-1.562,-6.531) and its axis of symmetry is x=-1.562. The parabola crosses the x-axis at x=-0.659 and x=-2.466.

7. Check your work

Check the roots against the equation we solved, not just against the final line. From (x+2516)2=209256, the roots x1=-2516+20916 and x2=-2516-20916 make the square side match the right side. Substituting -\frac{25}{16}+\frac{\sqrt{209}}{16} or -\frac{25}{16}-\frac{\sqrt{209}}{16} into the completed-square equation makes the squared expression equal the right side. Using rounded decimals, f(-0.659)≈0 and f(-2.466)≈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.