I have the following PDE:

where a is constant

with boundary conditions:

b is also constant.

I know that separation of variables is required and have a general solution for the X problem:

Where I am struggling is a general solution for Y, I have tried a sum of sin and cos but am having no luck with getting the constants after superposition as the boundary values just aren't helpful at removing any of the constants.

Any help would be greatly appreciated.