Here is a simple question which I can't figure out.
I know that a projection is a linear mapping, so it has a matrix representation. What I am interested is finding the matrix which represents:
$$\pi_d : \mathbb{R}^{d+1} \rightarrow \mathbb{R}^d$$
which maps $\mathbb{R}^{d+1}$ onto the hyperplane $H=\{x \in \mathbb{R}^d : \langle x, \mathbf{1} \rangle = 1\}$, where $\mathbf{1}$ is the all-ones vector.
I can easily compute the position of a given vector projection; for example, considering $\pi_1$:
$$\begin{bmatrix} 1 \\ 0 \end{bmatrix} \mapsto \begin{bmatrix} 1/2 \\ -1/2 \end{bmatrix}$$
but I am unsure on how to get this explicitly as a $1$-dimensional vector.
If you could provide a hint rather than a full answer, I would be appreciative!