How electromagnetic waves are produced
How electromagnetic waves are produced

Moving charges produce electromagnetic waves, which are a mix of electric and magnetic field waves.
A charged particle is the starting point for all electromagnetic waves. An electric field is created by this charged particle (which can exert a force on other nearby charged particles). The charged particle makes ripples, or oscillations, in its electric field and also produces a magnetic field (as anticipated by Maxwell’s equations) when it accelerates as part of an oscillatory motion.
A charged particle’s electric and magnetic fields are self-perpetuating once it is in motion—time-dependent changes in one field (electric or magnetic) produce the other. In an electromagnetic wave, both the electric and magnetic fields will fluctuate over time, with one causing the other to shift.
When a charged particle undergoes a change in velocity, electromagnetic waves (photons) are created. Energy is preserved via the electromagnetic wave (radiation) that is produced when a charge particle changes velocity