The gravitational and hydrodynamical interaction between the Large Magellanic Cloud and the Galaxy