April 26, 2009: C 2009 Avinash Kak, Purdue University
April 26, 2009: C 2009 Avinash Kak, Purdue University
c
2009 Avinash Kak, Purdue University
1
6.1: Polynomial Arithmetic
2
6.2: Arithmetic Operations on Polynomials
3
6.3: Dividing One Polynomial by Another
Polynomial Using Long Division
– Divide the first term of the dividend by the first term of the
divisor and write the result as the first term of the quotient.
In our example, the first term of the dividend is 8x2 and the
first term of the divisor is 2x. So the first term of the quotient
is 4x.
– Multiply the divisor with the quotient term just obtained and
arrange the result under the dividend so that the same powers
of x match up. Subtract the expression just laid out from the
4
dividend. In our example, 4x times 2x + 1 is 8x2 + 4x.
Subtracting this from the dividend yields −x + 2.
5
6.4: Arithmetic Operations on Polynomials Whose
Coefficients Belong to a Finite Field
6
• Here is an example of multiplying two such polynomials:
f (x) = 5x2 + 4x + 6
g(x) = 5x + 6
f (x) × g(x) = 4x3 + x2 + 1
7
6.5: Dividing Polynomials Defined over a Finite
Field
• Our new dividend for the next round of long division is therefore
5x + 6. To find the next quotient term, we need to divide 5x by
the first term of the divisor, that is by 2x. Reasoning as before,
we see that the next quotient term is again 6.
• The final result is that when the coefficients are drawn from the
set GF (7), 5x2 + 4x + 6 divided by 2x + 1 yields a quotient
of 6x + 6 and the remainder is zero.
9
6.6: Let’s Now Consider Polynomials Defined over
GF (2)
• First of all, GF (2) is a sweet little finite field. Recall that the
number 2 is the first prime. (A prime has exactly two distinct
divisors, 1 and itself.)
• GF (2) consists of the set {0, 1}. The two elements of this set
obey the following addition and multiplication rules:
0 + 0 = 0 0 X 0 = 0
0 + 1 = 1 0 X 1 = 0
1 + 0 = 1 1 X 0 = 0
1 + 1 = 0 1 X 1 = 1
0 - 0 = 0
1 - 0 = 1
0 - 1 = 0 + 1 = 1
1 - 1 = 1 + 1 = 0
10
• So the addition over GF (2) is equivalent to the logical XOR
operation, and multiplication to the logical AND operation.
11
6.7: Arithmetic Operations on Polynomials Over
GF (2)
12
• Here is an example of dividing two such polynomials:
f (x) = x2 + x + 1
g(x) = x + 1
1
f (x) / g(x) = x +
x + 1
13
6.8: So What Sort of Questions does Polynomial
Arithmetic Address?
• Let’s say that the coefficient set is a finite field F with its own
rules for addition, subtraction, multiplication, and division, and
let’s further say that when we carry out an arithmetic operation
on two polynomials, we subject the operations on the coefficients
to those that apply to the finite field F . Now what can be said
about the set of such polynomials?
14
6.9: When is Polynomial Division Permitted?
f (x) r(x)
= q(x) +
g(x) g(x)
15
assuming that the degree of f (x) is not less than that of g(x).
• When r(x) is zero, we say that g(x) divides f (x). This fact can
also be expressed by saying that g(x) is a divisor of f (x) and
by the notation g(x)|f (x).
16
6.10: Irreducible Polynomials, Prime Polynomials
17
6.11: Polynomials Over a Field Constitute a Ring
• The set of all polynomials over a given field is closed under poly-
nomial addition.
18
• Therefore, the set of all polynomials over a field constitutes a
ring. Such a ring is also called the polynomial ring.
19
Acknowledgement
20