This is an example of an imperative sentence. The subject is implied ("you") (You) beat the butter and sugar together and (you) add the eggs. Imperative sentences are used for giving instructions (and orders).
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.