$u_x+x^2y^4u_y=0 , u(1,y)=cos(2y) \\ \frac{dy}{dx}= x^2y^4 \implies \int y^{-4} dy = \int x^2 dx \implies -\frac{y^{-3}}{3}= \frac{x^3}{3} +C \\ C= -1/3(x^3+y^{-3}) \\ u(x,y)=f(C)=f(-1/3(x^3+y^{-3})) \\ \text{Given auxiliary condition: } u(1,y)= f(\frac{-1}{3}(1+y^{-3}))= \cos(2y).$
Solving for the general form of $f$ is where I get stuck.
I am unsure if I can simplify this problem by using the fact that $C$ is a constant. In other words can is the following a valid step:
$C= -1/3(x^3+y^{-3}) \implies C=(x^3+y^{-3})$ Doing so would mean I would then proceed with $f(1+y^{-3})= \cos(2y)$ and thus solve this form of $f$.