Skip to content

Polynomial Basics & Vector Spaces

Polynomials are the building blocks of computational mathematics. Before we can approximate, interpolate, or differentiate using polynomials, we need a solid understanding of their structure — what they are made of, how they relate to each other, and what space they inhabit.


The Standard Polynomial

A polynomial of degree nn is written as:

Pn(x)=a0+a1x+a2x2+a3x3+⋯+anxnP_n(x) = a_0 + a_1 x + a_2 x^2 + a_3 x^3 + \cdots + a_n x^n

or equivalently using sigma notation:

Pn(x)=∑k=0nakxkP_n(x) = \sum_{k=0}^{n} a_k x^k

PropertyValue
Degreenn, the highest power of xx
Number of coefficientsn+1n + 1

Examples

  • P3(x)=a0+a1x+a2x2+a3x3P_3(x) = a_0 + a_1 x + a_2 x^2 + a_3 x^3 has degree 3 and 4 coefficients: a0,a1,a2,a3a_0, a_1, a_2, a_3.
  • A polynomial of degree 27 has 27+1=2827 + 1 = \mathbf{28} coefficients.

Polynomials as a Vector Space

Polynomials are not just formulas. They form a vector space. This means we can combine them in two fundamental ways:

Adding polynomials (vector addition):

(1+x+x2)+x3=1+x+x2+x3(1 + x + x^2) + x^3 = 1 + x + x^2 + x^3

Multiplying by a scalar:

(1+x+x2)×5=5+5x+5x2(1 + x + x^2) \times 5 = 5 + 5x + 5x^2

Both operations always produce another polynomial. This closure property is the defining feature of a vector space.


Basis and Dimension

Basis

The basis of a polynomial space is the minimal set of polynomials that can generate every polynomial in the space through linear combination.

For the space P3(x)P_3(x), the standard basis is:

{1,  x,  x2,  x3}\{1,\; x,\; x^2,\; x^3\}

Any cubic polynomial, regardless of its coefficients, can be written as a linear combination of these four basis elements. With them, we can generate any polynomial of degree 3 or less.

Dimensional Space

The dimension of the space is the number of elements in its basis. For polynomials of degree nn:

dim⁡(Pn)=n+1\dim(P_n) = n + 1

PolynomialDegreeDimensionNumber of Coefficients
P3(x)P_3(x)344
P27(x)P_{27}(x)272828
P58(x)P_{58}(x)585959

Functional Space vs. Polynomial Space

A general function f(x)f(x) can contain infinitely many terms:

f(x)=2+3x+10x2+14x3+25x4+⋯f(x) = 2 + 3x + 10x^2 + 14x^3 + 25x^4 + \cdots

There is no upper bound on the degree, so f(x)f(x) belongs to a vector space of infinite dimension:

f(x)∈V∞f(x) \in V^\infty

A polynomial Pn(x)P_n(x), by contrast, terminates at degree nn. It lives in a finite-dimensional subspace:

Pn(x)∈Vn+1P_n(x) \in V^{n+1}

When we perform polynomial approximation or interpolation, we are essentially projecting an infinite-dimensional function f(x)f(x) into a finite-dimensional polynomial space Vn+1V^{n+1}. The gap between f(x)f(x) and Pn(x)P_n(x) is the approximation error, and controlling that error is the central challenge of this chapter.