What is the function of the middle ear?

to transform mechanical vibrations into nerve impulses

to protect the eardrum

to transform sound waves into nerve impulses

to transform sound waves into mechanical vibrations