Explicit and approximate solutions of second-order evolution differential equations in Hilbert space