We model electromagnetic cloaking of a spherical or cylindrical nanoparticle enclosed by an optically anisotropic and optically inhomogeneous symmetric shell, by examining its electric response in a quasi-static uniform electric field. When the components of the shell permittivity are radially anisotropic and power-law dependent (ε~r(m)) whereris distance to the shell center, and m a positive or negative exponent which can be varied), the problem is analytically tractable. Formulas are calculated for the degree of cloaking in the general case, allowing the determination of a dielectric condition for the shells to be used as an invisibility cloak. Ideal cloaking is known to require that homogeneous shells exhibit an infinite ratio of tangential and radial components of the shell permittivity, but for radially inhomogeneous shells ideal cloaking can occur even for finite values of this ratio.