Dogma does not change because it deals with credal unknowables. Doctrine is the product of doctors of the Church and the Magisterium is the product of papal writing. The last two have changed over time, sometimes badly (like St. Anselm's vision of God as an ogre).