I have problem with first order quasi-linear PDE. I used Mathematica to solve the equation but it doesn't work. Would appreciate for some tips. Here is what I have done.
Solve equation:
$2\frac{\partial{u}}{\partial{x}}+u\frac{\partial{u}}{\partial{y}}=\frac{u^2}{y}$.
Now in Mathematica
define p
and q
:
p = D[u[x, y], x]
q = D[u[x, y], y]
Now I'm trying to use Dsolve function.
eqn = 2*p + u[x, y]*q == (u[x, y])^2/y
sol = u[x, y] /. DSolve[eqn, u[x, y], {x, y}]
what I get is
ReplaceAll::reps:
{DSolve[u[x, y] Derivative[0, 1][u][x, y] + 2 Derivative[1, 0][u][x, y] == u[x, y]^2/y, u[x, y], {x, y}]}
is neither a list of replacement rules nor a valid dispatch table, and so cannot be used for replacing.