Answer:
The energy required by brain cells are 10 times more than the normal body cells. Ectotherms are cold-blooded animals so they need heat energy from the sun to remain active but endotherms can regulate their body temperature due to large brain.
So the increase in temperature helps in increase in the size of the brain in endothermic animals. The basal metabolic rate in large endotherm is 10 times less than the basal metabolic rate of large ectotherms which supports the large brain in endothermic animals.
The endothermic brain contains more glial cells than the ectothermic brain this is also the reason that the brain of endotherms is larger than the brains of ectotherms.