Problem
Solve the Laplace equation ${\nabla}^{2} u = 0$, $x > 0$, $y < 0$ with the conditions
$u(x, 0) = 0,\quad x > 0$
$u(0, y) = \begin{cases} b, & -4 \le y \le -2 \\ 0, & \text{$y \lt -4$ or $-2 \lt y \lt 0$} \end{cases}$
$|u(x, y)| < M$
My current progress
I use separation of variables, let $u = XY$, and the Laplace equation becomes $\frac{X''}{X} = -\frac{Y''}{Y}$, and I let this equation = $-{\lambda}^2$ and use the boundary condition $u(x, 0) = 0, x > 0$. The function $u$ becomes $$u = \sin(\lambda y)[A_1e^{\lambda x} + B_1e^{-\lambda x}]$$ but I don't know how to use the rest of the condition.
Can anyone help me or give me some hints? Thanks!