What is the purpose of compensating windings?

The function of compensating winding is to neutralize the cross magnetizing effect of armature reaction. In the absence of compensating windings, the flux will be suddenly shifting backward and forward with every change in load