My textbook says the following:
Consider a set of basis vector $\mathbf{e}_i$, $i = 1, \dots, 3$ for a 2-dimensional projective space $\mathbb{P}^2$. For reasons to become clear, we will write the indices as subscripts. With respect to this basis, a point in $\mathbb{P}^2$ is represented by a set of coordinates $x^i$, which represents the point $\sum_{i = 1}^3 \mathbf{e}_i$. We write the coordinates with an upper index, as shown. Let $\mathrm{\mathbf{x}}$ represent the triple of coordinates, $\mathrm{\mathbf{x}} = (x^1, x^2, x^3)^T$.
My understanding from linear algebra is that a basis is a linearly independent spanning set. We then define the dimension of a vector space to be equal to the number of vectors in a basis for said vector space. Therefore, a vector space can have multiple different bases, but each basis must contain the same number of vectors, since this defines the dimension of the vector space.
So how is it that in the above excerpt the author says that the 2-dimensional projective space $\mathbb{P}^2$ has the basis with three vectors $\mathbf{e}_i$, $i = 1, \dots, 3$? Shouldn't the basis consist of only 2 vectors, since this is a 2-dimensional vector space?
I would greatly appreciate it if people could please take the time to clarify this.
Projective space is not a vector space, so the linear algebraic notions of dimension and basis do not apply in this case. However, one calls it two-dimensional because it is when we consider alternative notions of dimension, e.g. when we look at $\mathbb P^2$ over $\mathbb R$ then this will be a two-dimensional manifold, or over an arbitrary field we can still formulate an algebro-geometric notion of dimension.
Intuitively it should not be a surprise that $\mathbb P^2$ is two-dimensional: Although you use three coordinates to describe a point, these are not independent from each other: Any point $x=(x_0:x_1:x_2)$ has a non-zero entry, say $x_0\neq 0$. Then dividing by $x_0$ gives an alternative representation of the same point $x=(1:x_1/x_0:x_2/x_0)$, so in fact "locally" you only need two numbers to describe a point, i.e. you only have two degrees of freedom.