The Maclaurin series for a function $f$ is $$f(x)=\sum_{n=0}^\infty\frac{f^{(n)}(0)x^n}{n!}$$ Suppose that instead of the $x^n$ we picked up a function $g_n$? We can write
$$f(x)=a_0+a_1g_1(x)+a_2g_2(x)+\ldots\\f'(x)=b_1a_1+b_2a_2g_2'(x)+...$$ hence $$f'(0)=b_1a_1$$ but i'm not sure whether this is right. What would it then look like? $$f(x)=\sum_{n=0}^\infty\Big(\underline{\color{white}{what}}{}\Big)g_n(x)$$
Have there been any work on that in the literature?