This is the First Law of Thermodynamics. It's also called the Law of Conservation of Energy.
The living parts of an ecosystem, called biotic factors, are all the organisms that live in the area. The nonliving parts, called abiotic factors, are the nonliving things in the area. All the living things together in an ecosystem form a community.
This is called Bacterial Transformation.