Showing posts with label complete the square. Show all posts
Showing posts with label complete the square. Show all posts

Tuesday, January 22, 2019

Completing the Square
For Leading Coefficients that aren't 1


We looked at completing the square for equations who's leading coefficients are 1.  If the leading factor is not 1 we factor the number out of the leading coefficient and the second term so that the leading coefficient is one and then we proceed to complete the square.

The technique is very easy.

Lets look at a quadratic equation in the standard form.

Y=AX²+BX+C 
We factor A out of both the A and B term.
Y=A(X²+[B/A]X)+C 
Notice how we don't factor the A term out of C

To write this equation in vertex form, we take 1/2 of the B/A value and write our equation like this:

Y=(X+[1/2][A/B])²+k
It looks kind of messy but lets use an example.
Y=2X²+4X-3
Our equation now looks like this:
Y=2(X²+[4/2]X)-3 =2(X²+2X)-3
Y=2(X+1)²-3-(2)(1)²=2(X+1)²-5
Vertex is at X=-1 Y=-5 or (-1,-5)

So watch what we did with the k term.  
Lets expand 2(X+1)²
2X²+4X+2So we gained a 2 in the expansion of our modified equation so we have to also subtract a 2.
So our form becomes A(X-h)²+k
k is calculated by taking C-A(h)²

So lets do another example:
Y=-3X²-12X+4
Factor the -3 out of the first and second term:

-3(X²+4X)+4
Complete the square:
-3(X+2)²+4-(-3)(2)²=-3(X+2)²+16
The vertex is at:  X=-2  Y=16 or (-2,16)

Practice:
Y=6X²+18X+2
Y=-2X²+5X+3
Y=-7X²-21X+14

Answers posted in next post:




Monday, January 21, 2019

Completing the Square


Completing the square is a technique used to take a quadratic equation and put it in a form called the vertex form.  This is an important technique that does not stop just in algebra.  We will revisit this in the calculus post for integration techniques.

The technique is very easy.

Lets look at a quadratic equation in the standard form.

Y=X²+BX+C  

To write this equation in vertex form, we take 1/2 of the B value and write our equation like this:

Y=(X+1/2B)²+k
Both of these equations are equivalent so
We expand (X+1/2B)², we have (X+1/2B)²=X²+BX+1/4B²
We know that (X+1/2B)²-k will expand to: X²+BX+1/4B²+k=X²+BX+C 
So C=1/4B² + k or if we want to find k we do the following:
k=C-1/4B²

Not too bad right?  We are going to now do an example.
Y=X²+6X+8
B=6
1/2B=3
C=8
(X+1/2B)²=(X+3)²
k=8-3²=-1
So our equation becomes:
Y=(X+3)²-1
Vertex form is (X-h)
²+k
The vertex is at x=-3 and y=-1 or (-3,-1)

Lets look at:
Y=X²-4X-3
B=-4
1/2B=-2
C=-3
(X+1/2B)²=(X-4)²
k=-3-(-2)²=-3-4=-7
So our Vertex form becomes:
Y=(X-2)²-7
Our vertex is at: (-2,-7)
Note that:   Even though our 1/2B term was negative we still ended up subtracting it from the C term.

Homework:

Factor the following into the vertex form by completing the square:
Y=X²+12X-7
Y=X²-6X+6
Y=X²+11X-1
Y=X²-14X-31
Y=X²-9x+4

The solutions are posted here.

In future posts, we will be looking at completing the square on equations with multipliers on the leading coefficient, a synthetic way of completing the square, and an explanation of why completing the square works. 





Solution Set for Basic Completion of the Square

Y=X²+12X-7
B=12
1/2B=6
(X+1/2B)²=(X+6)²
k=-7-6²=-43
Vertex form
Y=(X+6)²-43
Vertex is at: X=-6 and Y=-43


Y=X²-6X+6
B=-6
1/2B=-3
(X+1/2B)²=(X-3)²
k=6-(-3)²=-3
Vertex form
Y=(X-3)²-3
Vertex is at: X=3 and Y=-3


Y=X²+11X-1
B=11
1/2B=11.5
(X+1/2B)²=(X+11.5)²
k=-1-(11.5)²=-1-132.25=-133.25
Vertex form
Y=(X+11.5)²-133.25
Vertex is at: X=-11.5 and Y=-133.25



Y=X²-14X-31
B=-14
1/2B=-7
(X+1/2B)²=(X-7)²
k=-31-(-7)²=-31-49=-80
Vertex form
Y=(X-7)²-80
Vertex is at: X=7 and Y=-80

Y=X²-9x+4
B=-9
1/2B=-4.5
(X+1/2B)²=(X-4.5)²
k=4-(-4.5)²=4-20.25=-16.25
Vertex form
Y=(X-4.5)²-16.25
Vertex is at: X=4.5 and Y=-16.25