Mathematical Methods in Modern Complexity Science