The function of the eardrum in the middle ear is to

Acarry the sound energy to the brain.
Bvibrate with the frequency of the received sound.
Ccollect the sound waves.
Damplify the received sound.