# Tag Info

In this code, you are trying to solve this 1D heat transfer equation: $$\frac{\partial u}{\partial t} = \alpha \frac{\partial^{2} u}{\partial x^{2}}$$ If you use discrete Fourier transform (DFT) on $u(x,t)$ and discretized $x$ values of $x_{i}$ where $0 \leq i \leq N$ and $x \in [0,L]$ and $x_{i} = \frac{i}{N}L$ and $k_{i} = \frac{2 \pi i}{L}$, you have: ...