Let $W$ denote a subspace of a finite dimensional inner product space $V$, and let
$$\beta = \{w_1,w_2,\dots,w_r\}$$
denote an orthogonal basis for $W$. For any $v\in V$ define
$$proj_{\beta}v = \sum \limits_{j=1}^r \frac{\langle v,w_j\rangle}{\langle w_j,w_j\rangle}w_j$$
Prove that $proj_\beta v$ is independent of the choice of orthogonal basis for $W$, i.e. if $\gamma$ is any orthogonal basis for $W$ then
$$proj_\beta v = proj_\gamma v$$
Are these answers right? I don't get it
Now here I don't really see what $\gamma$ is. Am I just making: $$\gamma = \{y_1,y_2,\dots,y_r\}?$$
Let $w:=\text{proj}_\beta v$. Obviously $w\in W$, and by direct computation $\langle v-w,w_j\rangle=0$ for all $j$. Thus, $v-w$ is orthogonal to each $w_j$, and hence to every vector in $W\!$. These two conditions, $w\in W$ and $v-w\perp W$, are basis independent and it remains to show that they produce a unique vector $w$ given by the same formula in any orthogonal basis.
Let $u_1,\dots,u_r$ be another orthogonal basis of $W$, then $w=a_1u_1+\dots a_ru_r$ for some coefficients $a_j$. Taking the inner product with $u_j$ and using that $\langle u_i,u_j\rangle=0$ for $i\neq j$ we get $\langle v,u_j\rangle-a_j\langle u_j,u_j\rangle=0$. Solving for $a_j$ gives the expected formula in this new basis, and also proves uniqueness of $w$ since all $a_j$ are uniquely determined.