The Mathematics of Circulation Analysis