$|\sum_{n=0}^\infty a_n - \sum_{n=1}^\infty b_n|$
is equal to ________
The given function is $f(x) = x^2 + 4 \sin (x) \cos(x)$. Using the trigonometric identity $2 \sin(x) \cos(x) = \sin(2x)$, the function can be rewritten as:
$f(x) = x^2 + 2 \sin(2x)$
The Fourier series is given by $S(x) = a_0 + \sum_{n=1}^\infty(a_n \cos (n x) + b_n \sin (n x))$.
The sum $\sum_{n=0}^\infty a_n$ is equivalent to $a_0 + \sum_{n=1}^\infty a_n$, which equals $S(0)$.
For a function whose Fourier series converges at $x=0$, $S(0) = f(0)$.
Evaluating $f(x)$ at $x=0$: $f(0) = (0)^2 + 2 \sin(2 \cdot 0) = 0 + 2 \sin(0) = 0$
Therefore, $\sum_{n=0}^\infty a_n = 0$.
The coefficient $b_n$ is defined as $b_n = \frac{1}{\pi} \int_{-\pi}^{\pi} f(x) \sin(nx) dx$. Substituting $f(x) = x^2 + 2 \sin(2x)$:
$b_n = \frac{1}{\pi} \int_{-\pi}^{\pi} (x^2 + 2 \sin(2x)) \sin(nx) dx$
This integral can be split into two parts: $b_n = \frac{1}{\pi} \int_{-\pi}^{\pi} x^2 \sin(nx) dx + \frac{1}{\pi} \int_{-\pi}^{\pi} 2 \sin(2x) \sin(nx) dx$
The first integral, $\int_{-\pi}^{\pi} x^2 \sin(nx) dx$, evaluates to zero because $x^2 \sin(nx)$ is an odd function integrated over the symmetric interval $[-\pi, \pi]$.
The second integral, $\frac{1}{\pi} \int_{-\pi}^{\pi} 2 \sin(2x) \sin(nx) dx$, relies on the orthogonality property of sine functions: $\int_{-\pi}^{\pi} \sin(mx) \sin(nx) dx = \pi \delta_{mn}$ for $m, n \ge 1$, where $\delta_{mn}$ is the Kronecker delta.
Thus, the only non-zero $b_n$ coefficient for $n \ge 1$ is $b_2=2$. Therefore, $\sum_{n=1}^\infty b_n = 2$.
The question requires calculating the absolute difference $|\sum_{n=0}^\infty a_n - \sum_{n=1}^\infty b_n|$.
Substituting the calculated values: $|\sum_{n=0}^\infty a_n - \sum_{n=1}^\infty b_n| = |0 - 2| = |-2| = 2$
The final value is 2.
Let $a_0 = 0$ and define $a_n = \frac{1}{2}(1 + a_{n-1})$ for all positive integers $n \ge 1$.
The least value of $n$ for which $|1 - a_n| < \frac{1}{2^{10}}$ is __________.
(Answer in integer)
Let $S_n = \sum_{k=1}^n \frac{1}{k}$ and $I_n = \int_1^n \frac{x - [x]}{x^2} dx$. Then, $S_{10} + I_{10}$ is equal to