Text this: A mathematical analysis of thermal explosions