Based on the dual variational principle and Hamilton canonical equations for electromagnetic waveguide,problems of singular electromagnetic fields are analyzed in Hamilton system.A singular analytically element is derived by using variable separation method and adjoint sysmplectic eigenfunctions expansion technique.The singular element can deal with the singularity in conducting and dielectric wedges in electromagnetic waveguides.It is easy to be implemented into dual electromagnetic element code.It is flexible,efficient and precise.