Text this: Potential theory in gravity and magnetic applications