given that U is an orthogonal n by n matrix, and linear transformation T map from $R^n$ to $R^n$ be $T(x) = Ux$. Let W be a subspace of $R^n$ such that $T(W) \subseteq W$. Prove $T(W) = W$ and $T(W^\perp) = W^\perp$. Here is my attempt:
For the first question, I constructed an orthogonal basis U for W, and showed that $T(U)$ is orthogonal and linearly independent with dimension dim(W).
Any hint will be appreciated. Thanks in advance.
If $w\in T(W^\bot)$ then there is some $v\in W^\bot$ such that $T(v)=Uv=w$. Take any $u\in W$.
Orthogonal matrices preserve inner product, just note that $\langle a,b\rangle=b^\mathsf t a=b^\mathsf tU^{-1}Ua=b^{\mathsf t}U^{\mathsf t}Ua=(Ub)^{\mathsf t}(Ua)=\langle Ua,Ub\rangle$,
and $U^{-1}u\in W$, since
so we have that
so $w\in W^\bot$, and therefore $T(W^\bot)\subseteq W^\bot$.
You can do something similar for the other inclusion, and then you get the equality.