Question: what is the relationship between temperature and altitude in the thermosphere?
Answer: When the Sun is very active and emitting more high energy radiation, the thermosphere gets hotter and expands or "puffs up". Because of this, the height of the top of the thermosphere (the thermopause) varies. The thermopause is found at an altitude between 500 km and 1,000 km or higher.