What is the difference (or connection) between the dimension of a vector space and the dimension in terms of bases?
For instance, when we talk about the vector space $\mathbb{R}^3$, we are talking about a 3-dimensional vector space. This vector space contains vectors with three elements: $(x_1, x_2, x_3)$.
But we also know that the dimension of a vector space is equal to the number of vectors in its basis. For instance, let's say we have the basis $\{(1, 1, -2, 0, -1), (0, 1, 2, -4, 2), (0, 0, 1, 1, 0) \}$. These vectors contain 5 elements $(x_1, x_2, x_3, x_4, x_5)$, so the vector space is 5-dimensional or $\mathbb{R}^5$. But, by the definition of dimension in terms of bases, this vector space has a dimension of 3 since the basis contains 3 vectors; so the vector space should be $\mathbb{R}^3$?
I hope that I effectively conveyed my confusion. I would greatly appreciate it if people could please take the time to clarify my misunderstanding and elaborate on the differences and/or connections between these concepts.