Sunday, January 6, 2019

Polynomial Expansion 



(x+a)(x+b)=x²+(a+b)x+ab
Is the first and many times the last way we learn to expand polynomial equations.  The equation on the left side of the equal sign is known as the factored form and the equation on the right side is known as the general form.  This is very simple.  Third, forth, fifth, and nth order polynomials are very easy to understand also even though most people are not taught how to do it.

Lets look at the expansion of a third order polynomial:

(x+a)(x+b)(x+c)=x³+(a+b+c)x²+(ab+ac+bc)x+abc

And lets look at a forth order expansion:

(x+a)(x+b)(x+c)(x+d)=x⁴+(a+b+c+d)x³+(ab+ac+ad+bc+bd+cd)x²+(abc+abd+acd+bcd)x+abcd

How do we arrive at these expansion solutions?  Lets multiply through and see.

(x+a)(x+b)(x+c)

Lets multiply (x+a)(x+b)=x²+(a+b)x+ab
Lets multiply  (x+a)(x+b)(x+c)=(x+c)(x+a)(x+b)=(x+c)[x²+(a+b)x+ab]
Multiplying x =x³+(a+b)x²+abx
Multiplying c=cx²+c(a+b)x+abc=cx²+(ca+cb)x+abc=
(x+c)[x²+(a+b)x+ab]=x³+(a+b)x²+abx+cx²+(ca+cb)x+abc
Combine terms:  x³+(a+b)x²+cx²+(ca+cb)x+abx+abc=x³+(a+b+c)x²+(ab+ac+bc)x+abc

This is a little tedious but there is a pattern:


  • The first term is going to be an exponent of the order of the polynomial.
  • The second term is going to be the addition of all the roots times xⁿ⁻¹
  • The last term will be the multiplication of all the roots.  This is consistent among all polynomials.
  • The middle terms are just permutations of the roots.
So lets look at (x+a)(x+b)(x+c)(x+d)(x+e)(x+f)=

  • First lets look at the second term:  That will be (a+b+c+d+e+f)x⁵
  • The last term is: abcdef
  • The third term is ab+ac+ad+ae+af+bc+bd+be+bf+cd+ce+cf+de+df+ef
  • The forth term is abc+abd+abe+abf+acd+ace+acf+ade+adf+aef+bcd+bce+bcf+bde+bdf+bef+cde+cdf +cef+def
  • The fifth term: abcd+abce+abcf+acde+acdf+adef+bcde+bcdf+bdef+cdef
  • The sixth term is abcde+abcdf+acdef

So (x+a)(x+b)(x+c)(x+d)(x+e)(x+f)=x⁶+(a+b+c+d+e+f)x⁵+(ab+ac+ad+ae+af+bc+bd+be+bf+cd+ce+cf+de+df+ef)x⁴+(abc+abd+abe+abf+acd+ace+acf+ade+adf+aef+bcd+bce+bcf+bde+bdf+bef+cde+cdf
+cef+def )x³+(abcd+abce+abcf+acde+acdf+adef+bcde+bcdf+bdef+cdef)x²+(abcde+abcdf+acdef)x + abcdef

That is pretty long.  The main idea is that is the second term and the last term are always very easy to ascertain.  While we have formulas for the quadratic equation, we do not have similar equations for finding roots of higher order polynomials but there are many things we can use to solve this equation like multiple similar roots, even and odd roots as well as other roots.   We will look at those in the subsequent posts; We will also look at expansion of the equations with the leading or first terms being numbers other than 1;   We will also use these equations to explain the binomial expansion theory; We will also look at algorithms for solving and expanding polynomials.

Lots of good things to follow.




¹  ²  ³  ⁴  ⁵  ⁷  ⁸  ⁹

No comments:

Post a Comment