I need to evaluate the following integral $$\int_0^1 sin(x^2) /(x) \,dx$$ with precision of $0.00000003$ ,meaning the remainder is bounded by that number.
my attempt: substitute $x^2$ = t, and the integral transforms into: $\int_0^1 sin(t) /(2t) \,dx$ now observe that we can substitute the integrad with its taylor expansion (to avoid getting into complex valued functions) which is $\sum_{i=1}^{\infty} (-1)^{n}x^{2n}/(2n+1)!$ since the integrad converges uniformly (this is given), we can perform "term by term" integration, or exchange the sum and the integral which in turn gives us a polynomial of degree 2n+1 which we can evaluate between 0 and 1 easily by N.L.
Now for the tricky part: if the remainder of order m is defined to be:
$\sum_{i=1}^{\infty} (-1)^{n}x^{2n+1}/(2n+1)(2n+1)!$ - $\sum_{i=1}^{m} (-1)^{n}x^{2n+1}/(2n+1)(2n+1)!$
It seems like i can start calculating the first few terms of the taylor expansion and keep going until I'm within the desired precision?
And secondly, the title question, how do I know if the value i get from summing the first m terms is larger or smaller than the actual value of the original integral?