DSolve[{x y D[u[x,y],x]+(x-y)y D[u[x,y],y]+x==u[x,y],u[x,0]==x},u,{x,y}]
returns unevaluated. Removing the initial condition:
sol = DSolve[x y D[u[x, y], x] + (x - y) y D[u[x, y], y] + x == u[x, y], u, {x, y}]
gives something complicated; then
Simplify[u[x, 0] /. sol, Assumptions -> x \[Element] Reals]
returns
{\[Piecewise] Indeterminate x==0
-((x (-\[Infinity] Hypergeometric2F1[1,1+1/x,2+1/x,-\[Infinity]]
+ (1 + x) Hypergeometric2F1[1,1/x,1+1/x,-\[Infinity]]))/(1+x)) x>0
x + \[Infinity] C[1][-(x^2/2)] True
}
which, if I understand it correctly, means that the solution is undefined at y=0
for real x
.
I found several terms in the power series expansion "by hand", it goes like
x + xy/(1-x) + (xy)^2/((1-x)^2(1-2x)) + 2(2 - 3x)(xy)^3/((1-x)^3(1-2x)^2(1-3x))
+ 2(17 - 92x + 159x^2 - 90x^3)(xy)^4/((1-x)^4(1-2x)^3(1-3x)^2(1-4x))
+ 8(62 - 788x + 4048x^2 - 10783x^3 + 15759x^4 - 12042x^5 + 3780x^6)(xy)^5
/((1-x)^5(1-2x)^4(1-3x)^3(1-4x)^2(1-5x))
so that at least in the formal sense the solution seems to exist.
Can I somehow extract an explicit solution from all this?
StreamPlot[{x*y,(x-y)*y},{x,-1,1},{y,-1,1},FrameLabel->{"x","y"}]
. Some never come close to $y=0$. Where does this equation come from and why are you interested in it? $\endgroup$y=0
: oppositely directed streamlines clash there. $\endgroup$