Two-point boundary value problem for a partial differential equation in spaces of periodic functions