Analytical study of SH wave scattering by a cylindrical cavity in the two-dimensional and approximately linear inhomogeneous medium