I was reading here the paragraph about electromagnets.
It is written that:
"Electromagnets are usually in the form of iron core solenoids. The ferromagnetic property of the iron core causes the internal magnetic domains of the iron to line up with the smaller driving magnetic field produced by the current in the solenoid. The effect is the multiplication of the magnetic field by factors of tens to even thousands."
So, if I have understood it correctly, the amplification of the magnetic field (with respect to a "normal" solenoid) is due to the very high magnetic permeability of the iron core. But I have a question about this: it seems to me that it is a free way to increase the magnetic field, i.e. I provide the same current, but I get the same magnetic field simply because of the presence of the iron core.
It seems strange to me, because if I can get a higher magnetic field with the same input current, I am saying that I can get higher magnetic energy $(1/2) BH$ with simply putting iron inside the solenoid. Where does this energy amount (absent in case of an ordinary solenoid) come from? How do we see that the energy conservation principle is respected?