TITLE: Use the method of characteristics to solve nonlinear first order pde.
QUESTION [8 upvotes]: I find this problem challenging:
Use the method of characteristics to solve $u_t+u_x^2=t$ with $u(x,0)=0$.
I know I'm supposed to let $p=u_x$ and $q=u_t$.  Then I get $F(x,t,u,p,q)=p^2+q-t=0$.  But what to do from there eludes me.
Any help/hints to the solution process would be greatly appreciated.

REPLY [2 votes]: Another way (probably better) way is to use the method of characteristic for non-linear first order PDE. We have:
$$ds = \frac{dx}{F_p} = \frac{dt}{F_t} = \frac{du}{pF_p + pF_p} = \frac{-dp}{F_x + pF_u} = \frac{-dq}{F_t + qF_u}$$
where $p = u_x$ and $q= u_y$
For our equation we obtain the following relations:
$$ds = \frac{dx}{2p} = \frac{dt}{1} = \frac{du}{2p^2+q} = \frac{-dp}{0} = \frac{dq}{1}$$
From this we obtain that $p = C_1$ is a constant and also $dq = dt \implies q=t+C_2$. Plugging into the PDE we obtain the relation $\boxed{C_2 = -C_1^2}$. Now as $q$ depends only on $t$ and $p$ only on $x$ we can integrate the following
$$du = pdx + qdt = C_1dx + (t-C_2^2)dt $$
$$\implies u = C_1x + \frac{t^2}{2} - C_1^2t + D$$
This gives you the complete integral of the PDE. Plugging in the initial values we have that $0 = C_1x + D \implies C_1 = D =0$, which yields the aprticular solution $u(x,t) = \frac{t^2}{2}$