A Comprehensive Analytical Treatment of Continuum Electrostatics