In space where $$x>0$$, a medium is filled whose refractive index varies with x coordinate. A ray enters this medium at the origin at $$45$$ and after refraction follows the path $$x=2\sin { y } $$. Find
(a) $$\mu $$ of medium as function of x
(b) initial angle of refraction