An autotroph or primary producer is an organism that produces complex organic compounds using carbon from simple substances such as carbon dioxide, generally using energy from light or inorganic chemical reactions.
A heterotroph is an organism that eats other plants or animals for energy and nutrients. The term stems from the Greek words hetero for “other” and trophe for “nourishment.”