I am new to Mathematica and need to verify my numerical result. Can anyone please show me how to solve the following heat equation problem $$ u_t = u_{xx}$$ on the interval $ x \in [0,1]$. The initial condition is $$ u(x,0) = (\sin(\pi x))^{100} $$ and Neumann boundary conditions $$u_x(0,t)=u_x(1,t)=0$$
I was hoping to plot the solution at time $t=1$ with respect to $x$. Can anyone please help me? I am a complete novice and the internet was not much help.
Edit: this is what I have managed to use for the equation
sol2 = NDSolveValue[{D[u[t, x], {t, 1}] - D[u[t, x], {x, 2}] ==
NeumannValue[0, x == 0] + NeumannValue[0, x == 1],
u[0, x] == (Sin[Pi*x])^100}, u, {x, 0, 1}, {t, 0, 2},
Method -> {"MethodOfLines",
"SpatialDiscretization" -> {"FiniteElement"}}];
but I have no idea how to plot
NDSolve[]
? $\endgroup$