Final answer:
The temperature increases in the stratosphere due to solar heating and ozone layer, while in the thermosphere, ionization by solar radiation leads to high temperatures despite low gas density.
Explanation:
The temperature in the stratosphere increases with altitude due to direct heating from the sun and the presence of ozone layer.
In the thermosphere, temperature increases with altitude as neutral atoms are ionized by solar radiation, releasing energy.
The upper layers of the thermosphere can reach very high temperatures, even surpassing 1000°C, despite the low density of gas molecules.
Learn more about Temperature variations in the atmosphere here:
https://brainly.com/question/37348611