Thanks for you reply
Now, I know that the shapes of the orbitals are governed by nodes which are the places where probability of finding an electron is zero but how can we know about the shape of these orbitals.
I know that the shape of s orbital is sphere, p orbital is dumbbell shaped and d orbital is like a doughnut but why do these orbitals have these shapes why not some other shape.