What are some concrete families $\mathcal F$ of real functions that are closed under integration in the sense that for every $f \in \mathcal F$ there is $F \in \mathcal F$ such that $F'=f$?
Here are the simplest examples I know:
The vector space generated by functions of the form $x^n$, that is, polynomial functions.
The vector space generated by functions of the form $x^n e^{a x}$ for $a\in \mathbb R$, that is, sums of functions of the form $p(x) e^{a x}$, for $p$ a polynomial and different $a$.
The vector space generated by functions of the form $x^n \log (a x)$ for $a\in \mathbb R$, that is, sums of functions of the form $p(x) \log (a x)$, for $p$ a polynomial and different $a$.
Are there any other examples?
Of course, the family of rational functions is not closed under integration.
The third example is interesting because, unlike the other two, it is not closed under differentiation.
In all these examples, the corresponding algebra is also closed under integration, that is, you can also consider products and still be able to find a primitive within the family. Are there any examples that are not algebras?