When an animal eats food to keep warm, the body undergoes a transformation from chemical energy to thermal energy. The food is broken down into glucose, a type of sugar the body can use for energy. As glucose is metabolized, it releases chemical energy, which the body then converts into heat to maintain a stable internal temperature.