History of Earth the third atmosphere, rich in oxygen, emerged when bacteria began to produce oxygen about 2.8 Ga. In early models for the formation of the atmosphere and ocean, the second atmosphere was formed by outgassing of volatiles from the Earth's interior. Now it is considered likely that many of the volatiles were delivered during accretion by a process known as "impact degassing" in which incoming bodies vaporize on impact. The ocean and atmosphere would, therefore, have started to form even as the Earth formed. The new atmosphere probably contained water vapor, carbon dioxide, nitrogen, and smaller amounts of other gases. Planetesimals
Atmosphere of Earth trend begin above 11 km, where the temperature stabilizes through a large vertical distance through the rest of the troposphere. In the stratosphere, starting above about 20 km, the temperature increases with height, due to heating within the ozone layer caused by capture of significant ultraviolet radiation from the Sun by the dioxygen and ozone gas in this region. Still another region of increasing temperature with altitude occurs at very high altitudes, in the aptly-named thermosphere above 90 km. Because in an ideal gas of constant composition the speed of sound depends only on temperature and not on the gas