Problem 266
Medium Uniform Convergence

Using the power series expansions of e^x, sin x, cos x

Using the power series expansions of $e^x$, $\sin x$, $\cos x$, $\ln(1+x)$, $(1+x)^a$, expand $\displaystyle\int\frac{\cos x}x\,dx$ in a power series in $x$ and indicate when the expansion is valid.

Explanation of Method

Dividing the $\cos x$ series by $x$ isolates a $1/x$ term (whose antiderivative is $\ln|x|$) from an entire even-power remainder that can be integrated term by term without difficulty.

  1. Divide the Maclaurin series for $\cos x$ by $x$.
  2. Separate the $1/x$ term and integrate the rest term by term.
  3. Recognize the result as the cosine integral function $\operatorname{Ci}(x)$.

Step 1 · Divide by $x$

$$ \frac{\cos x}x = \frac1x\sum_{n=0}^{\infty}\frac{(-1)^n}{(2n)!}x^{2n} = \frac1x + \sum_{n=1}^{\infty}\frac{(-1)^n}{(2n)!}x^{2n-1}. $$

Step 2 · Integrate

$$ \int\frac{\cos x}x\,dx = \ln|x| + \sum_{n=1}^{\infty}\frac{(-1)^n}{(2n)!}\cdot\frac{x^{2n}}{2n} + C = \ln|x| + \sum_{n=1}^{\infty}\frac{(-1)^n}{2n\cdot(2n)!}x^{2n} + C. $$

Step 3 · Identify the function and check the derivative

This indefinite integral is (up to the choice of constant) the cosine integral function $\operatorname{Ci}(x)$. Differentiating back confirms the derivation: $$ \frac{d}{dx}\left[\ln|x|+\sum_{n=1}^{\infty}\frac{(-1)^nx^{2n}}{2n\cdot(2n)!}\right] = \frac1x+\sum_{n=1}^{\infty}\frac{(-1)^nx^{2n-1}}{(2n)!} = \frac1x+\frac{\cos x-1}x = \frac{\cos x}x. $$


Summary Table

PropertyValue
Series$\ln|x|+\sum(-1)^nx^{2n}/(2n\cdot(2n)!)$
Special functionCosine integral, $\operatorname{Ci}(x)$
Region of validity$x\ne0$

Additional Notes

Result

$$ \int\frac{\cos x}x\,dx = \ln|x| + \sum_{n=1}^{\infty}\frac{(-1)^n}{2n\cdot(2n)!}x^{2n} + C, \quad x\ne0. $$