Applications of wavelets to quantum mechanics: A pedagogical example