Mathematics of Complex Social Phenomena