An analytical and numerical study of axial flow compressor instability