a carrot on a stick

A carrot on a stick is an old term referring to the offering of a combination of rewards and punishment to induce good behavior. Historically, a carrot on a stick refers to a cart driver dangling a carrot in front of a mule and holding a stick behind it; the mule moves towards the carrot while at the same time moving away from the stick behind it to avoid the punishment.