I am looking at Modigliani & Miller Proposition II with corporate taxes. According to Hillier et al. "Fundamentals of Corporate Finance" (3rd ed., 2017) (here is a link to a slightly different edition),
M&M Proposition II with corporate taxes states that the cost of equity is $$ R_E=R_U+(R_U-R_D)\cdot \frac{D}{E}\cdot (1-T_C) \tag{15.4} $$
where $R_E$ is the cost of equity, $R_U$ is the cost of capital a firm would have if it had no debt (unlevered cost of capital), $R_D$ is the cost of debt, $D$ is debt, $E$ is equity and $T_C$ is the corporate tax rate.
How is this equation derived? It is intuitive to me that $-R_D\cdot\frac{D}{E}$ is multiplied with $1-T_C$ but not that $R_U\cdot\frac{D}{E}$ is multiplied with the same thing. Or actually, the presence and nature of $R_U$ is probably what is confusing me.