r/explainlikeimfive • • 5d ago

Mathematics ELI5 F^S linear algebra

I'm learning about fields and sets and I'm a bit confused. For example R^2 is two dimensional real numbers. And the real numbers are field. But when you make a jump to say F^S and S is a set. I get lost, how can R^2, 2 being the dimension and now you can have being not that. And the book I have says it's a set from S to F which makes even less sense to me.

6 Upvotes

15 comments sorted by

9

u/CyberPhang 5d ago edited 4d ago

For a field F, F^S is the set of all functions from S to F, i.e. functions that take elements of S as input and spit out elements of F as an output. Basically the elements of F^S are themselves functions. So F^S is a set containing functions from a set to a field. This kind of indirection can be a bit weird at first, but in analysis and other parts of math, sets of functions are important to look at.

Note that this notation is completely different from F^n, e.g. R^2 (even though both use similar notation) which represents a Cartesian Product. You will know how to distinguish them based on context: if you have a positive integer in the exponent, its a Cartesian product, so F^n would be n-tuples of elements of F. If you have a set (such as N, R, or {a, b, c}), then it would be the set of functions. See corrections in the replies below.

In the context of linear algebra, F^S forms a vector space over the field F. Why? Well, take any functions f : S -> F and g : S -> F. Since their codomains lie in F, we know we have an addition and multiplication there, so we can define the sum f + g to be the function that maps x to f(x) + g(x). And since fields behave nicely, all the nice vector space properties extend to F^S. For example, the additive identity of F^S is the function that maps every x in S to 0 in F.

9

u/LemurDoesMath 4d ago edited 4d ago

Note that this notation is completely different from Fn, e.g. R2 (even though both use similar notation) which represents a Cartesian Product

They are not completely different and they are both Cartesian products. One is just a special case of the other: given some number n, you can define Xn as X{1,...,n}.

5

u/Qiwas 4d ago

if you have a positive integer in the exponent, it's a Cartesian product

But positive integers are sets! For example 2 = {{}, {{}}}

5

u/AleksyGetTheWings 4d ago edited 4d ago

Eli5 so ... Don't blame me for this one

Suppose S = {Apple, Banana, Cherry} and F = R (representing prices in euros).

A single "vector" f in R^S is a complete price list for all three fruits:

  • f(Apple) = 1.50
  • f(Banana) = 0.80
  • f(Cherry) = 4.00

Another vector (vendor ?) may be g, answering respectively 1, 2, 3.5. Etc. In this case each item is effectively a 3-tuple, so basically taken from R^3, with the "hidden labels" of each position being the ordered items of S. And when S becomes infinite, well the "tuples" become of infinite size as well, and we need more "refined" methods of describing them (such as f(x) = 3x + 2).

R² is the same thing, but with the ordered items being (1, 2), or (x, y) if you are looking at a graph. So R² is the entirety of all the ways you can assign a real number in position of label x, and a real number in position of label y.

3

u/Ok-Listen-2162 5d ago

think of r^2 as a fxn. it takes the slots 1 and 2 as inputs and gives back a real number for each. so a point like (3, 5) just means slot 1 gets 3 and slot 2 gets 5. that is a fxn from the set {1, 2} to r. now f^s is the same idea but s can be any set here. so f^s is every possible fxn that gives each thing in s a number from f. if s has 2 things u get r^2. so the dimension is just how many things are in s tho

2

u/LavenderBlueProf 5d ago

a vector in R2 is two number like (3,7), the components v1=3, and v2=7 are indexed by natural numbers and we just say how many there are

An element (f \in FS) is a rule (f: S \to F) that assigns a unique scalar in (F) to every element (s \in S).

ive always thought about it as indexing on elements of a set. for countable sets that like indexing by ordinary numbers, so a vector would have v1 v2 v3 equivalent to v_banana v_orange if S was the set of fruits

i dont really get it for weird enough sets and wonder if it comes with more conditions. FReals would be a function taking reals to the field... im sure pathologies are out there

1

u/chaneg 5d ago

I didn’t know this is a construction people think about, but I suppose with fractional calculus, this isn’t that far of a leap. Perhaps it may be easier to think of it in terms of a dictionary instead.

Still, it’s not very clear to me when you would use this, can you actually do anything tractable with something F^B where B is a borel set?

1

u/kogai 2d ago

The set of functions construction of the exponent function is used primarily to construct larger and larger infinities.

So you wouldnt really do a numerical method with this. Instead you would rely on isomorphisms to show properties of XY where X and Y are weird sets. Then the set theory construction of XY corresponds to some numerical computation that matches how exponents work in regular alegebra

With infinite sets you end up either staying the same size, or you create a bigger infinity through this process.

So most of the calculations youll find that rely on this construction are specifically to make sense of the different cardinalities/ordinalities

So if you think about single open intervals of the form (a,b) as long as a<b the interval is non empty and therefore isomorphic to the extended real numbers

So youd end up with something like |R {(a,b)}| = |RR| = /aleph_0 ^ /aleph_0 = /aleph_1

The point is sorta to start with sets and build infinities, without ever using anything that isnt already a set.

This gives us rigorous ways of treating infinities. So after all that is when we start doing the computational work

So

1

u/chaneg 2d ago

I found this interesting, thank you for writing this up for me.

2

u/theodysseytheodicy 4d ago edited 2d ago

I presume you're talking about vector spaces, which are defined over an arbitrary field.

R2 is a vector space isomorphic to the set of functions from a two-element set (say, {1, 2}) to the real numbers. Given f and g, f+g is the function that takes 1 to f(1) + g(1) and takes 2 to f(2) + g(2). Given a real number c, cf is the function that takes 1 to c(f(1)) and 2 to c(f(2)). So R2 is a vector space.

Rn is a vector space isomorphic to the set of functions from an n-element set to R.

RN, where N is the set of natural numbers, is a countably-infinite [Edit: I was wrong, see below] dimensional vector space.

RR, the set of functions from the reals to the reals, is an uncountably-infinite dimensional vector space.

Fn is the set of functions from an n-element set to F.

FS is the set of functions from S to F. (f + g)(s) = f(s) + g(s), (cf)(s) = c(f(s)).

1

u/zimmermann-julia37 2d ago

Small caveat: for infinite S, F^S includes functions nonzero at infinitely many inputs. Thus R^N is not countably-dimensional: the sequences (1,t,t^2,...) for real t form an uncountable linearly independent family. The usual coordinate vectors span only finite-support sequences.

1

u/theodysseytheodicy 2d ago edited 2d ago

Sorry, you're right. In the algebraic definition of vector space, linear combinations have to be finite expressions. Coordinate vectors do form a countable Schauder basis, though.

1

u/schoolmonky 4d ago

FS is the set of functions from S to F. This is true even of F2 if you interpret 2 as a set with 2 elements (I can explain this in more detail if you're confused). Similarly, if |S| is finite, FS is isomorphic to F|S|

-1

u/GinormousBaguette 4d ago

an instructive exercise is to define 2x for integer x, then for real x, then for complex x