Estimate the definite integral $\int_0^{0.5} \ln(1+\frac{x^2}{4})$ with an error of at most $10^{-4}$, using the Alternating Series Estimation Theorem.
My approach is as follows:
- I found the power series representation for $\ln(1+\frac{x^2}{4})$. It appears that $$\ln\bigg(1+\frac{x^2}{4}\bigg) = \sum_{n=0}^\infty \frac{(-1)^n}{n+1} \bigg(\frac{x}{2}\bigg)^{2n+2}$$
- Then I find the power-series representation for the indefinite integral $\int\ln(1+\frac{x^2}{4})$ $$\int\ln\bigg(1+\frac{x^2}{4}\bigg)dx = \int\bigg[\sum_{n=0}^\infty \frac{(-1)^n}{n+1} \bigg(\frac{x}{2}\bigg)^{2n+2}\bigg]dx$$ $$\int\ln\bigg(1+\frac{x^2}{4}\bigg)dx = \int\bigg(\frac{x^2}{4}-\frac{x^4}{32}+\frac{x^6}{192} + ...\bigg)dx$$ $$\int\ln\bigg(1+\frac{x^2}{4}\bigg)dx = \bigg(\frac{x^3}{3\cdot4}-\frac{x^4}{5\cdot32}+\frac{x^6}{7\cdot192} + ...\bigg)+C$$ $$\int\ln\bigg(1+\frac{x^2}{4}\bigg)dx = \sum_{n=1}^\infty \frac{(-1)^{n+1}\cdot x^{2n+1}}{(2n+1)(n \cdot 2^n)} +C$$
- I find an expression for $\int_0^{0.5} \ln(1+\frac{x^2}{4})$ in terms of power series. $$\int_0^{0.5}\ln\bigg(1+\frac{x^2}{4}\bigg)dx = \sum_{n=1}^\infty \frac{(-1)^{n+1}\cdot x^{2n+1}}{(2n+1)(n \cdot 2^n)} +C \ \bigg ]_0^{0.5}$$ $$\int_0^{0.5}\ln\bigg(1+\frac{x^2}{4}\bigg)dx = \sum_{n=1}^\infty \frac{(-1)^{n+1}\cdot {0.5}^{2n+1}}{(2n+1)(n \cdot 2^n)}$$ $$\int_0^{0.5}\ln\bigg(1+\frac{x^2}{4}\bigg)dx = \sum_{n=1}^\infty \frac{(-1)^{n+1}}{n(2n+1)( 2^{3n+1})}$$
- Apply the Alternating Series Test. Suppose $b_n = \frac{1}{n(2n+1)( 2^{3n+1})}$. It turns out that it satisfies the two conditions of the AST, that is $b_{n+1} \leq b_{n}$ and $\lim_{n \to \infty}b_n = 0$. This implies that the infinite sum $\sum_{n=1}^\infty \frac{(-1)^{n+1}}{n(2n+1)( 2^{3n+1})}$ converges.
- Define $S_n = \sum_{i=1}^n \frac{(-1)^{i+1}}{i(2i+1)( 2^{3i+1})}$. I want to determine the smallest integer n such that the partial sum $S_n$ is guaranteed to approximate $\sum_{n=1}^\infty \frac{(-1)^{n+1}}{n(2n+1)( 2^{3n+1})}$ with an error of at most $0.0001$. Now apply the Alternating Series Estimation Theorem, $|S - S_n| \leq b_{n+1} \leq 0.0001$. $$ \implies \frac{1}{(n+1)(2n+3)\cdot 2^{3n+4}} \leq 0.0001$$ $$ \implies (n+1)(2n+3)\cdot 2^{3n+4} \geq 10 000 \implies n \geq 1.71926$$
- We conclude that $n=2$ would guarantee an accuracy within $0.0001$.
- Now compute $$S_2 = \sum_{i=1}^2 \frac{(-1)^{i+1}}{i(2i+1)( 2^{3i+1})} \approx 0.0201$$
This suggests that $\int_0^{0.5} \ln(1+\frac{x^2}{4}) \approx 0.0201$. However, when I tried to compute the actual value of $\int_0^{0.5} \ln(1+\frac{x^2}{4})$, it gives me $\approx 0.010$. I am wondering what I did wrong in this problem. Any help would be highly appreciated.
The first term of the expansion seems to be $$\dfrac{x^3}{3\cdot 4}.$$ But in your summation, you write $$ \sum_{n=1}^\infty \frac{(-1)^{n+1}\cdot x^{2n+1}}{(2n+1)(n \cdot 2^n)},$$ which has as first term (when $n = 1$) $$ \frac{x^3}{3\cdot1\cdot 2}.$$ So it seems like your error is in passing from the expansion to the $n$th term in the expansion.