After a caterpillar eats a leaf, it can convert the chemical energy into _____ energy to help it build a cocoon.

heat
nuclear
chemical
mechanical