Consider, $$ u_t = uu_{xx}$$ to be solved on $t > 0,$ $0 \leq x \leq 1$ with $u(0,t) = u(1,t)$ and $u_x(0,t) = u_x(1,t).$ Given $u(x,0) = \phi(x)$ where $\phi$ is as smooth as needed:
What restrictions on $\phi(x)$ are needed in order to be able to obtain a convergent finite difference scheme? Why?
Given such a $\phi,$ construct a convergent FD scheme.
My thoughts: The only consideration I can think of for $\phi(x)$ might be that $\phi(x) \geq 0$ for all $x.$ Otherwise, the PDE would be unstable due to a negative coefficient in front of $u_{xx}.$ However, I feel like there is more to this part.
Supposing that we are given an appropriate $\phi,$ my naive guess at a FD scheme would be, $$ \frac{u_i^{n+1} - u_i^n}{\Delta t} = u_i^n \bigg( \frac{u_{i+1}^n - 2u_i^n + u_{i-1}^n}{\Delta x^2} \bigg).$$
Does anyone know off the top of their head if this is a seriously flawed guess? I haven't thought too long about how I would show stability for a nonlinear scheme.
Any suggestions/help would be appreciated, thanks!