Question: what is the difference between dr robotnik and eggman?
Answer: "Robotnik" is the character's real name while "Eggman" is a "common name taken after his shape." In various iterations of the franchise, they've chosen different names for him, with Robotnik being more of the English name, and Eggman the Japanese.