A balance of this two process must be maintained in order to attain a constant earth temperature.
<h3>Energy flow in the earth</h3>
The earth in itself is a massive ecosystem. Energy flows into the earth and out of it. The only source of energy input to the earth is the sun. Also, energy is lost from the earth via re-radiation of energy in the form of infrared rays.
However, this inflow and out flow of energy affects the temperature of the earth. A balance of this two process must be maintained in order to attain a constant earth temperature.