Living systems also follow the law of conservation of energy. Energy changes form as it flows through an ecosystem, but the total amount of energy in the system remains constant. Food chains show how energy flows in an ecosystem. ... Thus producers convert light energy from the Sun to the chemical energy in carbohydrates.