Explain the principles of a transformer.

Explain the principles of a transformer.