## Laplace's equation

I have a problem solving

$$\nabla^2 T(x,y,z) = 0$$
$$T(0,y,z)=T(a,y,z)=0$$
$$T(x,0,z)=T(x,b,z)=T_0 \sin{\frac{\pi x}{a}$$
$$T(x,y,0)=T(x,y,c)=const.$$

I use separation of variables and get

$$X_n (x) = \sin{\frac{n \pi x}{a}$$
$$Y_n (y) = \cosh{\sqrt{\frac{n^2 \pi^2}{c^2} + \frac{n^2 \pi^2}{a^2}}y} + \sinh{\sqrt{\frac{n^2 \pi^2}{c^2} + \frac{n^2 \pi^2}{a^2}}y}$$
$$Z_n (z) = \cos{\frac{n \pi z}{c}$$
$$T(x,y,z) = \sum_{n=1}^\infty a_n X_n (x) Y_n (y) Z_n (z)$$

where I have used the boundary conditions for x and z. Is this correct?
If it is, I'm having problems to wrap this up. I suppose I can use the condition for T(x,0,z) to get the constants. My calculations gives me

$$a_n = \frac{T_0}{\cos{\frac{\pi z}{c}}}$$

but then I can't get it toghether with the condition for T(x,b,z)...
Any ideas?
 PhysOrg.com science news on PhysOrg.com >> New language discovery reveals linguistic insights>> US official: Solar plane to help ground energy use (Update)>> Four microphones, computer algorithm enough to produce 3-D model of simple, convex room
 Blog Entries: 9 Recognitions: Homework Help Science Advisor Well, first of all, the "y" part of the solution must be periodic, but i'm afraid sinh & cosh are not...The same with the "z" & "x" part. Daniel.
 So the X- and the Z-part are correct, but not the Y-part?

Recognitions:
Homework Help