Vector Spaces: A Playground for Vectors
A vector space is a collection of vectors with strict rules for how they can be added or stretched. It's the foundation for linear algebra, used in graphics and physics. The footgun: not every set of vectors forms a valid space.
WHY IT EXISTS To perform consistent and predictable math on groups of vectors, we need a formal framework. A vector space provides the fundamental rules for manipulating vectors, ensuring that operations like addition and scaling behave as expected, which is the bedrock of linear algebra.
THE MENTAL MODEL Think of a vector space as a sandbox for vectors. The vectors are the grains of sand. You have two main tools: a shovel to combine two piles of sand (vector addition) and a measuring cup to make a pile larger or smaller (scalar multiplication). The main rule of the sandbox is that any operation you perform must result in a new pile of sand that is still inside the sandbox; you can't create something that is no longer a vector in the original set.
HOW IT WORKS A vector space is defined by a set of vectors and two operations: vector addition and scalar multiplication. Vector addition combines two vectors to produce a third vector. Scalar multiplication combines a scalar (a number, like a real or complex number) and a vector to produce a new vector. For a set to be a true vector space, these operations must satisfy a list of requirements, called axioms, which guarantee properties like associativity and the existence of a zero vector.
WHEN TO USE IT The concept of a vector space is used whenever you need a rigorous way to describe a system whose elements can be added to each other and scaled. It's the foundational theory behind manipulating arrays of numbers in fields like computer graphics, physics simulations, and machine learning model training.
WHEN NOT TO USE IT Don't apply the vector space model to a set of elements where addition or scaling is undefined or doesn't make sense. For example, a set of employee names is not a vector space because there's no intuitive meaning for 'John Smith' + 'Jane Doe' or 3.5 * 'John Smith'. The operations must be mathematically coherent.
ONE CANONICAL EXAMPLE The set of all 2D arrows starting from the origin (0,0) on a standard x-y plane is a vector space. You can add any two vectors, like (1, 5) + (3, -2), and the result, (4, 3), is still a 2D vector on that plane. You can scale any vector by a number, like 10 * (1, 5), and the result, (10, 50), is also still a 2D vector on the plane.
Read the original → en.wikipedia.org
Get five bites like this every day.
Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.