Let $A$ and $B$ be $n\times m$ matrices of full column rank such that $\mathrm{Range}(A)\cap\mathrm{Range}(B)^{\perp} = \{0\}$. Show that the projection on $\mathrm{Range}(A)$ along $\mathrm{Range}(B)^{\perp}$ in $\mathbb R^n$ is given by $P = A(B'A)^{-1}B'$ where $B'$ is $B$ transpose.
Can you tell me how to show this??