That isn't the wave equation, that's the Laplace equation in two dimensions.
Your expression for Y is a solution if it is compatible with the boundary conditions. Boundary conditions must be specified for it to be a well-posed problem with a unique solution.
Torquil