An electromagnet is a type of magnet in which the magnetic field is produced by an electric current. When electric current flows through a wire, it creates a magnetic field around the wire. This magnetic field can be intensified by coiling the wire around a core material such as iron.
When an electric current flows through a wire, it creates a magnetic field around the wire according to the right-hand rule. This magnetic field can be strengthened by coiling the wire around a core material, such as iron, to create an electromagnet. The strength of the magnetic field can be controlled by adjusting the amount of current flowing through the wire.
Electromagnets are used in a wide range of applications, including electric motors, generators, magnetic resonance imaging (MRI) machines, and magnetic separation processes.