Binaural beats are the playing of two sine waves of close, but not the same, frequency into different earpieces of a set of headphones. The "beat" is heard as the brain tries to process them as a distinct sound, while taking into account the constructive/destructive interference. It is said to migrate brain waves to be closer to that frequency, like a sort of biological resonance, which is true. Of course the same can be said for listening to relaxing music help you relax, up tempo music to help you feel energetic, etc...
In addition to its calming physical effects, the relaxation response also increases energy and focus, combats illness, relieves aches and pains, heightens problem-solving abilities, and boosts motivation and productivity. Best of all, anyone can reap these benefits with regular practice. And while you may choose to pay for a professional massage or acupuncture session, for example, most relaxation techniques can be done on your own or with the aid of free audio downloads or inexpensive smartphone apps.

When signals of two different frequencies are presented, one to each ear, the brain detects phase differences between these signals. "Under natural circumstances a detected phase difference would provide directional information. The brain processes this anomalous information differently when these phase differences are heard with stereo headphones or speakers. A perceptual integration of the two signals takes place, producing the sensation of a third "beat" frequency. The difference between the signals waxes and wanes as the two different input frequencies mesh in and out of phase. As a result of these constantly increasing and decreasing differences, an amplitude-modulated standing wave -the binaural beat- is heard. The binaural beat is perceived as a fluctuating rhythm at the frequency of the difference between the two auditory inputs. Evidence suggests that the binaural beats are generated in the brainstem's superior olivary nucleus, the first site of contra-lateral integration in the auditory system (Oster, 1973). Studies also suggest that the frequency-following response originates from the inferior colliculus (Smith, Marsh, & Brown, 1975)" (Owens & Atwater, 1995). This activity is conducted to the cortex where it can be recorded by scalp electrodes.  
Sleep and stress tend to cause a vicious cycle – if you’re stressed, then you can’t sleep, which makes you ill-prepared to handle the stressors of the next day, leading to more stress. To relieve stress before bed, try some relaxation techniques (see below) and disconnect from technology as much as possible an hour before bedtime. To ensure the proper amount of rest (7-8 hours is recommended), set an alarm reminding you to go to bed.
Entrainment is a term originally derived from complex systems theory, and denotes the way that two or more independent, autonomous oscillators with differing rhythms or frequencies, when situated in a context and at a proximity where they can interact for long enough, influence each other mutually, to a degree dependent on coupling force, such that they adjust until both oscillate with the same frequency. Examples include the mechanical entrainment or cyclic synchronization of two electric clothes dryers placed in close proximity, and the biological entrainment evident in the synchronized illumination of fireflies.[13]