A method has been developed for the solution of the resistivity and IP modeling problem for one or more two-dimensional inhomogeneities buried in a space for which the Dirichlet Green's function is known. The boundary-value problem reduces to a Fredholm integral equation of the second kind which is parametrically a function of a spatial wavenumber. Using the method of moments, the integral equation is solved for a number of values of the wavenumber. An inverse Fourier transform is then performed in order to obtain the electric potential at any point of interest. The method agrees well with both experimental results and other numerical techniques.