Analytical and numerical solutions are two basic tools in the study of photothermal interaction problems in semiconductor medium. In this paper, we compare the analytical solutions with the numerical solutions for thermal interaction in semiconductor mediums containing spherical cavities. The governing equations are given in the domain of Laplace transforms and the eigenvalues approaches are used to obtained the analytical solution. The numerical solutions are obtained by applying the implicit finite difference method (IFDM). A comparison between the numerical solutions and analytical solution are presented. It is found that the implicit finite difference method (IFDM) is applicable, simple and efficient for such problems.