I know the form of $f(x)$ and that of $g(x)$ and I would like to find an expression for a function $H$ such that $H[g(x)] = f(x)$. $f$ is a polynomial and $g$ is more complex and involves some $\exp$ and $\cos$. Is there any procedure to find $H$?
More details:
$f(x) = Ax^6+Bx^{12}$
$g(x) = e^x\left(\cos{x}+1\right)$
I know (numerically) $g(x)$ and $f(x)$ and, I would like to find a function such that $H[g(x)] = f(x)$ without having to evaluate it from $x$.
Thank you!