<?xml version="1.0" encoding="UTF-8" ?>
  <resource>
  <id>2270</id>
  <path>/www/nrich/html/content/id/2270/</path>
  <resourceTypeID>1</resourceTypeID>
  <last_published>2011-02-01T00:00:01</last_published>
  <indexXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot; xmlns:mdo=&quot;http://mmp.maths.org/mdo&quot;&gt;
&lt;br/&gt;
The sum of the infinite geometric series $1 + x + x^2 + x^3 + \cdots$ and the binomial series are well known.
How are the two related?&lt;br /&gt;
&lt;br /&gt;
Show that $$\sum_{n=0}^\infty n x^n = {x\over(1-x)^2}$$ and find $$\sum_{n=0}^\infty n^2x^n.$$ Outline a method for finding $$\sum_{n=0}^\infty n^kx^n$$ where you do not have to carry out this computation beyond $k=2$.
&lt;br/&gt;
Experiment with other expansions to try to find out the values for other interesting series.
&lt;/mdoxml&gt;
</indexXML>
  <solutionXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt;Andy from Clitheroe Royal Grammar School
sent us his work on this problem. He's given us two methods; can
you see why he prefers the second one?&lt;/span&gt; &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
We begin by summing the series&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
$x+2x^2+3x^3+4x^4+\cdots$&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;

&lt;div style=&quot;text-align: center;&quot;&gt;&lt;/div&gt;
 
&lt;table border=&quot;0&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$x$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;+&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$x^2$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;+&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$x^3$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;+&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$x^4$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;+&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$\cdots$&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;+&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$x^2$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;+&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$x^3$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;+&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$x^4$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;+&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$\cdots$&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;+&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$x^3$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;+&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$x^4$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;+&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$\cdots$&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;+&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$\cdots$&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
In other words, we are writing it as a sum of geometric
series!&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Now, let us factorise the above sum as follows:&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
$(x + x^2 + x^3 + x^4+\ldots)(1 + x + x^2 + x^3 +
x^4+\ldots)$&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Wow, a product of geometric series!&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
We can then take a factor of $x$ out the first bracket to leave us
with&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
$x(1 + x + x^2 + x^3+\ldots)^2$&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Using the geometric sum given in the question, this comes to
$$x\times \left(\frac{1}{1-x}\right)^2 = \frac{x}{(1-x)^2}$$
__&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
A similar method could be used for the series $x + 4x^2 + 9x^3 +
16x^4 +\ldots$, factorising it as $(x + 3x^2 + 5x^3 +
7x^4+\ldots)(1 + x + x^2 + x^3 +\ldots)$, then writing the left
hand bracket as $(x + x^2 + x^3+\ldots + 2x^2 + 4x^3 +
6x^4+\ldots)$, from which point we can use our previous sum to
obtain an answer. Unfortunately this doesn't generalise easily into
higher powers, the amount of working needed growing much larger at
each stage.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
A more elegant solution is differentiation. If we differentiate our
first series, we get $1 + 4x + 9x^2 + 16x^3+\ldots +
n^2x^{n-1}+\ldots$. Multiplying through by $x$ gives us $x + 4x^2 +
9x^3+\ldots + n^2 x^n+\ldots$, which is the $n^2 x^n$ series we
need.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
If $x + 2x^2 + 3x^3 + 4x^4+\ldots = x/(1-x)^2$ then $x(d[x + 2x^2 +
3x^3+\ldots]/dx) = x(d[x/(1-x)^2]/dx)$.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
But the left-hand side is equal to $x + 4x^2 + 9x^3 + 16x^4
+\ldots$, the sequence we want to sum.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
We can resolve the right-hand using the quotient rule, and it comes
to $x(1+x)/(1-x)^3$.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
__&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
To take it into higher powers, notice that&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
$d[x + 4x^2 + 9x^3+\ldots]/dx = 1 + 8x + 27x^2+\ldots$.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Therefore $x d[x + 4x^2 + 9x^3+\ldots]/dx = x + 8x^2 +
27x^3+\ldots$, our next sequence. We can differentiate the previous
infinite sum and multiply by $x$ at each stage to get the sum for
the next power, and by applying the same process to the closed-form
expression, we can obtain a closed-form expression for the next
power. &lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</solutionXML>
  <noteXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;Differentiating the known sum, then differentiating the series term
by term and multiplying by $x$ gives the first result. I f this
method works once it will work twice or $k$ times. &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</noteXML>
  <clueXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;Differentiate the geometric series term by term. Equate this to the
derivative of the sum of the series. The required identity follows
with a little simplification of the expressions to obtain terms
with the required coefficients. &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Now carry out this process using the formula for the infinite sum.
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</clueXML>
  <canonXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
Solution for internal use NOT for publication &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
We know that $$\sum_{n=0}^\infty x^n = {1\over(1-x)}$$ so
$$\sum_{n=0}^\infty nx^n = x{\rm{d}\over \rm{dx}}\sum_{n=0}^\infty
x^n $$ $$= x{\rm{d}\over \rm{dx}}\left({1\over 1-x}\right) $$ $$ =
{x\over(1-x)^2} .$$ Going one step further $$\sum_{n=0}^\infty
n^2x^n = x{\rm{d}\over \rm{dx}}{x\over(1-x)^2}$$ $$ =
x\left({(1-x)^2+2x(1-x)\over (1-x)^4}\right) $$
$$=x\left({(1-x)+2x\over (1-x)^3}\right)$$ $$= {x(1+x)\over
(1-x)^3} .$$&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
More generally $$\sum_{n=0}^\infty n^kx^n = \left(x{\rm{d}\over
\rm{dx}}\right) \cdots \left(x {\rm{d}\over \rm{dx}}\right) \left(
{1\over 1-x}\right) $$ where the operator. $$ \left(x {\rm{d}\over
\rm{dx}}\right)$$ is applied $k$ times. &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</canonXML>
  <end_user_role>2</end_user_role>
  <difficulty>4</difficulty>
  <keystage1>0</keystage1>
  <keystage2>0</keystage2>
  <keystage3>0</keystage3>
  <keystage4>0</keystage4>
  <keystage4plus>1</keystage4plus>
  <title>Generally Geometric</title>
  <description>Generalise the sum of a GP by using derivatives to make the
coefficients into powers of the natural numbers.</description>
  <spec_group>Pre-Calculus and Calculus
    <specifier>Differentiation</specifier>
  </spec_group>
  <spec_group>Sequences, Functions and Graphs
    <specifier>Geometric sequence</specifier>
  </spec_group>
  <spec_group>Using, Applying and Reasoning about Mathematics
    <specifier>Mathematical reasoning &amp; proof</specifier>
  </spec_group>
  <spec_group>Pre-Calculus and Calculus
    <specifier>Infinite series</specifier>
  </spec_group>
  <spec_group>Using, Applying and Reasoning about Mathematics
    <specifier>Generalising</specifier>
  </spec_group>
</resource>