The radial Rayleigh quotient is
For the given trial profile, the numerator is . The denominator is
Therefore
The profile is regular at the origin and vanishes at the wall, so it belongs to the admissible trial space. This is the variational estimate for the radial Dirichlet modes of a spherical cavity.