A food chain is a sequence of organisms where each member feeds on the previous one, transferring energy. A food web shows the complex feeding relationships in an ecosystem. Energy flows from producers to primary, secondary, and tertiary consumers in trophic levels. Light provides initial energy for most communities. Energy is lost at each trophic level and transformations are never 100% efficient, usually being 10-20%. A pyramid of energy shows the decrease in available energy from lower to higher trophic levels. While energy enters ecosystems through light and leaves as heat, nutrients like carbon, nitrogen, and phosphorus must be recycled through decomposition.