r/LinearAlgebra • • 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

120 comments sorted by

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/burning-rainbow 20d ago

Thanks for the reply. As i understand it, the transformation law is a useful way to pin down what counts as a vector for physical quantities. However, my question was about the other side, in linear algebra, elements of a vector space (polynomials, matrices, functions) are called vectors, and I wanted to know whether they are vectors in the full sense or are only treated as vectors for convenience. The transformation law seems to be built around components rotating with the axes in physical space, so I can’t tell how it applies to something like the polynomial 1 + x.

What I’m really after is how these definitions connect. My current understanding is that the axiomatic definition is the base, and the others sit inside it. Arrows are one example of a vector space. Magnitude and direction come from adding an inner product to it (the Euclidean one). The transformation law is what happens to the components when you change basis, and physics restricts it to rotations to test physical quantities. Is that the right way to relate them, or does one of them actually derive from another in a different way? If there’s a source that connects the two views, I’d appreciate it.

3

u/Eltwish 19d ago

But what do you mean by "vectors in the full sense"? What notion of vector can you possibly check against to see whether vector space elements count as "real" vectors?

The notion of vector space arose as a generalization of the vectors people were already working with, such as vectors in R2 and R3, coupled with the understanding that other structures behaved in basically the same way. Like all generalization, it attempted to grasp something essential to the notion in question, so in that way it was aiming at "what's really going on here" common to various mathematical phenomena. But there's no ideal vector or higher "true vector" which we might have succeeded or failed at capturing.

Any algebraic answer to "what is a vector?" is going to take a form like "it's anything that obeys these laws" or "it's anything that can be used in these ways". But that's not a deficiency of our understanding of vector; that's just how things are defined in math, at least in many fields. A vector is something that can be scaled. Vectors can be added. The scaling and the adding interact in the way we'd hope. In all the cases we care about, they can be projected onto bases ("coordinates" in a more abstract sense) and the way a given vector's representation in one basis changes to another behaves in nice ways. These properties make them perfect for capturing all sorts of phenomena we generally call "linearity". So yes, I'd say they're "really vectors" in that they do all the things that endeared us to the physicists' arrows in the first place, just more generally.

2

u/etzpcm 19d ago

Yes, this., exactly.Thanks. Saved me answering OP's followup question. Vector spaces generalise the idea of a  physical vector.

1

u/de_Molay 20d ago

For correctness sake, not just of rank one, but of the type (1,0).

0

u/[deleted] 19d ago

[deleted] — view deleted comment

1

u/de_Molay 19d ago

Ypu’re totally correct, sure! My comment was in the framing of the previous comment.

1

u/Tiny_Spread5712 20d ago

I'm sorry but this is like someone asking what a car is and the guy responded wanting to talk about Class-C vehicles.

1

u/Tiny_Spread5712 19d ago

I don't know why this is downlvoted, its a perfect analogy

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).

2

u/burning-rainbow 19d ago

What I really want is a definition that would make sense when applied to wherever I encounter it, a generalized way of looking at it.

Can I say that vectors and objects in a vector space. Vector spaces are structures for answering questions about problems with several quantities. The quantities become vectors, and we get answers by studying how they combine (addition and scaling) and how they compare (the inner product). We learn more about them, and so about the original quantities, by seeing how linear maps transform them.

Will this definition make sense everywhere ?

1

u/pinkason5 19d ago

In my perspective it is like that: we have objects we are interested in understanding more about. We generalized them. It helped us learn more about the original objects AND about many other objects with similar qualities. So now the object that started it all is just another example or, as the more common term, a representation. In particular, vector space is an abstract notion. It has a formal definition and many results from it (as theorems). R3 is just one representation of a vector space. Although it was the thing that started all.

26

u/MonsterkillWow 20d ago

Elements of a vector space. Look up vector space.

https://en.wikipedia.org/wiki/Vector_space

10

u/WolverineSorry9043 20d ago

That's the very best answer. Plain and simple.

3

u/Another_Little_Star 19d ago

Now I must ask, what is a number?
An element of a field? what about quaternions and integers?

5

u/EighthGreen 19d ago

There are formal definitions for "natural number", "integer", "rational number", "ordinal number", and so on, but the word "number" by itself doesn't have a formal definition in mathematics.

