Question: what is the relationship between altitude and temperature in the layers of the atmosphere?
Answer: The troposphere gets its heat from the ground, and so temperature decreases with altitude. Warm air rises and cool air sinks and so the troposphere is unstable. In the stratosphere, temperature increases with altitude. The stratosphere contains the ozone layer, which protects the planet from the Sun's harmful UV.