So I have the following question here:
Find the Macluarin series of $\displaystyle F(x) = \int_{0}^{x} (1+t^2)\cos(t^2)dt$. Use this series to Evaluate $F(\frac{\pi}{2})$ with an error less than $0.001$.
Now, I know the basic idea. The Maclaurin series of $\displaystyle \cos(x)=\sum_{n=0}^{\infty} \frac{(-1)^n(t^{2n})}{(2n)!}$. So then I would just expand the Integral like so:
$\displaystyle F(x) = \int_{0}^{x} (1+t^2)\cos(t^2)dt$
$\displaystyle F(x) = \int_{0}^{x} (1+t^2)\sum_{n=0}^{\infty} \frac{(-1)^n(t^{4n})}{(2n)!}dt$
$\displaystyle F(x) = \int_{0}^{x}\sum_{n=0}^{\infty} \frac{(-1)^n(t^{4n})}{(2n)!}dt + \int_{0}^{x}\sum_{n=0}^{\infty} \frac{(-1)^n(t^{4n+2})}{(2n)!}dt$
$\displaystyle F(x) = \sum_{n=0}^{\infty} \frac{(-1)^n(x^{4n+1})}{(2n)!(4n+1)} + \sum_{n=0}^{\infty} \frac{(-1)^n(x^{4n+3})}{(2n)!(4n+3)}$
As far as I know, I would have to combine both of these into a single sum to get my maclaurin series.
Now I know that because these series alternate, I have to use the alternating series estimation theorem and make the error less than $0.001$.
Here's where I'm stuck... How do I do that? This would be fine if I had a single sum. However I have two sums here. How do I deal with that?
I could do this by adding up terms if I wanted to I guess. This would require me to integrate $10$ terms as such:
$\displaystyle \int_{0}^{\frac{\pi}{2}}\left(1+x^2-\frac{x^4}{2}-\frac{x^6}{2}+\frac{x^8}{24}+\frac{x^{10}}{24}-\frac{x^{12}}{720}-\frac{x^{14}}{720}+\frac{x^{16}}{40320}+\frac{x^{18}}{40320}\right)dx \approx 0.9259$ which gives me the desired ammount I want to that the error does not exceed $0.001$. However, this requires me to know the value of the integral which I can't find using elementary methods.
Is there a way I could do it with my original method or using a series + the Alternating series estimation theorem? Help would be appreciated. Thank you very much.
EDIT: Corrected to account for the $t^2$ for the maclaurin series of cosine.