Consider
\begin{align}
&u_{xx}-u_{yy}=0\qquad &&0<x<a,\; 0<y<b\label{eq-1}\\[3pt]
&u|_{x=0}=u|_{x=a}=0&& 0<y<b,\label{eq-2}\\[3pt]
&u|_{y=0}=u|_{y=b}=0&&0<x<a.\label{eq-3}
\end{align}
Find the relationship between $a$ and $b$ when this problem has a non–trivial (that means which is not identically $0$) solution $u(x,y)$.
Hints
(a) Apply method of separation of variables.
(b) Alternatively, apply the method of characteristics (which is look for $u(x,y)=f(x+y)+g(x-y)$).