solve the wave equation subject to the given conditions