How the greenhouse effect works
1. The sun provides us with UV radiation, which enters the atmosphere and reaches earth
2. The earth absorbs the UV and remits it as infrared, which has a longer wavelength
3. The stratosphere contains CO2, water vapour, and methane, and others
4. When the infrared reaches the part of the stratosphere where the greenhouse gases are, they will absorb the infrared, raising the energy of the gases and causing the bonds to vibrate
5. Eventually the molecules will relax back down into a lower energy state and the energy is re-emitted in all directions, some passing out through the atmosphere, and lots is re-emitted back down to earth
6. It is these infrared rays that warm up the atmosphere