Consider the PDE $$-\frac{\partial ^2 w}{\partial x^2}+\frac{\partial^2 w}{\partial y^2}=1.$$
I've found that the general solution of this PDE is given by $$w(x,y)=\frac{1}{4}(y^2-x^2)+g(y-x)+f(y+x)$$ for some functions $f$ and $g$.
I'm now given the conditions \begin{align*} w(x,0)&=0, \\ \frac{\partial w}{\partial y}(x,0)&=0,\\w(0,y)&=0,\end{align*} so that the PDE is defined on the domain $A \cup B=\{y>0,y>x\} \cup \{x>0,x>y\}$.
How do I apply these conditions? The first two on their own give me $w(x,y)=y^2/2$, but this doesn't take into account the nature of the domain and doesn't allow me to use the third condition.