Acid catalysed mechanism of mutarotation
1. Lone pair on ring O is protonated by the acid, forming a positively charged O species
2. A pair of electrons from the bond between the anomeric C and O is transferred to the O, breaking their bond and opening the ring
3. This allows for rotation - the double bonded O goes from pointing down (axial position) to pointing up (equatorial position)
4. Nucleophilic attack from the lone pair on the OH group on the carbonyl C, with electrons from the double bond going to neutralise positive charge on O, giving a closed ring
5. Hydrogen is lost from ring O to give cyclic glucose