The working principle of a free electron laser involves accelerating a beam of electrons to relativistic speeds using a linear accelerator (linac). These electrons are then passed through an undulator, which consists of a series of alternating magnetic fields. As the electrons traverse the undulator, they experience an oscillatory motion, emitting synchrotron radiation. The emitted radiation combines coherently, resulting in a highly intense and tunable beam of light.