Enter an equation or problem
Camera input is not recognized!

Solving q2−9q−18=0 quadratic equation by completing the square

Solution

Exact form: q1=92+1532
q_1=9/2+√(153)/2
q2=92-1532
q_2=9/2-√(153)/2
Decimal form: q1=10.685
q_1=10.685
q2=−1.685
q_2=-1.685

Step-by-step explanation

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

q2−9q−18=0

a=1
b=−9
c=−18

2. Isolate the x terms

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

q2−9q−18=0

q2−9q−18+18=0+18

q2−9q=18

3. 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=−9

(b2)2=(-92)2

Use the exponents fraction rule (xy)2=x2y2

(-92)2=(-9)222

(-9)222=814

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

3 additional steps

q2−9q=18

q2-9q+814=18+814

Convert the integer into a fraction:

q2-9q+814=724+814

Combine the fractions:

q2-9q+814=(72+81)4

Combine the numerators:

q2-9q+814=1534

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

b2=-92

q2-9q+814=1534

(q-92)2=1534

4. 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-92)2=1534

(q-92)2=1534

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

q-92=±1534

Add 92 to both sides

q-92+92=92±1534

Simplify the left side:

q=92±1534

q=92±1534

q=92±1532

The two solutions come from the plus and minus square-root branches:
q1=92+1532
q2=92-1532

5. See the completed square on the graph

The completed-square equation is (q-92)2=1534. It also tells us the parabola's vertex is (4.5,-38.25) and its axis of symmetry is q=4.5. The parabola crosses the x-axis at q=10.685 and q=-1.685.

6. Check your work

Check the roots against the equation we solved, not just against the final line. From (q-92)2=1534, the roots q1=92+1532 and q2=92-1532 make the square side match the right side. Substituting \frac{9}{2}+\frac{\sqrt{153}}{2} or \frac{9}{2}-\frac{\sqrt{153}}{2} into the completed-square equation makes the squared expression equal the right side. Using rounded decimals, f(10.685)≈0 and f(-1.685)≈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.