Answer:
A star's temperature fluctuates based on the physical processes within the star. The nuclear fusion inside a star's core produces energy, which radiates outward. As a star ages, the fuel in the core gets used up and the star cools. The core will then contract due to gravity. As a result, the temperature inside the core can increase and trigger more fusion.