A previously unknown piece of music composed by Wolfgang Amadeus Mozart when he was probably in his early teens has been uncovered at a library in Germany, researchers said Thursday.