If $\int_0^x\left(e^{-t^2}+\cos t\right)dt$ has the power series expansion $\sum_{n=1}^\infty a_n x^n$, then what is $a_5$ equal to?
I know that the Cauchy integral test says that the power series converges if the integral converges and diverges if integral diverges. But this is the test for convergence and divergence, how can i find the fifth term of series?