# Fourier combined cosine sum generality with cosine simplicity in de's

Any function can be written as an infinite sum of cosines, or decently approximated through a finite sum of them. What’s more, cosines behave very predictably in the heat equation, and those are linear. Therefore, cosine sum approximation of functions makes finding an approximate solution to the heat equation for any given function feasible.