The relation between the energy of star and heating effect Because a star's temperature is an indication of the energy passing through each unit of its surface, it follows that for cool red and hot blue stars of identical luminosities, the cooler red star must be considerably smaller so that the energy escapes through a reduced surface area and has a far greater heating effect. Hence, knowledge of a star's colour and luminosity can reveal its size.

In particular, I can't understand the relation between energy and the heating effect. Of course, I searched for the word "the heating effect" in my own language. Also, I Googled in English. 

In this context, what is the heating effect? Could you explain to me? If you give me any help, it will be very useful to me.
I'm not sure what you mean by "heating effect". The amount another body is heated by a star with luminosity $L$ is quantified by its effective temperature:
$$T_{eff}=\left(\frac{L(1-a)}{16\pi\sigma D^2}\right)^{1/4}$$
where $a$ is the albedo, $D$ is the distance to the other body, and $\sigma$ is the Stefan-Boltzmann constant. If the luminosity is given, then there is no direct dependence on the size of the star.

The only thing that matters is the luminosity. You stated yourself that the luminosities are the same, which means that the red star in question is likely a red supergiant - a member of a group containing many of the largest stars in the universe.

Why, mathematically, is this the case? Well, stellar models can tell us that this is the case, but we can also figure this out via the Stefan-Boltzmann law by assuming that the stars are black bodies. For an object of radius $R$ and temperature $T$, the luminosity is approximately
$$L=4\pi\sigma R^2T^4$$
If star 1 is a blue supergiant and star 2 is a red supergiant, then, setting the luminosities equal, we have
$$L_1=L_2\to R_1^2T_1^4=R_2^2T_2^4$$
We know that $T_2$ is much less than $T_1$ - possibly by an order of magnitude - so $R_2$ must be much larger for the luminosities to be the same. This matches what we observe and what models predict.