Other Vector Spaces - drnickmines/MinesLinearAlgebra GitHub Wiki
The primary vector space in this course is
...by carefully listing out what makes a vector a vector, we can see if other things work like vectors. If other things work like vectors, we can use all we know about linear algebra - distance, orthogonality, systems of equations, optimization, geometry, etc. - on those things!
As a reminder, here's the definition of vector space:
A vector space is a set of objects (called vectors) on which the operations of vector addition and scalar multiplication are defined. The following 10 properties (the first 5 deal with vector addition, and the second 5 deal with scalar multiplication) hold:
-
$\large V$ is closed under addition. In other words, the sum of two vectors in$\large V$ is a vector in$\large V$ . - Vector addition is commutative:
$\large \vec{v}+\vec{u}=\vec{u}+\vec{v}$ . - Vector addition is associative:
$\large \vec{u}+\left(\vec{v}+\vec{w}\right) = \left(\vec{u}+\vec{v}\right)+\vec{w}$ . -
$\large V$ has an additive identity, a vector$\large \vec{0}$ such that$\large \vec{v}+\vec{0}=\vec{v}$ . - Every vector
$\large \vec{v}$ in$\large V$ has an additive inverse, a vector$\large -\vec{v}$ such that$\large \vec{v}+(-\vec{v})=\vec{0}$ . -
$\large V$ is closed under scalar multiplication. In other words,$\large c\vec{v}$ is in$\large V$ for any scalar$\large c$ and any vector$\large \vec{v}$ . - Scalar multiplication is distributive over vector addition:
$\large c\left(\vec{u}+\vec{v}\right)=c\vec{u}+c\vec{v}$ . - Scalar multiplication is distributive over scalar addition:
$\large \left(c+d\right)\vec{v}=c\vec{v}+d\vec{v}$ . - Scalar multiplication is associative:
$\large c\left(d\vec{v}\right)=(cd)\vec{v}$ . - There is a scalar identity 1 such that
$\large 1(\vec{v})=\vec{v}$ .
Let's look at some other things that meet the criteria to be a vector space. We'll start with some warm up examples to gain familiarity with the definition, and then we'll introduce that actually useful example of a vector space.
Let
What is the dimension of
These are linearly independent (none of them can be written as a linear combination of the others), and they span
Note
We can define the vector space
Let
What is the dimension of this vector space? What does a basis look like? Consider the functions:
Is it possible to write any of these as a linear combination of the others? No, so they are linearly independent. Can we reach any polynomial of degree 2 or less via a linear combination of these? Yes! This set is a basis, and
Question: We defined
Click to see the answer
Without the "or less," the set is no longer closed under addition. We could have
$\large p=2x^2-x+5$ and$\large q=-2x^2+7x+3$ . Then$\large p+q = 6x+8$ , which is not a polynomial of degree 2.
Let's take the vector space
Click to see the answer
Yes, the zero matrix is part of
$\large H$ since it is symmetric. And$\large H$ is closed under addition (the sum of two symmetric$\large 2\times 2$ matrices is a symmetric$\large 2\times 2$ matrix), and it's closed under scalar multiplication. This subset is a subspace (why else would we list it under the category "A subspace of$\large M_{2,2}$ "?).
Now, the truly useful application of this generalization of vectors is in function spaces. Consider the set of all continuous functions on the interval
Here's an interesting hierarchy of function subspaces:
- Let
$\large F$ be the vector space of all functions on$\large [a,b]$ . - Let
$\large H_1$ be the set of all integrable functions on$\large [a,b]$ . Then$\large H_1$ is a subspace of$\large F$ . - Let
$\large H_2$ be the set of all continuous functions on$\large [a,b]$ . Then$\large H_2$ is a subspace of$\large F$ and$\large H_1$ . - Let
$\large H_3$ be the set of all differentiable functions on$\large [a,b]$ . Then$\large H_3$ is a subspace of$\large F$ ,$\large H_1$ , and$\large H_2$ . - Let
$\large H_4$ be the set of all polynomials on$\large [a,b]$ . Then$\large H_4$ is a subspace of$\large F$ ,$\large H_1$ ,$\large H_2$ , and$\large H_3$ .
The idea of function spaces opens up many STEM applications, especially in data science and differential equations (so, all of hydrology, aerospace, and electrical engineering). There is one function space that is particularly useful and well-known:
Definition: The vector space of
$\large L_2$ functions is the set of all functions$\large f$ on$\large [0,2\pi]$ such that$\large \displaystyle \int_{0}^{2\pi} \left|f(x)\right|^2 dx<\infty$ . This set is also called the set of square integrable functions.
If these functions spaces are vector spaces, what is their dimension? What does a basis look like? Remember, any vector in the vector space can be written as a linear combination of the basis vectors.
For the
The sine and cosine functions of these integer frequencies are linearly independent, and, miraculously, they do span the function space. What does it mean for them to span the vector space? It means any function can be written as a linear combination of these basis vectors:
This crazy idea - that any function can be written as a linear combination of sines and cosines - is due to Joseph Fourier and is known as a Fourier series (remember from Calc II: a series is a sum of an infinite number of terms, which we certainly have here).
These are big and useful ideas! Fourier series are at the heart of all signal processing and are also very useful in dealing with partial differential equations.
We are presenting this here simply as an example of the usefulness of generalizing vector spaces beyond just
I can:
- Recognize if a set is a vector space.
- Find a basis (and the dimension) of simple vector spaces that are not
$\large \mathbb{R}^n$ .