the short answer
In anatomy, a synergist is a muscle that works with the prime mover (the agonist) to produce or assist a movement, either by adding force to the same action or by stabilizing a joint so the main muscle can work efficiently. The word comes from the Greek for "working together". On a biceps curl the biceps is the agonist, while the brachialis and brachioradialis act as synergists. Compound lifts call on several at once.
This article is general training education, not medical advice. Anatomy varies from person to person, so treat the examples below as the common pattern rather than a fixed rule.