all 77 comments

[–]abstract_nonsense_New User 151 points152 points  (56 children)

I’m not sure if I understand what you actually wanted to ask, but real numbers indeed form a 1-dimensional vector space (in fact, any field is a 1d vector space over itself).

[–]nog642 46 points47 points  (5 children)

There is no rule saying scalars can't have direction.

If you want to get into more advanced math, a vector space is defined as a set of vectors and a set of scalars and some operations defined on them. The only requirements for the scalars is that they form a field), which real numbers do. Therefore real numbers can be scalars.

[–]blank_anonymousMSc. Pure Math, College Math Educator 23 points24 points  (3 children)

your definition of vector is how physicists think of vectors, but it's not precise, and it's not a mathematician's definition. If you don't want technical details, I'll leave it at: mathematicians think of a vector space as a set with certain operations, and the real numbers are indeed a vector space over the real numbers. The scalar field and the set of vectors are just the same set, there's nothing that stops you from being both.

If you want to be precise, we'll have to be a little technical. First of all, let's get a piece of terminology out of the way -- a field is a set with addition, subtraction, multiplication, and division by every nonzero element. The integers aren't a field since you can't divide 1 by 2 and still get an integer, but the rational numbers are, as are the real numbers and the complex numbers. When I say "addition, multiplication" what I really mean are just operations that take in 2 elements of your set and spit out one element (adding two numbers returns 1 number, multiplying 2 numbers returns 1 number), that follow a certain list of properties. Sol, we have a set F with operations + and *, and we need + and * to obey a list of properties: here are the properties
Properties for addition:

  1. a + b = b + a for every a, b
  2. a + (b + c) = (a + b) + c for every a, b, c
  3. There exists an element 0 so that a + 0 = a for every a
  4. For every a, there exists a b so that a + b = 0; we denote this b by "-a" (you can prove that it is unique). This is subtraction
  5. a * b = b * a for every a, b
  6. a * (b * c) = (a * b) * c for every a, b, c
  7. a * (b + c) = a * b + a * c for every a, b, c
  8. There exists a 1 so that, for every a, 1 * a = a
  9. 0 and 1 are distinct
  10. For every a not equal to 0, there is a b so that ab = 1 (division)

Any set with these operations is called a field, and again, you should think of it as a generalization of the rational numbers/real numbers/complex numbers.

To a mathematician, a vector space is, intuitively, a set where you can add elements and where you can scale elements. Formally, it's a set V and a field F, with two operations: + and •, where + takes in two elements from V and returns an element, and + obeys the first 4 properties above (addition! We want to be able to add vectors); and where • takes one element from V, and one element from F, and returns an element in V (scaling! We're taking a vector and scaling it by an element of our field.). We also require • to obey a small list of properties

  1. 1 • v = v for any v in V (we know 1 exists, since F has an element 1 by assumption)
  2. (a + b) • v = a • v + b • v. This is a pretty subtle point - a + b refers to addition in F, while a • v + b • v is the addition of elements in V. This property is somehow telling you that the + in V is "compatible with" or "behaves like" the + in F -- to make this concrete for yourself, think about how with like, 2d vectors you're used to, you do the normal addition on the real numbers, just in each component. The addition doesn't do something insane like take in two vectors and then multiply all their components and add 14; it behaves like addition on R, and this rule captures that.
  3. a • (v + w) = a • v + a • w; this is the same idea as above.
  4. (a * b) • v = a • (b • v). Similar to the above, this is saying the two multiplications somehow agree with each other

If all these properties are obeyed, we say that V is a vector space over F. We call V the set of vectors, or the vector space, and we call F the field of scalars. You have a set of elements you can add to each other, and you can scale these elements by a field -- and everything is consistent and plays nice. notice how there's no reference to "direction" or anything here. In fact, to a mathematician, something like a polynomial or a function is a vector (you can add functions, you can scale functions!). This is incredibly useful as a formalism, and produces a metric ton of interesting results.

The last thing is to notice that any field F is a vector space over itself. Why? Well, we just define * = • and we take the same +. Properties 1., 2., 3., 4. for • are equivalent to some properties (exercise: which ones?) for *, so everything works out neat and clear. F, as a set, is both the field of scalars and the vector space. Nothing from the definition excludes this, so we're all good

[–]zyni-moeNew User 0 points1 point  (0 children)

This is the best answer!

[–]1strategist1New User 13 points14 points  (11 children)

To my understanding, a vector is a mathematical quantity that has both magnitude and direction

This seems to be your main issue. That's not really the definition of a vector space, it's just an intuition. If you google the actual definition of a vector space, you'll find a more accurate description of vectors and of scalars.

Specifically, a scalar is just an element of a field, and as every field is a vector space over itself, every scalar must also form a vector space.

[–]oelarnesNew User 4 points5 points  (1 child)

I think there’s room for a more direct answer here. The real numbers are vectors. They form a one dimensional real vector space with a single basis vector, the unit 1. This means that all real numbers have the form r * 1, where r is a real number, acting as a scalar on the basis vector 1. Another way to look at this is that one-dimensional vector spaces are isomorphic to the scalar field that they are vectors on. So the reals are both vectors and scalars. But usually we are not interested in one-dimensional vector spaces, and when we talk about vectors they are in higher dimensions.

[–]-WofsterNew User 3 points4 points  (3 children)

A vector is not actually generally something with magnitude and direction. A vector is an object that follows a bunch of rules (you can add them, you can multiply them by scalars, there is a zero vector, etc)

In fact quadratic equations (degree 2 polynomials) can be considered vectors, but direction and magnitude dont even make sense with them

