Primary production
By photosynthesis or chemosynthesis, energy is used to make complex organic molecules from simpler inorganic compounds (such as carbon dioxide (CO2) and water (H2O). The following are simplified equations of photosynthesis (top) and (one form of) chemosynthesis (bottom):