Hypervirial theorem and parameter differentiation: Closed formulation for harmonic oscillator integrals