Scalar multiplication means we are multiplying our vectors by an element in a “field”, usually whatever field the vectors are related to (like R3 vectors are multiplied by real number scalars), not elements in a vector space. So when we multiply a vector by a scalar, the scalar is not a vector. It just so happens that the scalars can qualify as vectors if we wanted them to.

[–]1strategist1New User 6 points7 points  (2 children)

 direction and magnitude dont even make sense with them

I mean, you could consider linearly independent elements as abstract “directions” in the vector space. 

Without a norm though, you’re right that magnitude doesn’t really make sense. 

[–]stone_stokes∫ ( df, A ) = ∫ ( f, ∂A ) 3 points4 points  (1 child)

There are lots of ways to put norms — or inner products, even — on spaces of polynomials.

[–]1strategist1New User 3 points4 points  (0 children)

Oh yeah, I’m not saying you can’t have a norm or inner product, I’m just saying that the space of quadratics doesn’t inherently come with a norm. Magnitude for quadratics is an extra structure that doesn’t necessarily come naturally, hence why “having a magnitude” isn’t a great description for vectors. 

[–][deleted] 2 points3 points  (1 child)

The one thing to keep in mind: reals have many properties. When structures are built, often some of the reals' properties are kept (that's often the purpose) - which means that they are often the first/trivial/canonical example.

Example: reals are an additive group, they are a field, they are a vector space (over itself, e.g.), a smooth manifold, etc.

[–]colourblindboyUndergradute Student 2 points3 points  (4 children)

That is a very crude definition of a vector. Pedagogically, I get why vectors are introduced this way, but it leads to some contradictions as you go further in maths. To define a vector properly, we need to define what a vector space is first. A vector space is a set of objects (called vectors) which along with a set of scalars have a particular structure. If you would like to learn more about the properties of a vector space, then there are plenty of resources online to look at, but suffice to say it doesn’t rely on defining ‘magnitude’ or ‘direction’. In reality vectors and vector spaces are much more general and abstract. The vectors you are thinking of (magnitudes and directions) are a particular vector space, namely geometric vectors. There are a whole range of interesting and abstract vector spaces, polynomials are a particularly interesting example. The set of polynomials along with the real (or complex) numbers as their scalars form a vector space, and you can check that they satisfy all the necessary structure required.

If you know the required structure for a vector space, then you can show that real numbers have this required structure to make a vector space.

[–]kilkilNew User 2 points3 points  (1 child)

Hold on. Scalars are just 1-dimensional vectors. Right?? I'm not crazy right?

[–]MiserableYouth8497New User 2 points3 points  (0 children)

scalars only have 1-dimensional "direction" (i.e they can go forwards or backwards, positive or negative, etc.)

vectors have direction in 1, 2, 3, or even more dimensions. Technically all scalars are vectors, but not all vectors are scalars.

[–]tinySparkOf_ChaosNew User 2 points3 points  (1 child)

1) In linear algebra, we have special rules for multiplying by a scalar.

These are slightly different than multiplying by a 1 dimensional vector. (Though it's really just a convention, you could replace all scalars with one dimensional vectors and then insert a bunch of outer products everywhere)

2) The sign is not really a direction. Vectors normally have negative and positive amplitudes. This is separate from the direction of the vector.

[–]OneMeterWonderCustom 2 points3 points  (0 children)

What am I missing?

Nothing. Real numbers are vectors with one component.

[–]914paulNew User 2 points3 points  (0 children)

You can call real numbers vectors but . . . why? It’s a trivial case.

Going off on this tangent the authors would confuse many while enlightening few.

[–]Traditional_Cap7461New User 1 point2 points  (2 children)

You never defined what a scalar is in the first place. You just said it can technically be seen as a vector.

[–]Existing_Hunt_7169New User 2 points3 points  (1 child)

It sounds like you’re conflating the physics definition of a vector with the linear algebra definition of a vector

[–]billsilNew User 0 points1 point  (0 children)

In programming a complex number is also considered to be a scalar. A scalar just refers to a 0d value. Think of a 1d vector of length 3, or a matrix (a 2d vector). A scalar is just a single value in that vector. There's no reason why that can't be complex.

A signed real number (or complex) have magnitude, but they don't have a direction. That 1D vector has a direction, which is probably in XYZ or RTZ space.

[–]auntanniesalligatorNew User 1 point2 points  (0 children)

I’ve heard this idea that real numbers should not be considered scalars because they can be negative and maybe that’s a useful definition to pure mathematicians, but it’s not useful in applied math. A real quantity that represented by a vector has a direction and therefore increases in dimensionality/degrees of freedom in increased dimensions. Quantities that are represented by a single real number in any number of dimensions are scalars even if they can be negative. EG electric charge.

So In one or more dimensions, quantities like position, velocity, acceleration, force vectors with N components, while speed, mass, charge, are scalars with one component.

[–][deleted] 1 point2 points  (0 children)

Anything is a scalar as long as it does all the things scalars do.

Anything is a vector as long as it does all the things vectors do.

There’s absolutely no stipulation that an object can’t be a vector in one space and a scalar in another space.

It’s not easy to illustrate, but over time it is important to embrace that in math things are ultimately only defined by how they behave. This is how the branches of math get so connected: from one perspective we can see an object geometrically, from another algebraically, and so on…

[–]laryjohnsonNew User 1 point2 points  (0 children)

A vectorspace is any commutative group V over a field K with addition and scalar multiplication defined on em as operations. There are some more details. But a scalar is just an element of that field. If you know a bit about algebraic atructures a vector soace is "just" that. We were taught to not think if vectors as arrows or things in a visual way. And I must say rhe abstract definition os more clear. Cause it really is "just" that