Showing posts with label binomial expansion. Show all posts
Showing posts with label binomial expansion. 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:




Sunday, January 20, 2019

Pascals Triangle

Here is a Pascals triangle for up to a 20th order polynomial.  The second number in the series is the order of the polynomial.






                                                                             1
                                                                                                                    1    1
                                                                                                                  1   2   1
                                                                                                                1   3   3   1
                                                                                                            1  4    6    4   1
                                                                                                       1   5    10  10   5   1
                                                                                                     1   6   15   20   15   6   1
                                                                                                  1   7   21   35   35   21   7   1
                                                                                               1   8   28   56   70   56   28   8   1
                                                                                        1   9   36   84   126   126   84   36   9   1     
                                                                               1   10   45   120   210   252   210   120   45   10   1
                                                                          1   11   55   165   330   462   462   330   165   55   11   1  
                                                                      1   12   66   220   495   792   924   792   495   220   66   12   1
                                                                  1   13   78   286   715   1287   1716   1716   1287   715   286   78   13   1
                                                        1   14   91   364   1001   2002   3003   3432   3003   2002   1001   364   91   14   1
                                                 1   15   105   455   1365   3003   5005   6435   6435   5005   3003   1365   455   105   15   1
                                      1   16   120   560   1820   4368   8008   11440   12870   11440   8008   4368   1820   560   120   16   1
                               1   17   136   680   2380   6188   12376   19448   24310   24310   19448   12376   6188   2380   680   136   17   1
                         1   18   153   816   3060   8568 18564   31824   43758   48620   43758   31824   18564   8568   3060   816   153   18   1  
                1   19   171   969   3876   11628   27132   50388   75582   92378   92378   75582   50388   27132   11628   3876   969   171   19   1
1   20   190   1140   4845   15504   38760   77520   125970   167960   184756   167960   125970   77520   38760   15504   4845   1140   190   20   1  

Monday, January 7, 2019

Pascal's Triangle


1
1 1      1
2 1   2    1
3 1   3    3    1
4 1    4   6    4    1
5 1   5   10   10   5   1
6 1   6  15   20   15   6    1
 1  7  21  35  35   21     7   1

On the last post we looked at binomial expansion.  It involved calculating combinations as well as carrying large numbers and was not very easy.  With Pascal's triangle we, there is no need to calculate combinations because they are given on the table.

So lets look at the table.  The numbers in red are the order of polynomial ad the number go in front of the variable from left to right.  To show this lets say that we wanted to see what (x+1)⁴:

This equation is 4th order.  So we use: 1       4       6        4         1
This becomes:   (x+1)⁴=x   +  4 x³   +   6 x²   +    4x    +     1= x⁴+4x³+x²+4x+1
That's pretty nifty isn't it?
If we wanted (x+y)⁴=x⁴+4x³y+x²y²+4xy³+y

 So you might ask if you need to memorize this table of does this table only go down to 7th order equations.  The answer is no to both questions.  You can construct this table and it goes down to as large a order as you want.

How do we construct it.

Start with                                                                                                  1
Put 1 on outside of the 1                                                                        1    1
Put one on the outside of the 1 and add the middle numbers:             1    2    1      (2=1+1)
Repeat                                                                                                1    3    3   1    (3=1+1)
Repeat                                                                                             1    4     6   4   1   (4=3+1) (6=3+3)

So if you are observing, you will see the number in the triangle is between two numbers and it is the sum of those 2 numbers.

The order of the equation starts at 1  at the two 1's ie                               1   1    1
The numbers descend from 1 from there:                                                2   1   2    1
                                                                                                               1    3   3     1
                                                                                                         ...................................

So just to show how easy it is if we had (x+1)⁸=x⁸+8x⁷+28x⁶+56x⁵+70x⁴ +56x³+28x²+8x+1

Homework:  Construct the 8 the through 10 order of pascals triangle.  I will be posting a large table soon so check back. 

                                                                                                            




¹ ² ³ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