So, unlike a permanent magnet, we can control when a magnetic field is going to be produced. The strength of the magnet can also be varied by changing the amount of electrical current passing through it. This is another advantage of using electromagnets; permanent magnets have one fixed strength. When might this be beneficial?

9