Polynomials
We introduce rings of polynomials. Let R be a ring with identity. A polynomial over R is a sequence of elements ai, one for each natural number i.
f = (a0, a1, a2, ....)
(Of course, we almost always write (a0, a1, a2, ....) as π0 + π1π‘ + π2 π‘2 + Β· Β· Β· , or the same with some other symbol in place of π‘. )
such that ai = 0 for all but a finite number of i; the ai are called the coefficients of f. The zero polynomial is (OR, OR, OR, ..). If f = (a0, a1, ...) is not zero, there is a largest integer i such that ai ≠ 0; thus f = (a0, a1, ..., ai, 0, 0, ....). The integer i is called degree of f, in symbols def(f).
Warning A polynomial is not a function! A polynomial gives rise to a function, as weβll recall in a moment. But a polynomial itself is a purely formal object. To emphasize this, we sometimes call the symbol π‘ an indeterminate rather than a βvariableβ.
We've already seen different examples of fields: the rational field β, the field β and β as well as finite fields as β€p, with p prime number. In the following treatment we shall indicate with K a generic field and demostrate the theorems valid for any field.
Definition 5.1.1 A Polynomial function or rational integer function over the field K is a function p from K to itself such that there exists n ≥ 0 elements ai ∈ K so that
p: K βΆ K
p(x) = βni=0 aixi β‘
Let β± the set of all polynomial functions from K to itself. We can define addition and multiplication of such functions in K, by using the addition and multiplication operations defined in K. If p(x) and q(x) are the polynomial functions
p(x) = βni=0 aixi q(x) = βmj=0 bjxj m ≥ n
The sum of the polynomials function p(x) and q(x) is defined to be
(p + q)(x) = p(x) + q(x) = βmh=0 (ah + bh)xh
The product of the polynomials p(x) and q(x) is defined to be
(p β q)(x) = p(x)q(x) = βn+mh=0 (βi+j=haibj)xh
We now pass from polynomial functions to polynomial and see the difference.
Definition 5.1.2 A polynomial p(x) with coefficients in a field K is a formal expression of the form
p(x) = a0 x0 + a1x1 + ... + anxn, ai ∈ K (5.1.1)
where x is a variable. β‘
It follows from the definition that two polynomials p(x) = βnj=0 aixi and q(x) = βni=0 bi xi, with ai, bj β K, are equal if and only if ai = bj, ∀i (in particular, if m > n, then bn + 1 = bn+2 = Β·Β·Β· = bm = 0.
The set of all polynomial with coefficients in K is denoted by K[x].
For example: Expressions, like βx + 3x + 9, are not a polynomial because all the powers of variable x are not whole numbers.
Polynomial vs Polynomial functions
Usually Polynomial and Polynomial functions are indicated in the same way as p(x) = an xn, but there is a clear distiction between them. Two polymonial function are equal when they assume the same value for a given x ∈ K. On the other hand two polynomials are the same if they have the same formal expression (5.1.1). It is obvious that a polynomial p(x) = a0 x0 + a1x1 + ... + anxn defines a polynomial function which maps a c in K to p(c) = a0 c0 + a1c1 + ... + ancn also in K. But if we consider the mapping
Ψ: K[x] βΆ β±
βni=0 aixi βΌ f: K βΆ K
such application is for sure surjective but can be non-injective i.e. it can happen that different polynomials give rise to the same polynomial function. For example if K = β€3 the two polynomials f(x) = x2 and g(x) = x3 + x2 β x correspond to the same polynomial function from β€3 to β€3.
β€3 = {[[0]3,[1]3, [2]3} so if we take the element [2]3 we have replacing into the two functions: f([2]3) = [2]2 = [4] and g([2]) = [2]3 + [2]2 β [2] = [10 but [4]3 and [10]3 represent the first class.
For a finite field K, Ψ is never injective: K[x] is a infinite set because there are infinite polynomial expression we can write (even if coefficients are part of a finite set, the integer n can assume arbitrary values in β). We'll soon show that when the field K is infinite Ψ is biunivoque thus it is possible in this case to make no distinction between polynomial and polynomial functions.
In what follows we'll focus our attention on polynomials even if is some cases it will be useful to consider them polynomial functions.
We can use for K[x] the same addition and multiplication defined for β±, with regards to these operations K[x] is a multiplicative ring with unit but there is a difference with β±: the zero polynomial is defined has the one with all coefficients ai = 0. The opposite of the polynomial p(x) is the polynomial with all coefficients oppisite to ai.
Definition 5.1.3. Let p(x) = βnk=0 akxk, then the degree of p(x) denoted by βp(x) or deg p is the largest integer m such that the coefficient of xk is not zero. β‘
The polynomials of degree one are called linear, those of degree two quadratic, those of degree three cubic, and so on.
Recall that the leading coefficient, an, of a polynomial p(x) is the coefficient of the highest power of x occurring in p(x); we say that a polynomial p(x) is monic if its leading coefficient is 1.
Notice that the degree of a non-zero constant p(x) = a0 is zero. No degree is usually assigned to the zero polynomial, that is, the polynomial with all coefficients equal to zero.
Proposition 5.1.4. Let K be an integral domain or a field. Then the set K[x] forms an integral domain.
Proof. Let p(x) = βnj=0 aixi and q(x) = βmj=0 aixi be non-zero polynomial (at least one coefficient is ≠ 0) of degree n and m which means that an ≠ 0 and bm ≠ 0. From the product definition of two polynomials we have that the coefficient of xn+m is anbm because both an and bn are different from zero and they are part of a field which does not contain zero-divisors. Thus the product p(x)q(x) cannot be equal to zero.β‘
Example 5.1.5. Let p(x) = 2x2 + 4x + 2 and q(x) = 3x + 3 two polynomials of β€[x], we can verify thta
p(x)q(x) = (2x2 + 4x + 2)(3x + 3) = 6x3 + 18x2 + 18 x + 6
However if f(x) = p(x) = [2]x2 + [4]x + [2] and g(x) = [3]x + [3] are polynomials in β€6 we have
f(x)g(x) = [6]x3 + [18]x2 + [18]x + [6] = [0]
Let us explicitly remark the relations between the degrees of two polynomials with coefficients in a field, or in an integral domain, and the degrees of their sum and their product:
β(p(x) + q(x)) β€ max(βp(x), βq(x)), β(p(x)q(x)) = βp(x) + βq(x).
In the definition of a polynomial we can disregard the variable x as its value does not influece the definition. We can give the following definition of polynomial.
Definition 5.1.6. A polynomial with coefficients in K is an infinite sequence
{a0, a1, a2, ..., ai, 0, 0,...}
of elements in K of which the ai are zero from a certain index i onward. β‘
We usually set ai = 0 for each i > n; In the set of all these sequences we define addition and multiplication of sequences in the following way
(a0, a1, a2, ..., ai, ...) + (b0, b1, b2, ..., bn, ...) := (a0 + b0, a1 + b1, ai + bn, ...)
(a0, a1, a2, ...) β (b0, b1, b2, ...) := (a0 β b0, a0 β b1 + a1b0, ..., βi+j=k ai β bj, ...)
We can now better understand the role of x and its powers, which act as a sort of benchmark.