Mathematics of Neural Network