Solve the following boundary value problem
$5U_x+2U_y=(x-y)^2$
$U(3y,y)=\exp(y^3)$
Hint: Use change of variable $(x,y)\rightarrow(e,n)$
\begin{align}e &= 2x - 5y\\ n &= x - y\end{align}
I am struggling to understand why those boundaries have been picked, they do not seem to simplify the expression in any way. Usually one of the terms will cancel. Am I missing something?
The hint is correct. Such change variables is really helpful: $$ \begin{cases} U_x=2U_e+U_n\\ U_y=-5U_e-U_n \end{cases} \quad\Rightarrow\quad 3U_n=n^2 \quad\Rightarrow\quad U=\frac{n^3}{9}+f(e) \quad\Rightarrow\quad U(x,y)=f(2x-5y)+\frac{(x-y)^3}{9} $$ Using the condition $U|_{x=3y}=e^{y^3}$ you can find function $f(y)=e^{y^3}-\frac{8y^3}{9}$, whence follows $$ U(x,y)=e^{(2x-5y)^3}-\frac{8(2x-5y)^3}{9}+\frac{(x-y)^3}{9}\,. $$
Remark. To make the change of variables $$ \begin{cases} e=2x-5y\\ n=x-y \end{cases} $$ notice that $$ \begin{align} U(x,y)=U\bigl(x(e,n),y(e,n)\bigr)=\widetilde{U}(e,n)\\ \widetilde{U}(e,n)=\widetilde{U}(e(x,y),n(x,y))=U(x,y) \end{align} $$ Hence follows $$ \begin{cases} U_x=\widetilde{U}_e e_x+\widetilde{U}_n n_x=2\widetilde{U}_e+\widetilde{U}_n\\ U_y=\widetilde{U}_e e_y+\widetilde{U}_n n_y=-5\widetilde{U}_e-\widetilde{U}_n \end{cases} $$ Formally, the tilde mark is needed. But two-and-a-half-century MathPhysics tradition insists on omitting any tildes or their substitutes.