We were given the following question in chemistry class (under the topic “Atomic Structure”):
Which orbital does the following wavefunction represent? $$φ(r) = \frac{1}{81(6π)^{1/2}}\left(\frac{Z}{a}\right)^{7/2}r^2\exp\left(\frac{-Zr}{3a}\right)(3\cos^2θ - 1),$$
where $Z$ is the atomic mass, $a$ is the Bohr radius, and $r$ is the distance from the origin.
The given answer is a $3\mathrm d_{z^2}$ orbital.
This question was to be solved without having needed to plot diagrams, and the method was to apparently equate the power of $r$ to the azimuthal quantum number value and then use it to find the principal quantum number value. I felt a bit lost on how to do it here, and couldn't find this method anywhere else.
It would be great if you could help me on how to approach this question (on how we could specify that the orbital was a $3\mathrm d$ orbital and more specifically a $3\mathrm d_{z^2}$) since I feel I lack the understanding of how to relate the wavefunction and the orbitals, and would also be great if you could perhaps link any useful resources that I could refer to, to better my understanding of these concepts relating to wavefunctions.