Shape of lumps

I was solving for a shape on earth which has minimum potential energy. i used method of variation calculus.
I assumed a function f(x) and rotated it around Y axis. sorry for uploading the problem in word.