Hi i'm struggling a little with solutions of PDE. I have to solve the following
$$\begin{cases}\partial_xu +y^2\partial_yu = 2yu+y^2\\ u(0,y)=y \end{cases}$$
I want to use the method of characteristics so I write the system $$\begin{cases} \dot{x} = 1\\\dot{y} = y^2\\\dot{z} = 2yz+y^2\end{cases}$$ with $z(t)=u(x(t),y(t))$ and if this is a homogeneous PDE I can solve the first two row and I obtain that the characteristics curve are $$x +\frac{1}{y}=c$$ And the general solution of the homogeneous PDE is $$u(x,y) = F\bigg(x+\frac{1}{y}\bigg)$$ since this PDE isn't homogeneous I have to solve the last row and here comes the problems. I look at $\dot{z} = 2yz+y^2$ and I think its a ODE and I can solve it with the formula but then how can I use the characteristics to solve the entire equation, how can I find the general solution and how can I use the condition $u(0,y)=y^2$? I'm very confused on that part, thank you very much for the help.
Edit: 1) $u(x,y)=F\bigg(x+\frac{1}{y}\bigg)$ does not solve the homogeneous PDE but $\partial_xu +y^2\partial_yu =0$
$$\partial_xu +y^2\partial_yu = 2yu+y^2$$ Charpit-Lagrange characteristic ODEs : $$\frac{dx}{1}=\frac{dy}{y^2}=\frac{du}{2yu+y^2}$$ A first characteristic equation comes from solving $\frac{dx}{1}=\frac{dy}{y^2}$ $$x+\frac{1}{y}=c_1$$ A second characteristic equation comes from solving $\frac{dy}{y^2}=\frac{du}{2yu+y^2}\quad\implies\quad \frac{du}{dy}=\frac{2u}{y}+1$ : $$\frac{u+y}{y^2}=c_2$$ The general solution of the PDE on the form of implicite equation $c_2=F(c_1)$ is : $$\frac{u+y}{y^2}=F\left(x+\frac{1}{y} \right)$$ where $F$ is an arbitrary function (to be determined according to the boundary condition). $$\boxed{u(x,y)=-y+y^2F\left(x+\frac{1}{y} \right)}$$ Condition :
$u(0,y)=y=-y+y^2F\left(0+\frac{1}{y} \right)\quad\implies\quad F\left(\frac{1}{y}\right)=\frac{2}{y}$
With $X=\frac{1}{y}$ the function $F(X)$ is determined : $$F(X)=2X$$ We put it into the above general solution where the argument is $X=x+\frac{1}{y}$.
$u(x,y)=-y+2y^2\left(x+\frac{1}{y}\right)$ $$u(x,y)=2y^2x+y$$