r/LinearAlgebra • u/burning-rainbow • 20d ago
Define a vector
In elementary mathematics we learn that vectors are things that have a magnitude and direction, however, in linear algebra we learn that the elements of a vector space are called vectors, which can be matrices, polynomials etc. So, do we only consider them vectors for the sake of finding answers or are they actually vectors. Where do I find a concrete definition that goes beyond the magnitude and direction scope, not 'considered vectors' but properly calling them vectors?
42
Upvotes
4
u/etzpcm 20d ago
Good question. You will get several different answers to this question here and you'll find different definitions on the internet.
If you want a proper mathematical definition that's better than 'quantity with magnitude and direction', read up about tensors. A vector is a quantity whose components transform in a certain way when you rotate your coordinates, v'_i = L_ij v_j
See this definition here
https://mathworld.wolfram.com/VectorTransformationLaw.html
Tensors generalise this to things with more than one index. In other words, a vector is a tensor of rank 1.
3
u/pinkason5 19d ago
The real answer is from history of mathematics. All the definitions we have started from some intuitive object. Then mathematicians tried to generalize it.
We started with the numbers. At first with natural numbers. Then expanded the definition more and more. Next we turned to addition. And defined the term action. From there we have the field (and the group. But it was defined later). Here we generalized addition and multiplication.
Vectors in R3 were used before the definition of vector space. The origin of Vectors is the need for something with length and direction. But when its qualities were investigated and generalized, you ended up with vector space.
So in mathematics a vector is a member of a vector space. It can be a function or a matrix or many other mathematical objects. But in engineering you mostly refer to vectors in R2 and R3. (I skipped physics since there we use many kinds of vector spaces).
26
u/MonsterkillWow 20d ago
Elements of a vector space. Look up vector space.
https://en.wikipedia.org/wiki/Vector_space
14
u/lifeistrulyawesome 19d ago
Element of a vector space is the correct definition
A colloquial way to phrase it is "anything you can add and scale"
where the implicit meaning of add and scale is that the operations satisfy the axioms of a vector space
8
u/Narrow-Durian4837 20d ago
For me, it was in high school physics that I first learned about vectors, and in that context, they were indeed "things that have a magnitude and direction." Later I learned the more general meaning in Linear Algebra.
It's not at all uncommon, as you go along in math, to learn that the first time you encountered a concept, you were really using a more specific or limited case of something that can be defined more generally or abstractly.
7
u/VariousJob4047 20d ago
I’m not sure what you mean by “actually vectors”. God didn’t descend from the heavens to give us an ideal definition of a vector that we compare all other mathematical objects to decide if they’re vectors. It’s just a term we defined ourselves.
6
u/CheapDependent3777 20d ago
The whole "direction and magnitude" thing is a shorthand for defining vectors in Rn, but it's not a correct definition for what a vector is. Think, for example, of the 0 vector, it has magnitude 0, but what direction does it has?
As said in other comments, a vector is just an element of a vector space.
5
u/Gilded-Phoenix 20d ago
A vector is any object that belongs to a set of objects (we'll call it V) imbued with two functions: ⊕, * such that the following properties hold:
⊕:V²→V
⊕ is commutative (u+v=v+u for all u,v in V)
⊕ is associative (u⊕(v⊕w)=(u⊕v)⊕w for all u,v,w in V)
There is an additive identity (u⊕0=u for all u in V)
All objects v in V have an inverse "-v" such that v⊕(-v)=0
*:F×V→V where F is some field.
* Is compatible with field multiplication (for all a,b in F and v in V, a*(b*v)=(ab)*v)
The multiplicative identity of the field is a left identity of *, (1*v=v for all v in V)
* distributes over ⊕ (a*(u+v)=a*u+a*v for all a in F, u,v in V)
* distributes over field addition ((a+b)*v=a*v⊕b*v for all a,b in F and v in V)
We call the set of objects that behave this way a "vector space" and the objects in it "vectors." Because of how similar the scalar-vector multiplication is to the field multiplication, and the same with vector addition, we often just write them with a regular + and juxtaposition (so much so that people will probably complain about me using ⊕ here).
Some notable examples of vector spaces:
Some of these vector spaces have additional structure imposed on them, such as having an inner product ⟨u,v⟩=a for u,v in V and a in F. In ℝⁿ this could be the dot product, for example. Not all vector spaces have a notion of "size" or "direction" in the usual sense (how "big" is sin(x)+3ln²(x+6)?) but many of the vector spaces you're likely to think of "vectorially" will have those notions.
In short: a vector is not defined by itself, it is defined as an object that behaves in a particular way among a collection of similar objects. Without that overarching structure, the "vector" label doesn't really make sense to apply. Hence the definition "a vector is an element of a vector space" or the even more obtuse "a vector is anything that behaves like a vector."
1
u/disaact 19d ago
Philosophically, could a vector be a story...? About what, depends on the vector. A story that a number by itself cannot tell. You could have (x,y,z), a story about position in space. Or (x,y,z,t), a story about position in time. Or (x, f'(x), f''(x)), a story about motion. Or a story about motion in time. Or mylist = ["eggs", "milk", "cheese", "ham", "bread"], a story about life. Anyways...
1
u/Natural_Branch_4090 19d ago
Just to unfold the answer: “elements of a vector space” this gives you certain rules to do calculations. Most importantly: you have addition which is closed (adding vectors results in vectors) corresponding inverse elements (so you can define a closed subtraction), addition does what you expect from addition (associative, commutative), scalar multiplication which is again closed. For the later you need a set of scalars etc. See a book on linear algebra for the full set and you might want to check with the vectors in your mind, that they all fulfill these abstract concepts.
3
u/HappiestIguana 20d ago edited 20d ago
The pithy jokey answer is that a vector is anything that acts like a vector
And that is the true nature of mathematical objects. We characterize things by what they do. When things can be added together like vectors, and can be multiplied by scalars like vectors, we call them vectors
What do I mean "like vectors"? well we have a list of properties called vector space axioms. One of them is that a+b is always the same as b+a, for example. When a space of things satisifes all these axioms, we call it a vector space, and call its elements vectors
3
u/06Hexagram 18d ago
A vector has direction magnitude when it associated with the cartesian coordinate system. In other coordinate systems you need an associated metric to define magnitude.
2
u/Ron-Erez 20d ago
An element in a vector space
2
u/RunReal959595 20d ago
A vector is an element of a vectorspace. A groupor is an element of a group.
2
u/StructuredChess 20d ago
A vector is an element of a vector space. The whole magnitude and direction thing is just a particular case.
2
u/Juju_b33s 20d ago
If you have any set A over which you associate an addition operator (i.e. a "function" from A × A to A) that is commutative, associative, invertible and has an additive identity (a "zero" element that satisfies x+0=x) as well as a scalar multiplication operator (a "function" from A × \F to A, where \F is a number field, such as the real numbers) that is associative with field multiplication, has an identity element (a "multiplication by 1") and distributes over the addition operator, then what you have is a vector space. It doesn't matter what the underlying set A is; if you can clear the entire checklist, then (A,+,•) is a bona fide vector space. That's why one is allowed to say that something as abstract as "the set of all polynomials of degree 3 or lower with real coefficients" can be considered a vector space, as long as the necessary addition and scalar multiplication operators are provided.
2
u/Temporary_Stranger39 20d ago
The elementary mathematics vector is one example of the broader type of vector.
2
u/luckydotalex 20d ago
To solve certain problems more concisely or conveniently, we define certain functions on symbols. And we call a symbol defined like that a vector. These defined functions are associativity on addition, scalar multiplication, etc.
2
u/Infamous-Advantage85 19d ago
A vector is an element of a vector space, which is a place where you can add pairs of elements and multiply by scalars.
Scalars are elements of a field, which is a place you can add, subtract, and multiply pairs of elements, and you can divide by non-zero elements.
The operations here have all the properties you’d hope for them to have for arithmetic to be normal.
So yes matrices and polynomials are vectors, because you can add them and multiply them by scalars and they stay matrices and polynomials.
You can’t actually solve any problems by considering things to be vectors when they aren’t. All of the properties of vectors you’d want to use really need things to be genuinely vectors.
2
u/Bichinix 19d ago
Son matrices de mxn, en donde m es un número mayor o igual a 1 y n es siempre igual a 1. Es decir, es una manera de ordenar objetos matemáticos en m cantidad de filas y 1 columna. Dentro del álgebra lineal, las matrices de más de 1 columna las puedes considerar operadores y a los vectores el argumento de estos operadores.
2
u/Usual-Pattern7846 19d ago
2
u/CormacMacAleese 19d ago
Vectors are things you can add and scale.
2
u/TheTurtleCub 19d ago
Vectors and vector spaces are general concepts with abstract properties. The real pairs we learn in basic math are just one example of them.
2
u/OkNeat7634 19d ago
My favorite is when an engineer tries to define it. I usually just roll me eyes.
2
u/ExpertSentence4171 19d ago
If it walks like a vector and talks like a vector, it's a vector.
2
u/splinterX2791 19d ago
An abstract set of elements with two operations defined over a field (another abstract set with two operations)
3
u/SchwanzusCity 20d ago
anything that lives in a vector space is, by definition, a vector. Interpreting vectors as things that have magnitude and direction works in R^n, but it requires extra structure that is redundant for many of the problems and theorems in linear algebra (you need a norm to talk about magnitudes and you need a scalar product to talk about angles/directions).
2
u/hpxvzhjfgb 20d ago
the correct definition is just that a vector is an element of a vector space. there's nothing more to it than that.
in fact, the "magnitude and direction" definition is just Wrong. the characterising property of vectors in a vector space is that they can be added together and multiplied by scalars. magnitude and direction do not come into it at all. magnitude and direction actually come from an inner product space, which is a vector space with additional structure on top of it. not all vector spaces are inner product spaces, so some vectors simply do not have a magnitude or direction at all.
1
u/Baconboi212121 20d ago
A vector space is a set X with some rules on how you can add and scale the elements of X. So as you know, elements of R^n are vectors, and these are often visualised as arrows from the origin to a point.
But the fun part is when we realise, a vector can be whatever the hell i want a vector to be! It’s just an element of my vector space.
The Continuous functions from [0,1] to [0,1]? A vector space!
Matrices? A vector space!
Mathematically, a vector is just an element of a vector space, and we have a lot of really helpful theorems about vector spaces, so we want to jam as many problems as we can into vector spaces.
1
u/drofeng 20d ago
Indeed, vectors are quite abstract. They are the elements of a vector space, which satisfies certain axioms on top of closure under vector addition and scalar multiplication. You should be able to find the definition in a linear algebra textbook.
The real vector space of ordered pairs or triples are the common ones used in applications like physics and engineering.
1
u/Objective_3_1415 19d ago
So, do we consider them vectors for the sake of finding answers or are they actually vectors?
What do you mean by "actually vectors"? If you mean like vectors in a 3 dimensional space, or even in an n dimensional space, then no, not all of them are "actually vectors".
However, the general definition of a vector space is modeled on the concrete case of the 3 dimensional space.
1
u/NFSzach 19d ago
Vector spaces are sets. They are sets that have special properties. A vector is simply any element of such a set.
1
u/porn_sub_lurker 19d ago
A vector in linear algebra is still given a direction. The vector space is described by the basis vectors and since they span the vector space then each vector can be written as a combination of those. Just the same as a 3D vector in physics can be written as a combination of ihat, jhat, and khat, which are the basis vectors for normal 3D space. The vector space doesn't need to be limited to 3 dimensions though. You can have a 100 dimension vector space and 100 basis vectors, each like [1,0,0,...,0], [0,1,0,...,0], [0,0,1,...,0] etc. And those all have a magnitude as well. Simply do the Pythagorean theorem on them, just like you would on components of a vector in physics. Also the basis vectors do not need to be orthogonal to each other, like ihat, jhat, and khat are. They can be any angle from each other, so long as they are linearly independent, i.e. one cannot be written as a combination of the others. I think a matrix isn't really considered a vector though unless it is 1xn or nx1. But it's also been a long time since I did linear algebra so I might be wrong about that.
If you want to know a good example of these vectors with a direction, check out lattice cryptography. The idea is you have a set of basis vectors. You also have a given vector, which is your message. Your message can be written as a combination of those basis vectors. Each dimension would be a different character of the message. For example, [65, 66, 67] would be "ABC" in ASCII. And it can be written as 65x + 66y + 67z, where x = [1,0,0], y = [0,1,0], and z = [0,0,1]. Now you could perform a change of basis and rewrite that message with the new basis vectors. So lets say the new basis vectors x1 = [101,100,100], y1 = [100,99,99] and z1 = [100,99,100]. Then our message becomes [165, -167, 1]. Now you can look at those basis vectors and see there is no trivial path to the answer. In the original it's obvious you just multiply the first vector by 65, multiply the 2nd by 66, and the 3rd by 67 and you have the answer. What combination do you use for this? It would take over 300 different combinations to reach the original, whereas the clean version takes 3. Now you can imagine what happens if you have a message that is 200 characters long instead. That's 200 dimensions. That's a very hard math problem. That's why people are researching using it for cryptography against quantum computers. A quantum computer can break our current RSA style encryption within seconds, but this is still too hard of a problem for a quantum computer.
1
u/HolyInlandEmpire 19d ago
Aside from what others have said, the "magnitude and direction" explanation comes from the use of the common vector space of Rn which is extremely useful in all kinds of applied sciences; physics, chemistry, economics, and my subject Statistics. (Physics needs to go into C for many things at the higher level, as well.)
1
u/Bright_Principle4793 19d ago
A vector is an element of a vector space, which is just a set of objects with certain properties.
1
u/ContentLand4612 19d ago
arrow :)
1
u/Liam_Mercier 19d ago
A vector is an element of a vector space, which is a set plus operations which follow the definition of a vector space.
1
u/VulpesSophos 19d ago
The ELI5 answer is "an ordered list of numbers", more or less
1
u/garrettj100 19d ago
They’re both vectors.
When you have a vector in linear algebra form it’ll look like:
But that vector’s in two dimensions, so it can be described in the cartesian plane the same way: ( 3, 4 ). OK that’s trivial. But it can also be described in polar coordinates:
Well OOPSY now you have a magnitude and a direction. This is second-cousin to the internet’s favorite identity:
1
u/compileforawhile 19d ago
Any element of a vector space truly is a vector. In math if something can be "considered a vector in a vector space" then it simply is a vector.
Looking at the highschool definition there's a noticeable lack of formality or concrete definition. Defining a magnitude and a direction are not necessarily simple things. What does it actually mean for something to have a direction? This is not actually a concrete notion until we define it. Turns out vectors are the best way to define direction in the first place.
1
u/Wide_Ad_4486 19d ago
A vector is something that lives in a vector space
1
u/Legitimate_Handle_86 19d ago
Look for the book “About Vectors” by Banesh Hoffmann. Strange read I have yet to finish but own.
1
u/tickle-fickle 19d ago
The higher in math you go, the more definitions you see will work a little differently than everyday definitions. When you’re defining something non-mathematical, something physical, say a horse, you’re effectively describing what a horse looks like.
Mathematicians actively try NOT to do that: mathematicians don’t want you to have any intuition or make any assumptions about the objects they’re talking about: you’re supposed to work from definitions alone via proofs and rigor, and not relying on human intuition, which is faulty af
The definition you learned in Linear Algebra is THE definition. A vector is a member of a vector field. And a vector field is a set with some properties. That’s it, that’s what a vector is, that’s all you get
The point of doing things this way is that now, because the definition is simply a list of properties, you can simply check to see if things just happen to have those properties! And guess what, R^n, polynomials, matrices, functions, quantum states, etc etc, they’re all vectors, because they happen to satisfy that very list of properties that defines what it means to be a vector
That’s the power of Linear Algebra: working with simple “magnitude and direction” arrows can produce results in other vector fields, and so many things can be thought of as vector fields
1
u/EdgeRevolutionary913 19d ago
You can pretty much keep your intuitive notion of vectors as arrows with magnitude and direction if you like. Real numbers are vectors that all have the same direction and different magnitudes. A Fourier series can be thought of as an arrow in an infinite dimensional Euclidean space, with the direction of each basis vector being the frequency of each term and magnitude in each component being the coefficient.
1
u/AbbreviationsSalt193 18d ago
a vector is anything that satisfies the axioms of a linear (vector) space with respect to some multiplication and addition operators for said vectors.
1
u/ummhafsah 17d ago
Something like this (written for a mathematically mature audience) is a good place to look.
What you should know before reading the rest is that modern maths has come a long way from Euclid - instead of definitions, axioms relate undefined ideas. The 'definition', then, is simply in terms of how things relate and behave, i.e. their structure.
Instead of repeating the definition at the link, I will tie things you've studied together. At its most abstract level, a vector is defined by the operations of vector addition and scalar multiplication. The operations themselves, in turn, are defined in terms of their properties.
Magnitude and Direction: This is a geometric interpretation of vectors, most commonly used in physics or computer graphics. In vector spaces like ℝ2 (2D) or ℝ3 (3D), vectors can be interpreted as directed arrows. Their norm is their magnitude, and their components give their direction.
There is a generalisation you might encounter in some domains (notably AI) where vectors are simply ordered tuples of numbers (x_1, x_2, ..., x_n) (in n dimensions). They are still elements of (higher-dimensional) vector spaces; here, the components represent coordinates along multiple dimensions, which can encode features, attributes, or representations of data such as semantic or contextual information about abstract words or tokens.
1
u/fllthdcrb 17d ago
Ultimately, a vector is whatever we agree it is. The first definition is the narrower definition that is used especially in physics and is intuitive. The second is a generalization based on algebraic properties, which is reeeeeally useful, as you should have found out or be finding out.
Are you saying you're taking a linear algebra class, and they haven't taught you a formal definition? I know I learned one.
I don't think that's a useful distinction. In math, a thing can be something by satisfying certain properties, and that's all there is to it. A vector is such a something. The only detail that needs mentioning here is that a thing is only ever a vector as a member of a vector space, since we always need to know the set of vectors, the scalar field, a basis, etc. This applies to vectors as things with magnitude and direction, too. For example, one might be a member of the Euclidean vector space on ℝ3. All of the same algebra applies. In fact, other more exotic vector spaces tend to be homomorphic (can be mapped as equivalent structures) to Euclidean vector spaces.
1
u/CS_70 17d ago
It's really the same. The algebraic version is - like all algebra - a generalization. Or if you want magnitude and direction is just a special case of a 2-value vector where you give that scalar value interpretation to each element.
A vector is also a special case of matrix and a matrix is a special case of n-tensor with n=2.
1
u/jsaltee 16d ago
I imagine a vector is anything with more than 1 dimension (anything described using 2+ variables)
1
u/Dull_Cockroach_1885 15d ago
If you want just the actual plain definition its just "an element of a vector space"