What is a Vector?


What is a Vector?

Simon
Hey Corey, today we're diving into linear algebra, and it all starts with understanding what a vector truly is. It's more nuanced than you might think, with a few different ways people conceptualize them.

Corey
That's right, Simon. I remember learning about vectors in physics, computer science, and even some abstract math courses, and they always seemed slightly different. It's good to clarify the distinctions.

Simon
Exactly. Let's break down these perspectives. First, there's the physics student's view: vectors are essentially arrows in space. Their identity is defined by their length and the direction they point, regardless of where they start.

Corey
So, a vector pointing northeast with a length of five is the same vector whether it originates from the sun or from my coffee cup, as long as it maintains that length and direction. That makes sense for representing forces or velocities.

Simon
Precisely. And these can be two-dimensional, like on a flat plane, or three-dimensional, existing in the space we inhabit. It's a very intuitive, visual way to grasp the concept of magnitude and direction.

Corey
Then you have the computer science perspective, which is very different. Here, vectors are seen as ordered lists of numbers. Think about modeling house prices, for instance, using square footage and price.

Simon
Yes, so each house could be a pair of numbers: one for square footage, one for price. The order matters here – [1500, 300000] is different from [300000, 1500]. In this context, 'vector' just becomes a fancy term for a list.

Corey
And the 'dimension' corresponds to the length of that list. So, a list of two numbers is a two-dimensional vector, and so on. It's a very practical, data-centric way to think about them, especially for data analysis.

Simon
Then there's the mathematician's perspective, which is the most abstract. It generalizes both views, defining a vector as anything where you have sensible notions of adding two vectors and multiplying a vector by a number.

Corey
That's a bit harder to wrap your head around initially. It's less about what a vector 'is' concretely and more about the operations it supports. It hints that addition and scalar multiplication are central to linear algebra.

Simon
Exactly, and we'll delve into those operations soon. But for now, for the sake of clarity in this geometric-focused discussion, let's settle on a working mental image for a vector.

Corey
So, when we say 'vector' from now on, what should we be picturing? Is it still an arrow, but with a specific placement? That's typically how I visualize them in coordinate systems.

Simon
Yes, precisely! Think of it as an arrow, but always rooted at the origin within a coordinate system like the xy-plane. This differs slightly from the physics view where they float freely.

Corey
Ah, anchoring them to the origin is key in linear algebra. It establishes a consistent reference point. And once we grasp a concept geometrically, we can then translate it to the numerical list perspective using coordinates.

Simon
Right. The coordinate system is where these two views, the geometric and the numerical, truly meet and enable that crucial back-and-forth translation. Let's quickly review 2D coordinates.

Corey
We have the x-axis horizontally, the y-axis vertically, and their intersection is the origin—the root of all our vectors. We choose a unit length and mark it on both axes.

Simon
Correct. And the coordinates of a vector are a pair of numbers that provide instructions. The first number tells you how far to move along the x-axis, and the second, how far to move parallel to the y-axis.

Corey
Positive x means right, negative x means left. Positive y means up, negative y means down. To distinguish vectors from simple points, we write these pairs vertically, usually in square brackets, like [3; 2].

Simon
Exactly. Every unique pair of numbers defines one unique vector rooted at the origin, and every such vector corresponds to one unique pair of numbers. It's a perfect one-to-one mapping.

Corey
And in three dimensions, we just add a z-axis, perpendicular to both x and y. Then each vector is an ordered triplet of numbers, telling us movement along x, then parallel to y, then parallel to z.

Simon
That's it. Again, a unique triplet for every unique 3D vector. Now, let's circle back to those fundamental operations I mentioned: vector addition and scalar multiplication. These are central to linear algebra.

Corey
Right, the operations that define the mathematician's abstract view of a vector. I recall them being fairly intuitive geometrically, but let's walk through them step-by-step.

Simon
Okay, for vector addition: imagine two vectors. To add them, you take the second vector and move its tail so it sits at the tip of the first one. Then, the sum is a new vector from the tail of the first to the tip of the second.

Corey
Ah, the 'tip-to-tail' method! This is actually one of the few times we let a vector temporarily stray from the origin in linear algebra, to perform the addition visually. It makes sense intuitively.

Simon
It does. Think of each vector as a movement. If you take the first movement, and then immediately follow it with the second movement, the sum vector represents the single, overall equivalent movement from start to finish.

Corey
It's like adding numbers on a number line: move 2 steps right, then 5 steps right. The total effect is 7 steps right. It's a spatial extension of that concept. So how does this look numerically?

Simon
Numerically, it's very straightforward. If you have vector [1; 2] and vector [3; -1], adding them using the tip-to-tail method means you're essentially combining the x-movements and the y-movements separately.

Corey
So, the new x-component would be 1 + 3, and the new y-component would be 2 + (-1). This means the resulting sum vector is [4; 1]. It’s just component-wise addition.

Simon
Exactly. You just match up the terms and add each corresponding component. It's wonderfully simple in its numerical representation, directly translating the geometric idea.

Corey
Great. What about the other fundamental operation, multiplication by a number? I remember this one being about changing the vector's length or direction, which makes sense geometrically.

Simon
Yes, that's called scaling. If you multiply a vector by 2, you stretch it to be twice as long. Multiply by 1/3, you squish it to one-third its original length. It changes its 'scale'.

Corey
And if you multiply by a negative number, like -1.8, it flips the vector's direction entirely before stretching it by that factor of 1.8. So, negative scales reverse direction.

Simon
That's precisely it. Any number that performs this scaling action on a vector is called a 'scalar.' In linear algebra, the terms 'number' and 'scalar' are often used interchangeably because scaling is such a primary role for numbers.

Corey
And numerically, if a vector is [x; y], and you multiply it by a scalar 'c', the new vector becomes [c*x; c*y]. Each component gets multiplied by that scalar. Again, it’s a component-wise operation.

Simon
Exactly. These two operations – vector addition and scalar multiplication – are the bedrock of linear algebra. Everything else we discuss will revolve around them in some way.

Corey
It's fascinating how the abstract mathematical definition of a vector, based solely on these operations, ties back so neatly to both the geometric arrow and the numerical list perspectives.

Simon
The power of linear algebra truly comes from the ability to fluently translate between these views. It allows data analysts to visualize complex data, seeing patterns in lists of numbers as spatial relationships.

Corey
And for physicists or graphics programmers, it provides a rigorous numerical language to describe and manipulate objects and spaces. Thinking geometrically first, then encoding it numerically, is a powerful workflow.

Simon
Absolutely. When I create animations, I visualize the spatial transformations first. Then, linear algebra helps me translate those movements into numbers the computer can process to render the pixels correctly.

Corey
So, the key takeaway is that whether you see vectors as arrows with coordinates, or as lists with geometric interpretations, the ability to switch between these mental models is where the real utility lies.

Simon
Spot on, Corey. These are the vector basics, and armed with this understanding of what vectors are and how to add and scale them, we're ready to explore more advanced concepts like span, bases, and linear dependence. See you next time!

Ask anything
We've read this whole study set, so questions about it get the best answers.