The polynomials and both have degree two, yet their sum is , which has degree one. Did adding two vectors take us out of the space? The answer depends on which set of polynomials we chose. This lesson states the rules that make a set with addition and scaling a vector space, checks them for polynomials of degree at most two and for 2-by-2 matrices, and gives these new vectors coordinates.
Key terms
Vector space
Definition A real vector space is a set with two operations. Addition assigns to any and in an object , and scalar multiplication assigns to any real number and any in an object . The vector space axioms below must hold for all in and all real numbers and .
- The sum lies in (closure under addition).
- The multiple lies in (closure under scalar multiplication).
- Addition is commutative, .
- Addition is associative, .
- There is a zero vector in with for every .
- Each has an additive inverse in with .
- Scalar multiplication is associative, .
- Multiplying by one changes nothing, .
- A scalar distributes over a sum of vectors, .
- A sum of scalars distributes over a vector, .
The members of are called vectors, whatever kind of object they are. Linear combinations, span, linear independence, bases and coordinates are defined in word for word as in . If has a basis of vectors, then every basis of has vectors, and is the dimension . A subset of that contains and is closed under addition and scalar multiplication is a subspace, and with the same operations it is a vector space in its own right.
In plain words A vector is anything you can add and scale by the familiar rules. Arrows are one example, but the word asks only that the two operations behave as listed.
Example On this page a tuple written inline, such as , stands for a column vector. In with the usual operations, every axiom comes down to real arithmetic in each component. For instance, holds because for . By contrast, the set of all vectors with the same operations is not a vector space. The sum falls outside the set, and so does . Both closure axioms fail, and the zero vector is missing.
Polynomials of degree at most two
Definition The set consists of all polynomials
with real coefficients , any of which may be zero. It contains the constants, the linear polynomials and the zero polynomial, whose coefficients are all zero. Two members are equal exactly when their corresponding coefficients are equal. For and a real number , addition and scalar multiplication act on the coefficients,
which is the same as adding or scaling the values at every input . No power above appears, so both operations stay in . Every other axiom follows coefficient by coefficient from the same law for real numbers. The zero vector is the zero polynomial, and the additive inverse of has every coefficient negated. With the same operations, the set of polynomials of degree exactly two is not a vector space.
In plain words The words “at most” do real work. They let the leading coefficients cancel, so sums and multiples never leave the set.
Example Take and . Adding and scaling coefficients gives
and both lie in . Now take and , which have degree exactly two. Their sum is , of degree one, and the multiple is the zero polynomial. Both results lie in but outside the set of polynomials of degree exactly two, so that set fails both closure axioms.
Coordinates of a polynomial
Definition The ordered list is a basis of . It spans, since every member has the form , and it is linearly independent, since is the zero polynomial only when . Hence . If is any ordered basis of , each in can be written in exactly one way as . The coordinates of in form the column
In the basis the coordinates are the coefficients, so .
In plain words The polynomial is the vector, and the column is its description in one chosen basis. Changing the basis can change the column, but it never changes the polynomial. The graph of is drawn in a plane, but has three independent coefficient directions, so the dimension of a picture and the dimension of the space are different questions.
Example The polynomial has . Now use . Expanding a general combination gives
Matching these coefficients with any target fixes , then , then , with exactly one solution, so is a basis. For our we get , then gives , and gives . So . Reconstructing confirms it,
Space of 2-by-2 matrices
Definition The set consists of all real matrices. Addition adds corresponding entries, and scalar multiplication multiplies every entry by the scalar. With these operations is a vector space, because each axiom holds entry by entry for real numbers. The zero vector is the zero matrix, and the additive inverse of a matrix negates all four entries. Matrix multiplication plays no part in this structure. In the same way the real matrices form a vector space . Matrices of different sizes cannot be added entrywise, so one space holds matrices of one fixed size.
In plain words Here a matrix is not acting on anything. It is a single vector, an array of four numbers that you add and scale one entry at a time.
Example Let
Then
The axiom holds entry by entry. It says nothing about the products and , which belong to a different operation and here are not equal.
Matrix units
Definition The matrix units of are
Each has a in row and column and zeros elsewhere. In the order they form an ordered basis of , because every matrix satisfies
and this combination is the zero matrix only when . Hence , and the coordinate column of the matrix above is . Likewise the matrix units with and form a basis of , so .
In plain words Each matrix unit switches on one entry. The dimension counts the entries that can vary independently, four here, not the number of rows.
Example The matrix above is
so its coordinate column in this ordered basis is . That column has four entries. It is not a column of , and it has nothing to do with multiplying a vector of . It describes the single vector in the four-dimensional space .
Check yourself
- Which of these subsets of are subspaces? (a) The polynomials with constant coefficient . (b) The polynomials with constant coefficient . For each subspace, give a basis and the dimension.
Show the answer
Set (a) is a subspace. It contains the zero polynomial, and adding or scaling polynomials of the form keeps the constant coefficient equal to . Every member is a combination of and , and is the zero polynomial only when . So is a basis and the dimension is .
Set (b) is not a subspace. The zero polynomial has constant coefficient , so it is missing. Closure under addition fails too, since has constant coefficient .
- Show that is a basis of , and find the coordinates of in it.
Show the answer
A general combination is
It equals exactly when , and . Every target has exactly one solution, so spans , and the zero polynomial comes only from , so is independent. For we get , and , so . Check that . The polynomial is unchanged, and only its coordinate column differs from .
- A matrix is symmetric when its two off-diagonal entries are equal. Show that the symmetric matrices form a subspace of and find a basis and the dimension. Is a basis of this subspace?
Show the answer
The zero matrix is symmetric. Adding two symmetric matrices gives equal off-diagonal entries , and multiplying by gives equal entries , so the set is a subspace. Every symmetric matrix can be written as
The three matrices , and are symmetric and span the subspace. They are independent, because the , and entries of the combination are , and . So the dimension is .
The list is not a basis. Its middle matrix has off-diagonal entries and , so it is not symmetric and does not even lie in the subspace.