What causes the core of a collapsing cloud fragment to heat up dramatically during star formation?

Answer

Gravitational potential energy converted into thermal energy

As material falls inward due to gravity, the gravitational potential energy is converted into thermal energy, causing the core temperature to rise.

What causes the core of a collapsing cloud fragment to heat up dramatically during star formation?
astronomycompositionstargas