We study the optical potential effects on the extended x-ray absorption fin
e structure (EXAFS) and x-ray photoelectron diffraction (XPD) spectra. For
the valence electron optical potential we use a local density approximation
because the charge density changes fairly slowly, whereas we use a non-loc
al optical potential for the core electron part based on GW-approximation.
In the Br Kedge EXAFS spectra the present optical potential gives rise to t
he phase difference and the amplitude reduction; the agreement with the exp
erimental result is excellent. In the N-1s XPD spectra for N-2/Ni(100), the
spherical wave effects enhance the effects due to the optical potential.