Suppose the values of $a$, $b$, $V_1$ and $V_2$ is given. I want to find the solution of the Laplace equation, $$\frac{\partial^2 \phi}{\partial x^2}+\frac{\partial^2 \phi}{\partial y^2}=0$$ in the orange region of the figure (with the boundary conditions given in the figure).
Can we use the separation of variable method for solving this problem? I have tried to find the solution by separation of variables, but it seems the the boundary conditions can not be satisfied. Do you have any idea for solving this problem, theoretically?