I am going through Hamilton's book Mathematical Gauge Theory, in which he says
If the representation $\rho$ of $G$ is irreducible, it may happen that the representation $\rho|_H$ of $H$ is reducible and decomposes as a direct sum. The actual form of the decomposition of a representation $\rho$ under restriction to a subgroup $H \subset G$ is called the branching rule.
I do not fully understand this definition and would like to see an example of a branching rule through the following exercise from his book. Let $V = \mathbb{C}^{2n}$ be the complex fundamental representation of $SO(2n)$, he asks the reader to determine the branching rule of the representation $V$ under restriction to the subgroup $U(n) \subset SO(2n)$.
Does finding the branching rule mean we determine how the representation decomposes into a direct sum when restricted to $U(n)$? If so, how would one do this?