For S-wave scattering, write the radial wavefunction as . In the attractive shell , the hard-core boundary condition gives
Outside the potential, choose
Continuity of the logarithmic derivative at yields
Put . The tangent addition formula gives
and solving for gives
Let . From part (iii), and . The tangent addition formula therefore gives
or, without singular coordinate tangents,
For with , smooth choice of the angular branch gives