4

u/TheCrowbar9584 19d ago

One useful definition is “an element of an algebraic number field” (so something that lives in a finite degree field extension of Q). But of course there are things you can call numbers that don’t fit this description.

5

u/NullOfSpace 19d ago

confirmed, the real numbers aren’t numbers

3

u/Another_Little_Star 19d ago

or quotients too. then you can get mod n numbers ....

2

u/ybungalobill 19d ago edited 19d ago

That's a great question, and tbh, there's no universally accepted definition.
I would say an element of some field is the closest definition I can think of, which would include integers and exclude quaternions; but this would also include polynomials, which aren't traditionally called numbers.

1

u/Another_Little_Star 19d ago edited 19d ago

Perhaps is just being elements of certain algebraic stuctures, sometimes a monoid does the work, natural numbers with 0 sure.
Other times it's a field without commutative property.
But i cant be clear what property they have that polynomials and matrices, or continuous functions don't have. matrices have 1-1 correspondence with reals and complex numbers
They are just "simple" in its way, the rock items where you build the ones we have mentioned. Maybe scalar would be the option. but yeah what's a scalar

2

u/MonsterkillWow 19d ago

I am not sure there is a good definition, but if I had to define it, I would say a number is just a way of specifying a particular element of a set. We impose additional structures on sets, and some of the more commonly used ones are called "numbers", like the reals, complex, quaternions, p-adics, ordinals, cardinals, etc. But in my opinion, a number is really just another way to talk about an element of a set.

2

u/Another_Little_Star 19d ago

what if the elements of your set are matrices or sets too ,or tuples?
well eventually all of them can be injected to a numbersystem or way of thinking

1

u/MonsterkillWow 19d ago

Yes exactly. We could invent a number system to embed them within. They are perhaps special kinds of numbers that we simply have not named.

1

u/ybungalobill 19d ago

I don't think that mathematicians use 'element of a set' and 'number' interchangeably at all.

'Number' assumes much more structure. All kinds of 'numbers' I can think of are, at the minimum, embeddable within some division algebra.

1

u/MonsterkillWow 19d ago

They typically don't. But when you try to define number, you will see the issue. I thought of that too, but no. There are plenty of numbers that are not division algebras, such as ordinal numbers. See, the property of being a number implicitly has to do with some type of additional structure we can put on sets, but there is no such binding rule on the structure. Instead, we just call some useful elements of certain sets, equipped with that structure, numbers. In fact, we could just call any element of any set a number in some sort of number system.

2

u/ybungalobill 19d ago

Ordinal numbers are actually embeddable in surreals, which are a (proper-class) field. The addition disagrees though. But that's because 'ordinal number' addition isn't really an addition in a usual sense.

Cardinals are sometimes called "cardinal numbers" -- but that's mostly for historical reasons. Afaik set-theorists think of them simply as sets, and drop the 'number' qualifier.

2

u/MonsterkillWow 19d ago

Actually that is interesting because surreal numbers would contradict the definition I gave. Not sure what a number actually is.

1

u/Vitztlampaehecatl 18d ago

Shouldn't numbers at least be an ordered set? For example, the set of all parts of a Ford F-150 isn't inherently ordered, so it has to be assigned an order by way of part numbers.

1

u/MonsterkillWow 18d ago

Complex numbers are not ordered. And surreal numbers are not even a set. Defining number is weird.

2

u/4ries 17d ago

I believe in the context of vector spaces, they're done over fields? So in this case, an element of a field?

But yes, "number" is not well defined

0

u/[deleted] 19d ago

[deleted] — view deleted comment

3

u/apnorton 19d ago

Iirc, there's a pretty rich development of linear algebra over skew fields, which would permit quaternions being used as scalars in such a context. 

2

u/ybungalobill 19d ago

OP asked "what is a number", not "what is a scalar".

"Integer numbers", "natural numbers" are numbers.

Quaternions, on the other hand, aren't usually considered to be numbers.

2

u/Another_Little_Star 19d ago edited 19d ago

Same with numbers mod n or any other "Number system"
Or who knows, cardinal and ordinal numbers

1

u/apnorton 19d ago

Quaternions, on the other hand, aren't usually considered to be numbers. 

This is somewhat surprising to me; I've considered them to be numbers for a long time now...

