A second order differential equation for the relativistic description of electrons and photons