Magnetism is a fundamental force in nature that is manifested by the attraction or repulsion of objects with magnetic properties. It is a result of the motion of electric charges, such as the flow of electrons in a wire or the movement of electrons within atoms.
Some materials, such as iron, nickel, and cobalt, are naturally magnetic. These materials are called ferromagnetic and can be magnetized to become permanent magnets. Other materials, such as aluminum and copper, are not naturally magnetic but can be influenced by a magnetic field.
A magnetic field is the region around a magnet where its influence can be detected. It exerts a force on other magnets and magnetic materials. The direction of the magnetic field is conventionally indicated by magnetic field lines that form closed loops from the north pole to the south pole of the magnet.
All magnets have two poles: a north pole and a south pole. Like poles repel each other, and opposite poles attract each other. The Earth itself acts as a giant magnet, with its north magnetic pole located near the geographic north pole.
Magnetic induction occurs when a material becomes magnetized in the presence of a magnetic field. This can happen when a magnetic material is brought near a magnet, causing its domains to align and become temporarily magnetized.
When electric current flows through a wire, a magnetic field is produced around the wire. This is the principle behind electromagnets, which are temporary magnets formed by wrapping a wire around a core material and passing an electric current through the wire.
Magnetism has numerous practical applications, including in electric motors, generators, magnetic resonance imaging (MRI) machines, magnetic compasses, and magnetic storage devices such as hard drives and credit cards.