Solution of dirac equation and its application to scattering problems and the multiple production of photons in quantum electrodynamics and meson theory