Can someone create an example using these notes:
Let $\rho : G \rightarrow GL(V)$ be a linear representation of $G$. We define below a direct sum decomposition of $V$ which is ''weaker'' than the decomposition into irreducible representations since the latter has the advantage of being unique. Consider the following:
Definition
Let $\chi_i$ be the distinct characters of the irreducible representations $W_i$ of $G$ and $n_i$ be their degrees. Let $V=U_1 \oplus \cdots \oplus U_m$ be a decomposition of $V$ into a direct sum of irreducible representations. Let $V_i$ for $i=1, \cdots, h$ be the direct sum of those the $U_1, \cdots, U_m$ which are isomorphic to $W_i$. So $$ V=V_1 \oplus \cdots \oplus V_h $$ This is the canonical decomposition.
That is, we have decomposed $V$ into a direct sum of irreducible representations and ``collected together'' the isomorphic representations with the following properties
Theorem
(i) The decomposition $V=V_1 \oplus \cdots \oplus V_h$ does not depend on the initially chosen decomposition of $V$ into irreducible representations.
(ii) The projection $P_i$ of $V$ onto $V_i$ associated with this decomposition is $$ P_i = \frac{n_i}{\,|G|}\sum_{t\in G} \chi_i(t)^* \rho_t $$
Proof
We shall prove claim $(ii)$ since this will prove $(i)$ as the projections $P_i$ dictate the $V_i$. Let $$ q_i = \frac{n_i}{\,|G|} \sum_{t\in G} \chi_i(t)^*\rho_t $$
Proposition 2.5.1* tells us that the restriction of $q_i$ to an irreducible representation $W$ with character $\chi$ and of degree $n$ is a multiple in the ratio $\frac{n_i}{n}(\chi_i|\chi)$, hence it is $1$ if $\chi = \chi_i$ and $0$ if $\chi \neq \chi_i$ namely $q_i$ is the identity on an irreducible representation isomorphic to $W_i$ and is zero on the others. From the definition of $V_i$, it follows that $q_i$ is the identity on $V_i$ and is zero on $V_k$ for $k\neq i$. Now if we decompose an element $v \in V$ into its components $v_i \in V_i$ we have $$ v= v_1 + \cdots+ v_h $$ so $q_i(v) = q_i(v_1) + \cdots + q_i(v_h) = v_i$. This means $q_i$ is equal to the projection $p_i$ of $V$ onto $V_i$.
We see that the decomposition of a representation can be done via two phases. Initially by deducing the canonical decomposition $V_1 \oplus \cdots \oplus V_n$ using the formulas for $p_i$. Next we decompose $V_i$ into a direct sum of irreducible representations each isomorphic to $W_i$ $$ V_i = W_i \oplus \cdots \oplus W_i $$
*Proposition 2.5.1 Let $f$ be a class function on $G$. Let $\rho: G\rightarrow GL(V)$ be an irreducible representation of $G$. Then $\hat{f}(\rho)=\lambda I$ with $$ \lambda = \frac{1}{n} \sum f(t)\chi_\rho (t) = \frac{\,|G|}{n}(f|\chi_\rho^*) $$