Suppose we have a spherical surface with a surface charge density varying as $cos(\theta)$. Apparently one can find the electric field both outside and inside such a spherical surface by superposing the fields of two slightly offset charged spheres with uniform volume charge density.

Tips regarding how one goes about doing such a thing would be greatly appreciated.