r/explainlikeimfive • u/WhipBanDan • 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
9
u/CyberPhang 5d ago edited 5d 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.
5
u/AleksyGetTheWings 5d ago edited 5d 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:
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
2
u/theodysseytheodicy 5d 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/schoolmonky 5d 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 5d ago
an instructive exercise is to define 2x for integer x, then for real x, then for complex x