Studies on the variation of rotation on the surface and in depth on the sun in relation to the photospheric magnetic fields