I am struggle-bussing over this proof right now. This is what I have so far: since $ P $ is a projection, $ P^2 = P$, and the $\operatorname{dim}U = 1$, so by a property, basis $B = b \in \mathbb{R}^{m \times 1}$. Then $P = bb^T, tr(bb^T)=b^tb.$ In the span, $b_i$, isn't technically orthonormal so $b^tb$ isn't necessarily the identity matrix, correct or is it?
I'm not sure where to go from here, I feel like I need to find the way to sum over $a_{ij}$ where $i = j$ of the matrix to be able to use another property where that sum is equal to $1$.
I thought of going the route of having $P = bb^t = \|b\|^2$ due to the span of $U$ having a dim of 1 and then finding the $\operatorname{tr}(\|b\|^2)$, but I'm not really sure where to even take the next step in that one.
Any hints would be appreciated. Thanks.