Explain temperature variation in the stratosphere and troposphere.

In the troposphere, temperature decreases with altitude because the Earth’s surface absorbs heat from the sun and warms the lower layers of air. In contrast, in the stratosphere, temperature increases with altitude due to the presence of the ozone layer, which absorbs ultraviolet radiation and converts it into heat.