Enter an equation or problem
Camera input is not recognized!

Solving 180−64q+0.125q2 quadratic equation by completing the square

Solution

Exact form: q1=256+4·4006
q_1=256+4·√(4006)
q2=256-4·4006
q_2=256-4·√(4006)
Decimal form: q1=509.172
q_1=509.172
q2=2.828
q_2=2.828

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.

0.125q2−64q+180=0

a=0.125
b=−64
c=180

2. Divide by a so the square can be completed

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

0.125q2−64q+180=0

0.1250.125q2−64q0.125+1800.125=00.125

Simplify the expression

q2−512q+1440=0


The coefficients are:
a=1
b=−512
c=1,440

3. Isolate the x terms

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

q2−512q+1440=0

q2−512q+1440−1440=0−1440

q2−512q=−1440

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=−512

(b2)2=(-5122)2

Use the exponents fraction rule (xy)2=x2y2

(-5122)2=(-512)222

(-512)222=2621444

2621444=65536

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

q2−512q=−1440

q2−512q+65536=−1440+65536

Simplify the arithmetic:

q2−512q+65536=64096

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

2 additional steps

b2=-5122

Find the greatest common factor of the numerator and denominator:

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

Factor out and cancel the greatest common factor:

b2=-256

q2−512q+65536=64096

(q−256)2=64096

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.

(q−256)2=64096

(q-256)2=64096

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

q-256=±64096

Add 256 to both sides

q-256+256=256±64096

Simplify the left side:

q=256±64096

Write the prime factors:

256±2·2·2·2·2·2003

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

256±22·22·2·2003

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

256±2·2·2·2003

Perform any multiplication or division, from left to right:

256±4·2·2003

Perform any multiplication or division, from left to right:

256±4·4006

The two solutions come from the plus and minus square-root branches:
q1=256+4·4006
q2=256-4·4006

6. See the completed square on the graph

The completed-square equation is (q−256)2=64096. It also tells us the parabola's vertex is (256,−8012) and its axis of symmetry is q=256. The parabola crosses the x-axis at q=509.172 and q=2.828.

7. Check your work

Check the roots against the equation we solved, not just against the final line. From (q-256)2=64096, the roots q1=256+4·4006 and q2=256-4·4006 make the square side match the right side. Substituting 256+4·\sqrt{4006} or 256-4·\sqrt{4006} into the completed-square equation makes the squared expression equal the right side. Using rounded decimals, f(509.172)≈0 and f(2.828)≈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.