Example VSP The vector space of polynomials, $P_n$

Set: $P_n$, the set of all polynomials of degree $n$ or less in the variable $x$ with coefficients from $\complex{\null}$.

Equality: \begin{align*} a_0+a_1x+a_2x^2+\cdots+a_nx^n&=b_0+b_1x+b_2x^2+\cdots+b_nx^n\\ \text{ if and only if }a_i&=b_i\text{ for }0\leq i\leq n \end{align*}

Vector Addition: \begin{align*} (a_0+a_1x+a_2x^2+\cdots+a_nx^n)+(b_0+b_1x+b_2x^2+\cdots+b_nx^n)=\\ (a_0+b_0)+(a_1+b_1)x+(a_2+b_2)x^2+\cdots+(a_n+b_n)x^n \end{align*}

Scalar Multiplication: \begin{equation*} \alpha(a_0+a_1x+a_2x^2+\cdots+a_nx^n)=(\alpha a_0)+(\alpha a_1)x+(\alpha a_2)x^2+\cdots+(\alpha a_n)x^n \end{equation*}

This set, with these operations, will fulfill the ten properties, though we will not work all the details here. However, we will make a few comments and prove one of the properties. First, the zero vector (Property Z) is what you might expect, and you can check that it has the required property. \begin{equation*} \zerovector=0+0x+0x^2+\cdots+0x^n \end{equation*}

The additive inverse (Property AI) is also no surprise, though consider how we have chosen to write it. \begin{equation*} -\left(a_0+a_1x+a_2x^2+\cdots+a_nx^n\right)=(-a_0)+(-a_1)x+(-a_2)x^2+\cdots+(-a_n)x^n \end{equation*}

Now let us prove the associativity of vector addition (Property AA). This is a bit tedious, though necessary. Throughout, the plus sign (“+”) does triple-duty. You might ask yourself what each plus sign represents as you work through this proof. \begin{align*} \vect{u}+&(\vect{v}+\vect{w})\\ &=(a_0+a_1x+\cdots+a_nx^n)+\left((b_0+b_1x+\cdots+b_nx^n)+(c_0+c_1x+\cdots+c_nx^n)\right)\\ &=(a_0+a_1x+\cdots+a_nx^n)+((b_0+c_0)+(b_1+c_1)x+\cdots+(b_n+c_n)x^n)\\ &=(a_0+(b_0+c_0))+(a_1+(b_1+c_1))x+\cdots+(a_n+(b_n+c_n))x^n\\ &=((a_0+b_0)+c_0)+((a_1+b_1)+c_1)x+\cdots+((a_n+b_n)+c_n)x^n\\ &=((a_0+b_0)+(a_1+b_1)x+\cdots+(a_n+b_n)x^n)+(c_0+c_1x+\cdots+c_nx^n)\\ &=\left((a_0+a_1x+\cdots+a_nx^n)+(b_0+b_1x+\cdots+b_nx^n)\right)+(c_0+c_1x+\cdots+c_nx^n)\\ &=(\vect{u}+\vect{v})+\vect{w} \end{align*}

Notice how it is the application of the associativity of the (old) addition of complex numbers in the middle of this chain of equalities that makes the whole proof happen. The remainder is successive applications of our (new) definition of vector (polynomial) addition. Proving the remainder of the ten properties is similar in style and tedium. You might try proving the commutativity of vector addition (Property C), or one of the distributivity properties (Property DVA, Property DSA).

(in context)