The brain generates rhythmically potentials which originate in the individual neurons of the brain. These potentials get summated as millions…