Consider vector space $\mathbb{F}$ all funcitions with domain and range $\mathbb{R}$
Now, consider the subset of functions, $$f_{k}(x)= 1; x=k$$ $$=0; x\neq k$$
One such function is defined for each real $k$, so there are an infinite number of these functions. Clearly, all these functions (one for each $k$) cannot be linearly combined to give a net $0$ result. That means an infinite number of elements of $\mathbb{F}$ can be linearly independent. So, the dimensionality of $\mathbb{F}$ is infinity.
Clearly, any other function $g(x)$ in $\mathbb{F}$ can be represented as a linear combination of the $f_{k}(x)$ functions, with the component of $g(x)$ in $f_k(x)$ being $g(k)$. So, am I right in saying that this subset of $f_{k}(x)$ functions is a basis for the vector space of functions, kind of like the $i, j, k$ unit vectors for arrows?
If yes, then, how do we find the other non-obvious basis for functions? I mean it was obvious that all $f_{k}(x)$ are linearly independent. If any infinite set of functions is given, how do we find out that they are linearly independent? And if they are linearly independent, then how do we calculate the components of any other function in $\mathbb{F}$ in that basis?
Once we go to infinity, things get more complicated.
A basis is traditionally defined as a finite linear combination of elements (a Hamel basis). Countable linear combinations of elements are defined in terms of a Schrauder basis.
Think about some function $f:\mathbb{R}\to\mathbb{R}$. Say we know it's value on each real number $r\in\mathbb{R}$. Then, we can try to write it in terms of your basis: $$f(x) = \sum_{r\in\mathbb{R}}f_k(x)f(r)$$ Oops --- this is where we have an issue. You've probably seen in the past that: $$\sum_{n = 1}^\infty f(n) = \lim_{n\to\infty}\sum_{i = 1}^nf(i)$$ What do we do when the left sum is $\sum_{r\in\mathbb{R}}$? One thing we can't do is write the sum in some particular order. By this, I mean it can't be written as: $$f(r_1)+f(r_2)+\dots$$ As this implies that we can enumerate all the $r\in\mathbb{R}$, so $|\mathbb{R}| = |\mathbb{N}|$, which is false.
There are certain things we can do to try to fix this, but the general technique I've seen has been to stick with Schrauder/Hamel basis.