Wavelengths of different colours of light of white light are different. Now from Cauchy’s formula we know. that µ = A+ B/λ2+………. refractive index of a medium will be also different for different colours of light of white light. From formula δm = (µ -1) A deviation of different light rays will be different so they disperse.