Given a Hilbert space H, we investigate the well-posedness of the Cauchy problem for the wave equation for operators with a discrete non-negative spectrum acting on H. We consider the cases when the time-dependent propagation speed is regular, Hölder, and distributional. We also consider cases when it is strictly positive (strictly hyperbolic case) and when it is non-negative (weakly hyperbolic case). When the propagation speed is a distribution, we introduce the notion of "very weak solutions" to the Cauchy problem. We show that the Cauchy problem for the wave equation with the distributional coefficient has a unique "very weak solution" in an appropriate sense, which coincides with classical or distributional solutions when the latter exist. Examples include the harmonic and anharmonic oscillators, the Landau Hamiltonian on R n , uniformly elliptic operators of different orders on domains, Hörmander's sums of squares on compact Lie groups and compact manifolds, operators on manifolds with boundary, and many others.