Calculus · real student question

Find the interval of convergence of the sum from n = 1 to infinity of (-1)^n (1/n - 1/(n+2)) x^n.

Question

Find the interval of convergence of

n=1(1)n(1n1n+2)xn\sum_{n=1}^{\infty}(-1)^{n}\left(\frac{1}{n}-\frac{1}{n+2}\right)x^{n}

Step-by-step solution

  1. Combine the coefficient into a single fraction. Over the common denominator n(n+2)n(n+2):

    1n1n+2=(n+2)nn(n+2)=2n(n+2)\frac{1}{n}-\frac{1}{n+2}=\frac{(n+2)-n}{n(n+2)}=\frac{2}{n(n+2)}

    Verified exactly for every nn up to 5959 ✓. This form makes the decay rate visible, which the original difference hides.

  2. Absorb the sign into the variable. Since (1)nxn=(x)n(-1)^{n}x^{n}=(-x)^{n}, the series is

    n=12n(n+2)(x)n\sum_{n=1}^{\infty}\frac{2}{n(n+2)}(-x)^{n}

    a power series in x-x with positive coefficients — simpler to analyse, and the interval in xx will come out symmetric anyway.

  3. Find the radius with the ratio test. With cn=2n(n+2)c_{n}=\dfrac{2}{n(n+2)},

    cn+1cn=n(n+2)(n+1)(n+3)1\left|\frac{c_{n+1}}{c_{n}}\right|=\frac{n(n+2)}{(n+1)(n+3)}\longrightarrow1

    (numerically 1.19171.1917 at n=10n=10, 1.01991.0199 at n=100n=100, 1.00201.0020 at n=1000n=1000 ✓). So the radius of convergence is R=1R=1: the series converges for x<1|x|<1 and diverges for x>1|x|>1. The endpoints need separate treatment.

  4. Test x=1x=1. The terms become 2(1)nn(n+2)\dfrac{2(-1)^{n}}{n(n+2)}, and since

    2n(n+2)2n2\frac{2}{n(n+2)}\sim\frac{2}{n^{2}}

    comparison with the convergent pp-series n2\sum n^{-2} (p=2>1p=2>1) shows the series converges absolutely ✓.

  5. Test x=1x=-1. Now (x)n=1(-x)^{n}=1, so the series is the positive telescoping sum

    n=1(1n1n+2)=1+12=32\sum_{n=1}^{\infty}\left(\frac{1}{n}-\frac{1}{n+2}\right)=1+\frac12=\frac32

    since all interior terms cancel and 1n+1+1n+20\tfrac{1}{n+1}+\tfrac{1}{n+2}\to0. A partial sum to n=19999n=19999 gives 1.499901.49990 ✓, confirming convergence to 32\tfrac32.

  6. State the interval. Both endpoints converge, so

    [1,1][-1,1]

    is the interval of convergence — a closed interval, which is what the 1/n21/n^{2}-type decay of the coefficients buys. Coefficients decaying only like 1/n1/n would have given a half-open interval instead.

Answer

n=12(x)nn(n+2),interval [1,1]\sum_{n=1}^{\infty}\frac{2(-x)^{n}}{n(n+2)},\qquad\text{interval }[-1,1]

Need to solve a different problem like this? Open the solver →