How do I find the projection of a representation onto a direct sum of irreducible representations?
For example, how do I find the projection of the three-dimensional "defining representation" of the symmetric group of order 3 ($S_3$) onto the representation $\textbf{1} \oplus \textbf{2}$, where $\textbf{1}$ and $\textbf{2}$ are the trivial representation and the two-dimensional irreducible representation of $S_3$, respectively.
I know there is the formula $P_a=\frac{n_a}{n_G}\sum_g \chi_{D^\dagger_a}(g)^* D(g)$ but it is to project a generic representation onto an irreducible representation. Can I apply it also to a direct sum representation?