Autotrophs synthesize their food through processes like photosynthesis, while heterotrophs rely on other organisms for their food.