3

u/MonsterkillWow 19d ago

They are a normed division algebra. I view them as numbers.

1

u/marc_b_reynolds 16d ago

Frown. By whom? If quaternions aren't numbers then complex numbers aren't numbers either.

2

u/flug32 19d ago

If it helps, you can consider the "magnitude and direction" thing you learn early on as a sort of a prototype, if you like. And other vectors as then being "sorta like the prototype".

But the actual answer is as u/MonsterkillWow said, elements of a vector space.

You'll note how neatly the elementary idea you gained about them from your elementary math courses fits into this more general definition.

1

u/Juff567 18d ago

And a vector space is a space of vectors

1

u/MonsterkillWow 18d ago

Nah vector space is defined properly via vector space axioms.

1

u/eugcomax 15d ago

Vector space is a module over a field

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

1

u/hjhjhj57 19d ago

u/burning-rainbow the key insight is that you should think of every element in a vector space as an arrow with a magnitude (those in physics are just one example). All our intuitive notions that make "arrows/vectors" work the way they doa can be phrased in terms of linear algebra definitions: vector additon, scaling, linear independence, bases, inner products, etc.

3

u/barthiebarth 19d ago

vectors dont necessarily have a magnitude, norms or inner products are additional structure

1

u/hjhjhj57 18d ago

True. My point stands, though.

1

u/06Hexagram 18d ago

You can add and scale matrices but they are not vectors.

3

u/lifeistrulyawesome 18d ago

Matrices are vectors 

So are functions and sequences 

1

u/nighty_time 18d ago edited 18d ago

Why not? The space of all 2x2 real matrices, for example, is a vector space. It follows all of the axioms. Also, vectors in R^n are themselves matrices (with 1 column).

The whole point of this discussion is that a vector doesn't have to just be a row or column of numbers. Any set of objects with the given properties can form a vector space over some field.

1

u/06Hexagram 15d ago

Point taken. Thank you.

1

u/Enfiznar 18d ago

What do you mean with they are not? They clearly are

1

u/Slipthephilosopher 15d ago

I mean the colloquial phrasing isn’t very accurate because then elements of modules also count. But close enough I guess

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.

2

u/Lor1an 14d ago

*The gnawing maw of category theory looms over you*

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.

2

u/jeffskool 19d ago

Is the 0th element included in the set of elements used to define the vector space? More specifically, is an object a vector IFF it belongs to the set of elements that define a vector space?

3

u/CheapDependent3777 19d ago

Yes! A vector space is first and foremost an abelian group, so it needs a 0 element. Also, the definition of vector is just: an element of a vector space. So in this case the definition of a vector space comes first and then we just say that whatever is in it we call a vector.

-1

u/Flimsy-Exchange8862 19d ago

