Added May 21, 2019.
Characteristics, with IC
Taken from "the method of Characteristics" by Ryan C. Daileda. Page 16 http://ramanujan.math.trinity.edu/rdaileda/teach/s15/m3357/lectures/lecture_1_22_slides.pdf
Solve for \(u(x,y)\)
With initial conditions \(u(0,y)=y^2-1\).
Mathematica ✓
ClearAll["Global`*"]; pde = y*D[u[x, y], x] - x*D[u[x, y], y] == Exp[u[x, y]]; sol = AbsoluteTiming[TimeConstrained[DSolve[{pde, u[0, y] == y^2 - 1}, u[x, y], {x, y}], 60*10]];
Maple ✓
restart; pde :=y*diff(u(x,y),x)-x*diff(u(x,y),y)=exp(u(x,y)); cpu_time := timelimit(60*10,CodeTools[Usage](assign('sol',pdsolve([pde,u(0,y)=y^2-1],u(x,y))),output='realtime'));
Hand solution
Solve
The characteristic equations (using \(s\) as the parameter) are
With initial point at \(s=0\) which can be written as \(u\left ( 0,\xi \right ) =\xi ^{2}-1\). The idea of this method is to use (1,2) to obtain expressions for \(s,\xi \). These are the unknowns. Then using these in (3) to obtain the final solution \(u\left ( x,y\right ) \). One problem that we see right away, is that (1,2) are coupled. When this happens, we must decouple them first. Differentiating (1) gives \(\frac {d^{2}x}{ds^{2}}=y^{\prime }=-x\). Hence (1) becomes \(x^{\prime \prime }\left ( s\right ) +x=0\). This has solution
But from (1), we see that \(x^{\prime }\left ( s\right ) =y\). Therefore
We made some progress. Found \(x\left ( s\right ) ,y\left ( s\right ) \). But need to solve for \(c_{1},c_{2}\). This is done using the initial point, which is always at \(s=0\). When \(s=0\), using \(u\left ( 0,\xi \right ) =\xi ^{2}-1\), which says \(x\left ( 0\right ) =0\) and \(y\left ( 0\right ) =\xi \). Using \(x\left ( 0\right ) =0\) when \(s=0\) then from (4) we obtain \(0=c_{1}\). Now the solutions becomes
Now we use the second initial condition on \(y\left ( s\right ) \) which says \(y\left ( 0\right ) =\xi \). Hence from the second equation above, \(\xi =c_{2}\). Therefore the solution now becomes
This is as far as we can go. Remembering that we are after expressions for \(s\) and \(\xi \). Dividing (6/7) gives
Good. We obtained relation for \(s\) in terms of \(x,y\). What about \(\xi \)?. By equation (6) and (7) and adding them we obtain
Good. (8,9) is what we wanted. Equations (1,2) have done their job. We used them to find \(s,\xi \). Now we move on to (3) which is
Solving it gives
But at \(s=0\) we know that \(u\left ( 0\right ) =\xi ^{2}-1\). \(-e^{-\left ( \xi ^{2}-1\right ) }=C\). Then the above becomes
We are almost there. We just need now to go back to \(x,y\) from \(s,\xi \). By using (8,9) the above becomes
We can stop here. But if assume \(u>0\) then the above can be simplified more
I used document titled "The method of Characteristics" by Ryan C. Daileda for help which is a very useful document.
___________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________