To function, ecosystems require an input of energy. Where does this energy come from?