Let $U_1,U_2\subseteq\Bbb R^n$ be two invariant subspaces w.r.t. some group $\Gamma\subseteq\mathrm O(\Bbb R^n)$ of orthogonal matrices.
I wonder the following:
Question: If $U_1$ and $U_2$ are not orthogonal (i.e. there are $u_i\in U_i$ with $\langle u_1,u_2\rangle \not=0$), then every $T\in\Gamma$ restricted to $U_1\oplus U_2$ is already either $\mathrm{Id}$ or $-\mathrm{Id}$.
If this is true, what are the weakest assumptions we need? Do we need that the $U_i$ are irreducible? Does $U_1\cap U_2 = \{0\}$ sussfice, or maybe just $U_1\not\subseteq U_2$ and $U_2\not\subseteq U_1$.
Update
I received some very helpful answers and the statement as written above is definitely wrong. I still wonder whether there is a counterexample under the following restrictions:
- $\Gamma\subseteq\mathrm{O}(\Bbb R^n)$ is a finite group.
- The subspaces $U_i$ are irreducible invariant subspaces of $\Gamma$.
With the help of the provided answers, I was able to find a counterexample with a finite group acting on $\Bbb R^3$, and invariant subspaces with $U_1\cap U_2=\{0\}$.
Choose $U_1=\mathrm{span}\{e_1,e_2\}$ and $U_2=\mathrm{span}\{e_1+e_3\}$. These are obviously non-orthogonal and only intersect in $\{0\}$. Moreover, they are invariant subspaces of
$$T:=\begin{pmatrix} 1 & \phantom+0 & 0 \\ 0 & -1 & 0 \\ 0 & \phantom+0 & 1\end{pmatrix}\not\in\{\mathrm{Id},-\mathrm{Id}\}.$$
We can simply take the group $\Gamma=\{\mathrm{Id}, \,T\}$.
However, $U_1$ is not an irreducible invariant subspaces of $\Gamma$ as it contains the invariant subspaces $\mathrm{span}\{e_1\}$ and $\mathrm{span}\{e_2\}$.
Here is an example for which the $U_i$ are irreducible invariant subspaces. Let $\bar \Gamma\subseteq\mathrm{O}(\Bbb R^2)$ be some (sufficiently large) finite group of orthogonal transformations in the plane, e.g. $\bar\Gamma=D_3$. We consider the group
$$\Gamma:=\left\{ \begin{pmatrix} T & 0 \\ 0 & T\end{pmatrix} \;\middle\vert\; T\in\bar\Gamma\,\right\}\subseteq\mathrm{O}(\Bbb R^4).$$
This group has the following irreducible invariant subspaces
$$\mathrm{span}\{e_1,e_2\},\quad\mathrm{span}\{e_3,e_4\},\quad\mathrm{span}\{e_1+e_3,e_2+e_4\}.$$
While the first two are orthogonal, none of these is orthogonal to the last one.