The Physics and Mathematics of Electroencephalogram