The problem I have is really with solving an inequality, but starts as a question referring to alternating series. The question asks: "Express the integral $\displaystyle\int_{0}^\frac{1}{2}\frac{1}{(1+x^6)}dx$ as a series. How many terms are needed to ensure the error is less than 10^-5?"
I understand how to find the series through the following steps: $$\sum_{n=0}^\infty x^n = \frac{1}{1-x}$$ $$\sum_{n=0}^\infty (-x^6)^n = \frac{1}{1+x^6}$$ $$\sum_{n=0}^\infty (-1)^n x^{6n} = \frac{1}{1+x^6}$$ $$\displaystyle\int_{0}^\frac{1}{2}\sum_{n=0}^\infty (-1)^n x^{6n}dx = \sum_{n=0}^\infty \frac{(-1)^n}{(6n+1)2^{6n+1}}$$
Now I am using the error bound for an alternating series to ensure the error is less than 10^-5: $$|s-s_n| < a_{n+1}$$ so in this case: $$a_{n+1} < 10^{-5}$$ $$\frac{1}{(6n+7)2^{6n+7}} < 10^{-5}$$
Now is where I reach my issue with solving the problem. I don't know how to solve for n while it is in the exponent and in the parentheses. I am unsure how to proceed. I tried making the following substitution just to simplify things a bit, but it gets me no where: $$k= 6n+7$$ $$\frac{1}{k2^k} < 10^{-5}$$ $$k2^k > 10^5$$ If it were an equation, I could take the derrivative of both sides and find k, but I can't do that with an inequality. Any insight on how to solve this inequality, or another method to solve this problem would be much appreciated. Any insight will help! Thanks
I would suggest some intelligent trial and improvement.
You know that $k>1$, so $2^k > 10^5 \Rightarrow k2^k > 10^5$
It's much easier to solve $2^k = 10^5$ by taking logarithms:
$k \log_{10}2 = 5 \Rightarrow k = \frac 5{\log_{10}2} \approx 17$.
We have an upper bound $2^{17} > 10^5 \Rightarrow 17 \times2^{17} > 10^5$
Now start trying smaller values:
$16 \times2^{16} = 1048576 > 10^5$
$15 \times2^{15} = 491520 > 10^5$
$14 \times2^{14} = 229376 > 10^5$
$13 \times2^{13} = 106496 > 10^5$
$12 \times2^{12} = 49152 < 10^5$
So you need $k \ge 13$. Using that with $k=6n+7$ will give you $n$.