What is the relationship between magnetism and electricity

Magnetism and electricity are closely related phenomena and are actually two aspects of the same fundamental force, known as electromagnetism. This relationship was first discovered by James Clerk Maxwell in the 19th century.

When an electric current flows through a wire, it creates a magnetic field around the wire. Similarly, when a magnetic field changes in an area, it induces an electric current in nearby conductors. This is the principle behind electromagnetic induction, which is the basis for the function of devices such as electric generators and transformers.

In essence, electricity and magnetism are interconnected and interdependent, and one can influence the other. This relationship is fundamental to the functioning of many electrical and electronic devices and is a key concept in the field of electromagnetism.