Analytical Solution of Helmholtz Equation in Anisotropic and Nonhomogeneous Region