Automorphic Partial Differential Equations And Spectral Theory With Applications To Number Theory.