Vaibhav Sahu said:
I'm not quite sure about it. But if the ray strikes the surface at some point x = a, shouldn't the refractive index to be considered be the value μ = f(a) while applying Snell's law, if it is applicable.
Ok, but if you do this you cannot use the initial (when the beam enters the material) and final (when the beam exit the material) values of the angles (*), you have to use the (variable) angles at every point of it; then Snell's law should (maybe :-) ) written as: ##n(\theta) sin(\theta) = n(\theta+d\theta) sin(\theta+d\theta)##.
(*) Edit: actually it seems possible.
##n(\theta) sin(\theta) = n(\theta+d\theta) sin(\theta+d\theta)##
means, developing at first order ##n(\theta+d\theta), sin(\theta+d\theta)##, making the product and neglecting the second order differential:
##n(\theta) sin(\theta) = n(\theta) sin(\theta) + [n'(\theta) sin(\theta) + n(\theta) cos(\theta)]d\theta##
where ##n'(\theta) = dn(\theta)/d\theta##
and simplifying:
##n'(\theta) sin(\theta) + n(\theta) cos(\theta) = 0##
Solving the differential equation:
##n(\theta) sin(\theta) = n(\theta_0) sin(\theta_0)##
which is really amazing, at least for me!
--
lightarrow