Hello! Welcome to the first lesson of your linear algebra course.
Given your goals to tackle both deep learning and quantum mechanics, we're starting with a concept that forms the bedrock of both fields: the abstract idea of a vector space. You might be used to thinking of vectors as arrows in 2D or 3D space, or as columns of numbers. Today, we'll generalize this idea to include a much wider variety of mathematical objects, such as matrices, polynomials, and even functions.
This lesson addresses the first learning outcome of our course: to define vector spaces over real and complex fields and verify the axioms for a given set. By the end of our session, you'll understand what makes a collection of objects a "vector space" and how to check if a given set qualifies. This abstract foundation is crucial because it allows us to apply the powerful tools of linear algebra universally, whether we're analyzing data in deep learning or describing quantum states.
1. Beyond Arrows: What is a Vector?
To begin, let's challenge the familiar notion of a vector. What if objects that don't look like arrows at all could behave like vectors? For example, can we "add" two functions together, or "scale" a function by a number? If so, could we apply the tools of linear algebra to them?
The following video from 3Blue1Brown provides a wonderful intuition for why mathematicians developed the abstract definition of a vector space. It shows how the properties of "vector-ness" can be found in unexpected places.
Abstract vector spaces | Chapter 16, Essence of linear algebra
Watch this video to build an intuition for why we need an abstract definition of a vector space. It beautifully illustrates how objects like functions can be treated as vectors.
Please watch from the beginning to 11:19. Pay close attention to how the concepts of vector addition and scalar multiplication are extended to functions, and how this leads to the idea of a checklist of rules, or 'axioms', that any vector space must satisfy.
As the video explains, the key idea is that as long as we have a set of objects with a sensible notion of addition and scalar multiplication, all the machinery of linear algebra—linear transformations, eigenvectors, and so on—can be applied. The axioms are simply a formal checklist to ensure our definitions of addition and scaling are "sensible" and behave as we'd expect.
2. The Formal Definition of a Vector Space
Now let's formalize the ideas from the video. A vector space is not just a set of vectors; it's a complete package. To define one, you need four ingredients:
- A non-empty set of objects, which we call vectors (let's call the set ).
- A field of numbers, which we call scalars (let's call the field ).
- An operation called vector addition (+), which combines any two vectors in to produce another vector in .
- An operation called scalar multiplication (·), which combines any scalar from and any vector from to produce another vector in .
What is a Field?
A field is just a set of numbers where addition, subtraction, multiplication, and division (except by zero) are all well-defined and behave as you'd expect.
To fully understand the definition of a vector space, we first need to be precise about what we mean by a 'field' of scalars. This short reading explains the concept.
Please read the section titled 'Definition of a Vector Space', but stop right before the formal definition of a vector space itself. The text starts with 'Before I give the formal definition...' and ends just before 'Definition: A vector space consists of...'. This will introduce you to fields like Q, R, and C.
For this course, the only two fields you need to worry about are:
- The field of real numbers, . Vector spaces over are called real vector spaces. These are central to physics, engineering, and most applications in deep learning.
- The field of complex numbers, . Vector spaces over are called complex vector spaces. These are absolutely essential for quantum mechanics.
The Ten Axioms
For the "package" of (, , +, ·) to be a vector space, the operations of addition and scalar multiplication must satisfy ten rules, known as the axioms. These axioms ensure that vectors behave in a predictable and consistent way.
The video below gives a clear and concise walkthrough of these ten axioms.
Vector Space Axioms Walkthrough & examples
This video breaks down the ten axioms of a vector space into five for addition and five for scalar multiplication, with simple explanations for each.
Watch from 0:27 to 3:31. The video will list and explain each of the ten axioms. Don't worry about memorizing them right away; focus on what each one means intuitively.
Here is a summary of the axioms for a vector space over a field . For any vectors and any scalars :
Axioms for Vector Addition:
- Closure under Addition: is in .
- Commutativity: .
- Associativity: .
- Existence of a Zero Vector: There exists a vector such that for all .
- Existence of an Additive Inverse: For every , there exists a vector such that .
Axioms for Scalar Multiplication:
6. Closure under Scalar Multiplication: is in .
7. Distributivity over Vector Addition: .
8. Distributivity over Scalar Addition: .
9. Associativity of scalars: .
10. Existence of a Multiplicative Identity: , where is the multiplicative identity of the field .
3. Verifying the Axioms: Examples and Counterexamples
Knowing the axioms is one thing; applying them is another. The process of checking if a set with its operations forms a vector space is called verifying the axioms.
Familiar Examples
You are already familiar with several vector spaces!
- : The set of all n-tuples (or column vectors) of real numbers is a real vector space with the standard component-wise addition and scalar multiplication. This is the most common setting for deep learning models.
- : The set of all matrices with real entries is a real vector space, with standard matrix addition and scalar multiplication.
- : The set of all n-tuples of complex numbers is a complex vector space. This is the primary stage for quantum mechanics, where vectors represent quantum states (e.g., the state of a qubit can be represented by a vector in ).
For , addition and scalar multiplication are defined just like in , but component-wise with complex numbers. For and in and a scalar :
Test your understanding!
Consider the vector space . Let .
- What is the zero vector in this space?
- What is the additive inverse ?
- What is the result of scalar multiplication by ?
Show answer
- The zero vector is . Note that the components are complex zeros, .
- The additive inverse is .
- .
When Things Go Wrong
Sometimes, a set that looks like it should be a vector space fails on one or more axioms. Proving a set is not a vector space is often easier than proving it is, because you only need to find one axiom that fails.
The next video segment provides several excellent examples of sets with non-standard operations and shows how to find the specific axiom that breaks.
Vector Space Axioms Walkthrough & examples
Now, let's look at some counterexamples. Watching how a set can fail to be a vector space is a great way to deepen your understanding of the axioms.
Watch from 4:41 to 9:50. For each example, try to guess which axiom might fail before the video reveals it. Notice the strategy: when an operation is non-standard, check closure, the zero vector, and the identity property first.
Test your understanding!
Let be the set , and let the field of scalars be . Vector addition is standard: . However, scalar multiplication is defined as:
Is with these operations a vector space? If not, which axiom fails?
Show answer
No, it is not a vector space. Several axioms fail, but we only need to find one.
A good one to check is the distributive property of scalar addition (Axiom 8): .
Let , , and .
- Left side: .
- Right side: .
Since , this axiom fails. Therefore, this is not a vector space. (You could also show that Axiom 10, the unit property, fails for vectors where ).
Conclusion
In this lesson, we took our first step from concrete examples of vectors to the powerful, abstract framework of vector spaces. This abstraction is what makes linear algebra a universal language in science and engineering.
Key Takeaways:
- A vector space is a set of objects (vectors) combined with a field of scalars and two operations (addition and scalar multiplication) that satisfy ten specific axioms.
- The purpose of the axioms is to create a general framework so that theorems and tools of linear algebra can apply to any object that fits the definition, whether it's an arrow, a matrix, a polynomial, or a function.
- We will primarily work with real vector spaces (like , crucial for deep learning) and complex vector spaces (like , the foundation of quantum mechanics).
- To verify if a given set and its operations form a vector space, you must confirm all ten axioms hold. To prove it is not a vector space, you only need to find one axiom that fails.
Preview of Next Lesson:
Now that we've defined what a vector space is, we'll explore vector spaces that live inside other vector spaces. In the next lesson, we will define subspaces and investigate the fundamental concept of the span of a set of vectors—the process of building up an entire space from just a few "building block" vectors.