Many scientists such as James Clerk Maxwell , Oliver Heaviside and Heinrich Hertz unsuccessfully attempted to solve these problems by incorporating either Fresnel or Stokes ' theories into Maxwell 's new electromagnetic laws .