A transformer is a device that uses the principle of electromagnetic induction to change alternating current (AC) voltage. Its main components are a primary coil, a secondary coil, and an iron core (magnetic core).
In electrical equipment and wireless circuits, transformers are commonly used for voltage step-up/step-down, impedance matching, and safety isolation. In generators, whether a coil moves through a magnetic field or a magnetic field moves through a stationary coil, an electromotive force (EMF) is induced in the coil.
In both cases, the value of the magnetic flux remains constant, but the number of magnetic fluxes linked to the coil changes; this is the principle of mutual induction. A transformer is a device that uses electromagnetic mutual induction to transform voltage, current, and impedance.

