Consider the heat equation solution $h(x,t)$ where $x \in [0,1]$ and $t \geq 0$ with initial condition $h(x,t=0)=f(x)$ and Neumann boundary $\frac{d}{dx} h(x=0,t)=0$ and $\frac{d}{dx} h(x=1,t)=0$. Suppose $f(x)=x^n$ where $n \in \mathbb{N}$. Obviously, the solution $h$ can be expressed as an infinite Cosine series. However, I was wondering if for this particular choice of $f$, whether $h(x,t)$ has a closed form solution? If yes, then, great, what is the expression? :)
If not, then here is the next question: is there a good approximation for $\hat{h}(x,t) \approx h(x,t)$ such that $\hat{h}(x,t)$ is a polynomial of degree at most $n$ with respect to variable $x$ (does not necessarily need to be polynomial in $t$)?
Thanks,
Golabi