I have to solve the following one Steady State Mixed Boundary Value Problem and i need some help with the analytical solution! Considering the Partial Differential Equation: $$ {\nabla }^{2}T=100$$ applied in a rectangle $ \Omega$ where $ \Omega :\left\{0<x<1, 0\le y\le 0.5\right\}$ with the boundary conditions which given below: $$ \left.\begin{array}{r}T\left(0,y\right)=40,\\ T\left(x,0.5\right)=40,\\ T\left(1,y\right)=40,\\ \nabla T\left(x,0\right)=500\end{array}\right\} $$ I tried the Seperation of Variables Technique where: $$ T\left(x,y\right)={X}_{\left(x\right)}{Y}_{\left(y\right)}\to \frac{{X}_{\left(x\right)}^{"}}{{X}_{\left(x\right)}}=-\frac{{Y}_{\left(y\right)}^{"}}{{Y}_{\left(y\right)}}=-\lambda ,\lambda \in \mathbb{R} $$ and obtain the following: $$ \left(A\right):\left\{\begin{array}{l}{X}_{\left(x\right)}^{"}=-\lambda {X}_{\left(x\right)}\\ X\left(1\right)=X\left(0\right)=40\end{array},\left(0<x<1\right)\right. $$ and $$ \left(B\right):\left\{\begin{array}{l}{Y}_{\left(y\right)}^{"}=\lambda {Y}_{\left(y\right)}\\ Y\left(0.5\right)=40\end{array},\left(0\le y\le 0.5\right)\right. $$ From the (A): $ {\lambda }_{n}={n}^{2}{\pi }^{2}\space, and \space {X}_{n}\left(x\right)=sin\left(n\pi x\right),n\in \mathbb{N}.$ And from the (B): $ {Y}_{\left(y\right)}^{"}={n}^{2}{\pi }^{2}\cdot {Y}_{\left(y\right)}\space,\space where:{Y}_{\left(y\right)}=C\sinh\left[n\pi \left(0.5-y\right)\right]+Dcosh\left[n\pi \left(0.5-y\right)\right].$
Are that steps correct? How can i go on? Need to decompose the problem first? And what kind of form my General-Analytical Solution will have? Thank you!