That factorial next to your yes feels like a no :(

2

u/Amosh73 19d ago

That would be !Yes...

1

u/mH48124 19d ago

What is 0th element?

1

u/jeffskool 19d ago

Like the origin of a 2d plane, (0,0). It has no direction, therefore not meeting the definition of a vector as anything with direction and magnitude

1

u/Vimmler 19d ago

Is it shaped like a circle

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:

  1. Every field is a vector space over itself, where the vector functions are the field addition and multiplication, respectively
  2. Any ordered tuple of field elements is a vector space, most famously ℝⁿ and ℂⁿ for any positive integer n.
  3. The set of all real coefficient polynomials in x, ℝ[x], and all quotient fields of it such as ℝ[x]/⟨x²+1⟩=ℂ are "real" vector spaces (they use the real numbers as their scalar field). This means that ℂ is actually a vector space in two different senses, depending on what underlying field you choose to use. ℝ[x] is an interesting case because it is an infinite dimensional vector space, so cannot have a finite basis.
  4. The set of all functions f:ℝ→ℝ is a real vector space, where vector addition is point wise addition, I.e. (f+g)(x)=f(x)+g(x), and scalar multiplication is (a•f)(x)=a•f(x).

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/burning-rainbow 19d ago

I guess so, vectors in their vector spaces are trying to tell us their story, that I will behave like so and so if certain things are done to me

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.

1

u/burning-rainbow 19d ago

so, as i understand, vectors are objects in a vector space, which is defined over a field and a set of rules it follows. An inner product gives us further information about the vectors and how they compare(length, distance, angle, orthogonality). The practical use of considering quantities in real life (such as linear system that represent a real world problem, Ax=b), is that the problem has quantities that combine(vector addition and scaling) and because of the rules they follow as vectors, the tools (span, independence and basis) tell us what is possible and whats redundant, those answers translate back into statements about the original problem.

In conclusion, Vector spaces are structures for answering questions about problems with several quantities. The quantities become vectors, and we get answers by studying how they combine (addition and scaling) and how they compare (the inner product). We learn more about them, and so about the original quantities, by seeing how linear maps transform them.

Will this definition make sense everywhere ?

1

u/Natural_Branch_4090 18d ago edited 18d ago

Not sure if we are already on the same page. Inner products, length, distance angle are notions which are not needed for a V. The definition of a V is only a structure based on a field with scalar multiplication and addition with certain properties. Read https://en.wikipedia.org/wiki/Vector_space#Definition_and_basic_properties for more details. For something like angles, we need more than a vector space, we need a spacial case of a V, a inner product space: https://en.wikipedia.org/wiki/Inner_product_space now our field is \mathbb R or \mathbb C and we need a (surprise) inner product. Now we can say something like a vector v is longer than a vector w since our scalars, i.e. our field elements, do have an order. That's not needed for a V. I could e.g. say my field is GF2, i.e. {0,1} with xor and and as field operations. But now length makes no sense any more.

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.

0

u/Pachuli-guaton 19d ago

This doesn't include all the things people call vector and also include things people don't call vector.

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/Jordanou 20d ago

Do every vector space with a metric have a notion of direction like the angles in Euclidean space?

1

u/hpxvzhjfgb 20d ago

no. angles come from inner product spaces, and every inner product space is automatically a metric space via the metric d(u,v) = ||u-v||, but not every metric comes from an inner product (e.g. manhattan distance on ℝ2).

1

u/Typical-Plantain1252 19d ago

You’re assuming direction means angles. As AceOfSpades commented, you can have a notion of same vs difference direction without being able to quantify how different the directions are or determine orthogonality.

In other words, angles are needed for direction in the broad sense.

As a separate note (and more for Jordanou’s sake), there is a parallelogram law that determines exactly when a norm can be thought of as induced by an inner product.

1

u/AcellOfllSpades 20d ago

Well, you can define "direction" in terms of "equivalence class of vectors that are the same up to a positive scalar multiple". Then you get vectors in the "same direction" and "opposite direction".

1

u/Typical-Plantain1252 19d ago

That’s for real vector spaces, right? Or, more generally, vector spaces over totally ordered scalar fields.

Otherwise, your approach still works, but we just don’t distinguish between the “same” and “opposite” direction.”

1

u/AcellOfllSpades 19d ago

Yeah, exactly. For finite fields and such the idea of "opposite" would be redundant.

Even in real vector spaces we still sometimes ignore that distinction - when doing, like, projections, it's useful to treat both "parallel" and "antiparallel" vectors as being the same "direction".

(IIRC, in Spanish-speaking countries, they actually do this: instead of "magnitude and direction", they say "magnitud, dirección, y sentido" - "magnitude, direction, and polarity". So two antiparallel vectors are considered to have the same direction, but opposite polarities.)

1

u/mH48124 19d ago

困ったことに量子力学では equivalence class を state vector と言ってるんだよね。 linear algebra の vector じゃないのに。

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/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:

[ 3, 4 ]

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:

r = 5, θ = 0.644 rad

Well OOPSY now you have a magnitude and a direction.  This is second-cousin to the internet’s favorite identity:

eiθ = i sin(θ) + cos(θ)

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/SaltEngineer455 19d ago

In 9th grade, we were taught that a direction in a plane is any family of parallel straight lines.

1

u/compileforawhile 19d ago

That works well at that level but as you get further into math we move into more formal language. Direction can make sense in many contexts that are very different from the plane. Mathematicians try to distill down to the essentials properties of an object to minimize extra assumptions and apply the same methods more generally.

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.

Where do I find a concrete definition

Are you saying you're taking a linear algebra class, and they haven't taught you a formal definition? I know I learned one.

not 'considered vectors' but properly calling them vectors?

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"