Let $f : [0,1] \to \mathbb [0,1]$ be a smooth function (class $C^\infty$) that is not necessarily real-analytic.
Let $g : (-1, \infty) \to \mathbb R$ be the function defined by $g(x) = \int_0^1 f(t) \, t^x dt$.
Is $g$ necessarily a real-analytic function on $(-1, \infty)$?
The change of variables $t=e^{-s}$ shows that $g(x)=F(x+1)$ where $F$ is the Laplace transform of $s\mapsto f(e^{-s})$ which is, in our case continuous and bounded. So $F$ is analytic in $\{z:\Re z>0\}$, and consequently $g$ is real analytic on $(-1,+\infty)$.