On the wave equation with a potential