Let $x$ and $y$ be two arbitrary non-zero vectors in $\mathbb{R}^d$
Show that for any $z\in\mathbb{R}^d$, it holds that
$$ z^Tx = \overline{z}^T x $$
where $\overline{z}$ is the projection of $z$ onto the plane spanned by $x$ and $y$.
Here's my current incomplete version of the proof.
Let $A$ be a matrix with $x$ and $y$ as columns. Then the projection of $z$ onto the $span\{x,y\}$ is just the projection of $z$ onto the column space of $A$. We know that this can be obtained through the least squares solution:
$\operatorname{Proj}_{\operatorname{span}\{x,y\}}(z)=(A^TA)^{-1}A^Tz$
Hence, we have
$$ \operatorname{Proj}_{\operatorname{span}\{x,y\}}(z)^T x = ((A^TA)^{-1}A^Tz)^Tx = z^TA(A^TA)^{-1}x $$
Now, if $x$ is the first column in $A$, we may just rewrite $x=Ae_1$ where $e_1$ is the first unit vector. So
$$ \operatorname{Proj}_{\operatorname{span}\{x,y\}}(z)^T x = z^TA(A^TA)^{-1}Ae_1 = z^TA(A^TA)^{-1}Ae_1 $$ Now I don't know how to continue from here.
It suffices to prove that $(z-\bar{z})^T x = 0$. In this case, $e = z-\bar{z}$ is the error vector, which is perpendicular to $span<x,y>$. Hence, the dot product is zero.