Applications of complex dynamics and potential theory