Enter an equation or problem
Camera input is not recognized!

Solving y2−2y−12 quadratic equation by completing the square

Solution

Exact form: y1=1+13
y_1=1+√(13)
y2=1-13
y_2=1-√(13)
Decimal form: y1=4.606
y_1=4.606
y2=−2.606
y_2=-2.606

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.

y2−2y−12=0

a=1
b=−2
c=−12

2. Isolate the x terms

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

y2−2y−12=0

y2−2y−12+12=0+12

y2−2y=12

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

(b2)2=(-22)2

Use the exponents fraction rule (xy)2=x2y2

(-22)2=(-2)222

(-2)222=44

44=1

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

y2−2y=12

y2−2y+1=12+1

Simplify the arithmetic:

y2−2y+1=13

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

2 additional steps

b2=-22

Find the greatest common factor of the numerator and denominator:

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

Factor out and cancel the greatest common factor:

b2=-1

y2−2y+1=13

(y−1)2=13

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.

(y−1)2=13

(y-1)2=13

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

y-1=±13

Add 1 to both sides

y-1+1=1±13

Simplify the left side:

y=1±13

The two solutions come from the plus and minus square-root branches:
y1=1+13
y2=1-13

5. See the completed square on the graph

The completed-square equation is (y−1)2=13. It also tells us the parabola's vertex is (1,−13) and its axis of symmetry is y=1. The parabola crosses the x-axis at y=4.606 and y=-2.606.

6. Check your work

Check the roots against the equation we solved, not just against the final line. From (y-1)2=13, the roots y1=1+13 and y2=1-13 make the square side match the right side. Substituting 1+\sqrt{13} or 1-\sqrt{13} into the completed-square equation makes the squared expression equal the right side. Using rounded decimals, f(4.606)≈0 and f(-2.606)≈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.