MatheramaMatherama
← Polynomials
Polynomials·Section 2·4 min read

Algebra of Polynomials

Algebra of Polynomials§

If we consider two polynomials, P(x)P(x) and Q(x)Q(x), defined respectively as P(x)=a0xn+a1xn−1+...+anP(x) = a_0x^n + a_1x^{n-1} + ... + a_n, and Q(x)=b0xm+b1xm−1+...+bmQ(x) = b_0x^m + b_1x^{m-1} + ... + b_m, where δ(P)\delta(P) is the degree of PP which is nn, and δ(Q)\delta(Q) is the degree of QQ which is mm, various operations such as addition, subtraction, multiplication, and division can be performed on these polynomials following algebraic rules.

Addition of Polynomials§

The sum of two polynomials P(x)P(x) and Q(x)Q(x) is defined as (P+Q)(x)=P(x)+Q(x)(P + Q)(x) = P(x) + Q(x), meaning that the value of P+QP + Q at any point xx is the sum of the values of PP at xx and QQ at xx.

The degree of the resulting polynomial P+QP + Q is determined by the higher degree of the two polynomials PP and QQ:

δ(P+Q)=max⁡{δ(P),δ(Q)}\delta(P + Q) = \max\{\delta(P), \delta(Q)\}

However, if δ(P)=δ(Q)\delta(P) = \delta(Q), the resulting degree may be less than δ(P)\delta(P) or δ(Q)\delta(Q) if the leading terms cancel each other out.

For example, consider the polynomials P(x)=x3+2x2−x+1P(x) = x^3 + 2x^2 - x + 1 and Q(x)=−x3−2x2+6x−2Q(x) = -x^3 - 2x^2 + 6x - 2. The sum (P+Q)(x)(P + Q)(x) simplifies to −7x+3-7x + 3. Here, both PP and QQ have a degree of 3, but δ(P+Q)\delta(P + Q) is 1 because the terms containing x3x^3 and x2x^2 cancel each other out.

Multiplication of Polynomials§

The product of two polynomials P(x)P(x) and Q(x)Q(x) is denoted as PQ(x)=P(x)Q(x)PQ(x) = P(x)Q(x). This means that the value of PQPQ at any point xx is the product of the values of PP at xx and QQ at xx.

The degree of the product polynomial PQPQ is the sum of the degrees of PP and QQ:

δ(PQ)=δ(P)+δ(Q)\delta(PQ) = \delta(P) + \delta(Q)

This property is straightforward to demonstrate.

For example, take P(x)=x3+2x−1P(x) = x^3 + 2x - 1 and Q(x)=4x2+2x−1Q(x) = 4x^2 + 2x - 1. The product PQ(x)PQ(x) is given by multiplying each term in P(x)P(x) by each term in Q(x)Q(x), leading to:

PQ(x)=(x3+2x−1)(4x2+2x−1)PQ(x) = (x^3 + 2x - 1)(4x^2 + 2x - 1)

The resulting polynomial after multiplying and combining like terms would be:

PQ(x)=4x5+…PQ(x) = 4x^5 + \ldots (with additional terms resulting from the multiplication process).

Here, δ(P)=3\delta(P) = 3 and δ(Q)=2\delta(Q) = 2, so according to the rule, δ(PQ)=3+2=5\delta(PQ) = 3 + 2 = 5, which aligns with the leading term 4x54x^5 in the expanded product.

Composition of Polynomials§

The composition of two polynomials PP and QQ is denoted by P(Q(x))P(Q(x)), which means that the polynomial Q(x)Q(x) is substituted for every occurrence of xx in polynomial P(x)P(x). In other words, P(Q(x))=a0(Q(x))n+a1(Q(x))n−1+…+anP(Q(x)) = a_0(Q(x))^n + a_1(Q(x))^{n-1} + \ldots + a_n, where the xx in the expression of P(x)P(x) is completely replaced by Q(x)Q(x).

To illustrate, let's take P(x)=4x2−2x+3P(x) = 4x^2 - 2x + 3 and Q(x)=x2−xQ(x) = x^2 - x. Then the composition P(Q(x))P(Q(x)) is:

P(Q(x))=4(Q(x))2−2(Q(x))+3P(Q(x)) = 4(Q(x))^2 - 2(Q(x)) + 3 P(Q(x))=4(x2−x)2−2(x2−x)+3P(Q(x)) = 4(x^2 - x)^2 - 2(x^2 - x) + 3 P(Q(x))=4(x4−2x3+x2)−2x2+2x+3P(Q(x)) = 4(x^4 - 2x^3 + x^2) - 2x^2 + 2x + 3

When computing this, you combine like terms to get the resulting polynomial.

The degree δ\delta of the composition P(Q(x))P(Q(x)) is the product of the degrees of PP and QQ:

δ(P(Q(x)))=δ(P)⋅δ(Q)\delta(P(Q(x))) = \delta(P) \cdot \delta(Q)

For instance, if PP and QQ both have a degree of 2, then P(Q(x))P(Q(x)) would have a degree of 4, assuming there's no cancellation of the highest degree terms.

If P(x)P(x) has the same degree as P(Q(x))P(Q(x)), it implies that the degree of Q(x)Q(x) must be 1, which means Q(x)Q(x) is a linear polynomial. This is because the composition of a polynomial with a linear polynomial does not change the degree of the original polynomial.

Section 2 of 10 · Polynomials

Mark this section complete when you have worked through its proofs.