Skip to main content
Mathematics LibreTexts

8.6: Power Series

  • Page ID
    4204
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    So far, our study of series has examined the question of "Is the sum of these infinite terms finite?,'' i.e., "Does the series converge?'' We now approach series from a different perspective: as a function. Given a value of \(x\), we evaluate \(f(x)\) by finding the sum of a particular series that depends on \(x\) (assuming the series converges). We start this new approach to series with a definition.

    Definition 36: power series

    Let \(\{a_n\}\) be a sequence, let \(x\) be a variable, and let \(c\) be a real number.

    1. The power series in \(x\) is the series\[\sum\limits_{n=0}^\infty a_nx^n = a_0+a_1x+a_2x^2+a_3x^3+\ldots\]
    2. The power series in \(x\) centered at \(c\) is the series \[\sum\limits_{n=0}^\infty a_n(x-c)^n = a_0+a_1(x-c)+a_2(x-c)^2+a_3(x-c)^3+\ldots\]

    Example \(\PageIndex{1}\): Examples of power series

    Write out the first five terms of the following power series:

    \(1. \sum\limits_{n=0}^\infty x^n \qquad\qquad 2. \sum\limits_{n=1}^\infty (-1)^{n+1}\frac{(x+1)^n}n\qquad\qquad 3. \sum\limits_{n=0}^\infty (-1)^{n+1} \frac{(x-\pi)^{2n}}{(2n)!}.\)

    Solution

    1. One of the conventions we adopt is that \(x^0=1\) regardless of the value of \(x\). Therefore \[\sum\limits_{n=0}^\infty x^n = 1+x+x^2+x^3+x^4+\ldots\] This is a geometric series in \(x\).
    2. This series is centered at \(c=-1\). Note how this series starts with \(n=1\). We could rewrite this series starting at \(n=0\) with the understanding that \(a_0=0\), and hence the first term is \(0\). \[\sum\limits_{n=1}^\infty (-1)^{n+1}\frac{(x+1)^n}n = (x+1) - \frac{(x+1)^2}{2} + \frac{(x+1)^3}{3} - \frac{(x+1)^4}{4}+\frac{(x+1)^5}{5}\ldots\]
    3. This series is centered at \(c=\pi\). Recall that \(0!=1\). \[\sum\limits_{n=0}^\infty (-1)^{n+1} \frac{(x-\pi)^{2n}}{(2n)!} = -1+\frac{(x-\pi)^2}{2} - \frac{(x-\pi)^4}{24}+ \frac{(x-\pi)^6}{6!}-\frac{(x-\pi)^8}{8!}\ldots\]

    We introduced power series as a type of function, where a value of \(x\) is given and the sum of a series is returned. Of course, not every series converges. For instance, in part 1 of Example 8.6.1, we recognized the series \(\sum\limits_{n=0}^\infty x^n\) as a geometric series in \(x\). Theorem 60 states that this series converges only when \(|x|<1\).

    This raises the question: "For what values of \(x\) will a given power series converge?,'' which leads us to a theorem and definition.

    theorem 73: convergence of power series

    Let a power series \(\sum\limits_{n=0}^\infty a_n(x-c)^n\) be given. Then one of the following is true:

    1. The series converges only at \(x=c\).
    2. There is an \(R>0\) such that the series converges for all \(x\) in \((c-R,c+R)\) and diverges for all \(x<c-R\) and \(x>c+R\).
    3. The series converges for all \(x\).

    The value of \(R\) is important when understanding a power series, hence it is given a name in the following definition. Also, note that part 2 of Theorem 73 makes a statement about the interval \((c-R,c+R)\), but the not the endpoints of that interval. A series may/may not converge at these endpoints.

    Definition 37: Radius and Interval of Convergence

    1. The number \(R\) given in Theorem 73 is the radius of convergence of a given series. When a series converges for only \(x=c\), we say the radius of convergence is 0, i.e., \(R=0\). When a series converges for all \(x\), we say the series has an infinite radius of convergence, i.e., \(R=\infty\).
    2. The interval of convergence is the set of all values of \(x\) for which the series converges.

    To find the values of \(x\) for which a given series converges, we will use the convergence tests we studied previously (especially the Ratio Test). However, the tests all required that the terms of a series be positive. The following theorem gives us a work--around to this problem.

    theorem 74: The Radius of Convergence of a Series and Absolute Convergence

    The series \(\sum\limits_{n=0}^\infty a_nx^n\) and \(\sum\limits_{n=0}^\infty \big|a_nx^n\big|\) have the same radius of convergence \(R\).

    Theorem 74 allows us to find the radius of convergence \(R\) of a series by applying the Ratio Test (or any applicable test) to the absolute value of the terms of the series. We practice this in the following example.

    Example \(\PageIndex{2}\): Determining the radius and interval of convergence.

    Find the radius and interval of convergence for each of the following series:

    1. \( \sum\limits_{n=0}^\infty \frac{x^n}{n!} \)
    2. \( \sum\limits_{n=1}^\infty (-1)^{n+1}\frac{x^n}{n}\)
    3. \(\sum\limits_{n=0}^\infty 2^n(x-3)^n\)
    4. \( \sum\limits_{n=0}^\infty n!x^n\)

    Solution

    1. We apply the Ratio Test to the series \(\sum\limits_{n=0}^\infty \left|\frac{x^n}{n!}\right|\): \[\begin{align*}\lim\limits_{n\to\infty} \frac{\big|x^{n+1}/(n+1)!\big|}{\big|x^n/n!\big|} &= \lim\limits_{n\to\infty} \left|\frac{x^{n+1}}{x^n}\cdot\frac{n!}{(n+1)!}\right|\\
      &= \lim\limits_{n\to\infty} \left|\frac x{n+1}\right|\\
      &= 0 \text{ for all } x.\end{align*}\]
    2. The Ratio Test shows us that regardless of the choice of \(x\), the series converges. Therefore the radius of convergence is \(R=\infty\), and the interval of convergence is \((-\infty,\infty)\).
    3. We apply the Ratio Test to the series \(\sum\limits_{n=1}^\infty \left|(-1)^{n+1}\frac{x^n}{n}\right| = \sum\limits_{n=1}^\infty \left|\frac{x^n}{n}\right|\): \[\begin{align*}\lim\limits_{n\to\infty} \frac{\big|x^{n+1}/(n+1)\big|}{\big|x^n/n\big|} &= \lim\limits_{n\to\infty} \left|\frac{x^{n+1}}{x^n}\cdot \frac{n}{n+1}\right| \\&= \lim\limits_{n\to\infty} |x|\frac{n}{n+1}\\&= |x|.\end{align*}\]

      The Ratio Test states a series converges if the limit of \(|a_{n+1}/a_n| = L<1\). We found the limit above to be \(|x|\); therefore, the power series converges when \(|x| <1\), or when \(x\) is in \((-1,1)\). Thus the radius of convergence is \(R=1\).

      To determine the interval of convergence, we need to check the endpoints of \((-1,1)\). When \(x=-1\), we have the opposite of the Harmonic Series:\[\begin{align*}\sum\limits_{n=1}^\infty (-1)^{n+1}\frac{(-1)^n}{n} &= \sum\limits_{n=1}^\infty \frac{-1}{n}\\&= -\infty.\end{align*}\]The series diverges when \(x=-1\).

      When \(x=1\), we have the series \(\sum\limits_{n=1}^\infty (-1)^{n+1}\frac{(1)^n}{n}\), which is the Alternating Harmonic Series, which converges. Therefore the interval of convergence is \((-1,1]\).
    4. We apply the Ratio Test to the series \(\sum\limits_{n=0}^\infty \big|2^n(x-3)^n\big|\):
      \[\begin{align*}\lim\limits_{n\to\infty} \frac{\big| 2^{n+1}(x-3)^{n+1}\big|}{\big|2^n(x-3)^n\big|} &= \lim\limits_{n\to\infty} \left|\frac{2^{n+1}}{2^n}\cdot\frac{(x-3)^{n+1}}{(x-3)^n}\right|\\&=\lim\limits_{n\to\infty} \big|2(x-3)\big|.\end{align*}\]

      According to the Ratio Test, the series converges when \(\big|2(x-3)\big|<1 \implies \big|x-3\big| < 1/2\). The series is centered at 3, and \(x\) must be within \(1/2\) of 3 in order for the series to converge. Therefore the radius of convergence is \(R=1/2\), and we know that the series converges absolutely for all \(x\) in \((3-1/2,3+1/2) = (2.5, 3.5)\).

      We check for convergence at the endpoints to find the interval of convergence. When \(x=2.5\), we have: \[\begin{align*}\sum\limits_{n=0}^\infty 2^n(2.5-3)^n &= \sum\limits_{n=0}^\infty 2^n(-1/2)^n \\&=\sum\limits_{n=0}^\infty (-1)^n,\end{align*}\] which diverges. A similar process shows that the series also diverges at \(x=3.5\). Therefore the interval of convergence is \((2.5, 3.5)\).
    5. We apply the Ratio Test to \(\sum\limits_{n=0}^\infty \big|n!x^n\big|\): \[\begin{align*}\lim\limits_{n\to\infty} \frac{\big| (n+1)!x^{n+1}\big|}{\big|n!x^n\big|} &= \lim\limits_{n\to\infty} \big|(n+1)x\big|\\&= \infty\ \text{ for all \(x\), except \(x=0\).}\end{align*}\] The Ratio Test shows that the series diverges for all \(x\) except \(x=0\). Therefore the radius of convergence is \(R=0\).

    We can use a power series to define a function:

    \[f(x) = \sum\limits_{n=0}^\infty a_nx^n\]

    where the domain of \(f\) is a subset of the interval of convergence of the power series. One can apply calculus techniques to such functions; in particular, we can find derivatives and antiderivatives.

    theorem 75: Derivatives and Indefinite Integrals of Power Series Functions

    Let \(f(x) = \sum\limits_{n=0}^\infty a_n(x-c)^n\) be a function defined by a power series, with radius of convergence \(R\).

    1. \(f(x)\) is continuous and differentiable on \((c-R,c+R)\).
    2. \(f^\prime (x) = \sum\limits_{n=1}^\infty a_n\cdot n\cdot (x-c)^{n-1}\), with radius of convergence \(R\).
    3. \(\int f(x)\ dx = C+\sum\limits_{n=0}^\infty a_n\frac{(x-c)^{n+1}}{n+1}\), with radius of convergence \(R\).

    A few notes about Theorem 75:

    1. The theorem states that differentiation and integration do not change the radius of convergence. It does not state anything about the interval of convergence. They are not always the same.
    2. Notice how the summation for \(f^\prime (x)\) starts with \(n=1\). This is because the constant term \(a_0\) of \(f(x)\) goes to 0.
    3. Differentiation and integration are simply calculated term--by--term using the Power Rules.

    Example \(\PageIndex{3}\): Derivatives and indefinite integrals of power series

    Let \(f(x) = \sum\limits_{n=0}^\infty x^n\). Find \(f^\prime (x)\) and \(F(x) =\int f(x)\ dx\), along with their respective intervals of convergence.

    Solution

    We find the derivative and indefinite integral of \(f(x)\), following Theorem 75.

    1. \(f^\prime (x) = \sum\limits_{n=1}^\infty nx^{n-1} = 1+2x+3x^2+4x^3+\cdots.\)
      In Example 8.6.1, we recognized that \(\sum\limits_{n=0}^\infty x^n\) is a geometric series in \(x\). We know that such a geometric series converges when \(|x|<1\); that is, the interval of convergence is \((-1,1)\).

      To determine the interval of convergence of \(f^\prime (x)\), we consider the endpoints of \((-1,1)\):
      \[f^\prime (-1) = 1-2+3-4+\cdots,\quad \text{which diverges.}\]
      \[f^\prime (1) = 1+2+3+4+\cdots,\quad \text{which diverges.}\]

      Therefore, the interval of convergence of \(f^\prime (x)\) is \((-1,1)\).
    2. \(F(x) = \int f(x)\ dx = C+\sum\limits_{n=0}^\infty \frac{x^{n+1}}{n+1} = C+ x+\frac{x^2}{2}+\frac{x^3}3+\cdots\)
      To find the interval of convergence of \(F(x)\), we again consider the endpoints of \((-1,1)\):
      \[F(-1) = C-1+1/2-1/3+1/4+\cdots\]

      The value of \(C\) is irrelevant; notice that the rest of the series is an Alternating Series that whose terms converge to 0. By the Alternating Series Test, this series converges. (In fact, we can recognize that the terms of the series after \(C\) are the opposite of the Alternating Harmonic Series. We can thus say that \(F(-1) = C-\ln 2\).)
      \[F(1) = C+1+1/2+1/3+1/4+\cdots\]

      Notice that this summation is \(C\ +\) the Harmonic Series, which diverges. Since \(F\) converges for \(x=-1\) and diverges for \(x=1\), the interval of convergence of \(F(x)\) is \([-1,1)\).

    The previous example showed how to take the derivative and indefinite integral of a power series without motivation for why we care about such operations. We may care for the sheer mathematical enjoyment "that we can'', which is motivation enough for many. However, we would be remiss to not recognize that we can learn a great deal from taking derivatives and indefinite integrals.

    Recall that \(f(x) = \sum\limits_{n=0}^\infty x^n\) in Example 8.6.3 is a geometric series. According to Theorem 60, this series converges to \(1/(1-x)\) when \(|x|<1\). Thus we can say

    \[ f(x) = \sum\limits_{n=0}^\infty x^n = \frac 1{1-x},\quad \text{ on }\quad (-1,1).\]

    Integrating the power series, (as done in Example 8.6.3,) we find

    \[F(x) = C_1+\sum\limits_{n=0}^\infty \frac{x^{n+1}}{n+1},\label{eq:ps3a}\]

    while integrating the function \(f(x) = 1/(1-x)\) gives

    \[F(x) = -\ln|1-x| + C_2.\label{eq:ps3b}\]

    Equating Equations \ref{eq:ps3a} and \ref{eq:ps3b}, we have

    \[F(x) = C_1+\sum\limits_{n=0}^\infty \frac{x^{n+1}}{n+1} = -\ln|1-x| + C_2.\]

    Letting \(x=0\), we have \(F(0) = C_1 = C_2\). This implies that we can drop the constants and conclude

    \[\sum\limits_{n=0}^\infty \frac{x^{n+1}}{n+1} = -\ln|1-x|.\]

    We established in Example 8.6.3 that the series on the left converges at \(x=-1\); substituting \(x=-1\) on both sides of the above equality gives

    \[-1+\frac12-\frac13+\frac14-\frac15+\cdots = -\ln 2.\]

    On the left we have the opposite of the Alternating Harmonic Series; on the right, we have \(-\ln 2\). We conclude that

    \[1-\frac12+\frac13-\frac14+\cdots = \ln 2.\]

    Important: We stated in Key Idea 31 (in Section 8.2) that the Alternating Harmonic Series converges to \(\ln 2\), and referred to this fact again in Section 8.5. However, we never gave an argument for why this was the case. The work above finally shows how we conclude that the Alternating Harmonic Series converges to \(\ln 2\).

    We use this type of analysis in the next example.

    Example \(\PageIndex{4}\): Analyzing power series functions

    Let \(f(x) = \sum\limits_{n=0}^\infty \frac{x^n}{n!}\). Find \(f^\prime (x)\) and \(\int f(x)\ dx\), and use these to analyze the behavior of \(f(x)\).

    Solution

    We start by making two notes: first, in Example 8.6.2, we found the interval of convergence of this power series is \((-\infty,\infty)\). Second, we will find it useful later to have a few terms of the series written out:

    \[\sum\limits_{n=0}^\infty \frac{x^n}{n!} = 1 + x + \frac{x^2}2+\frac{x^3}{6} + \frac{x^4}{24} +\cdots\label{eq:ps4}\]

    We now find the derivative:

    \[\begin{align*}
    f^\prime (x) &= \sum\limits_{n=1}^\infty n\frac{x^{n-1}}{n!} \\
    &=\sum\limits_{n=1}^\infty \frac{x^{n-1}}{(n-1)!} = 1+x+\frac{x^2}{2!}+\cdots. \\
    \text{Since the series starts at \(n=1\) and each term refers to \((n-1)\),}&\text{ we can re-index the series starting with \(n=0\):} \\
    &= \sum\limits_{n=0}^\infty \frac{x^{n}}{n!}\\
    &= f(x).
    \end{align*}\]

    We found the derivative of \(f(x)\) is \(f(x)\). The only functions for which this is true are of the form \(y=ce^x\) for some constant \(c\). As \(f(0) = 1\) (see Equation \ref{eq:ps4}), \(c\) must be 1. Therefore we conclude that

    \[f(x) = \sum\limits_{n=0}^\infty \frac{x^n}{n!} = e^x\]

    for all \(x\).

    We can also find \(\int f(x)\ dx\):

    \[\begin{align*}
    \int f(x) dx &= C+\sum\limits_{n=0}^\infty \frac{x^{n+1}}{n!(n+1)} \\
    &= C+ \sum\limits_{n=0}^\infty \frac{x^{n+1}}{(n+1)!}
    \end{align*}\]

    We write out a few terms of this last series:

    \[C+ \sum\limits_{n=0}^\infty \frac{x^{n+1}}{(n+1)!} = C+ x+ \frac{x^2}2+\frac{x^3}{6}+\frac{x^4}{24}+\cdots\]

    The integral of \(f(x)\) differs from \(f(x)\) only by a constant, again indicating that \(f(x) = e^x\).

    Example 8.6.4 and the work following Example 8.6.3 established relationships between a power series function and "regular'' functions that we have dealt with in the past. In general, given a power series function, it is difficult (if not impossible) to express the function in terms of elementary functions. We chose examples where things worked out nicely.

    In this section's last example, we show how to solve a simple differential equation with a power series.\\

    Example \(\PageIndex{5}\): Solving a differential equation with a power series.

    Give the first 4 terms of the power series solution to \(y^\prime = 2y\), where \(y(0) = 1\).

    Solution

    The differential equation \(y^\prime = 2y\) describes a function \(y=f(x)\) where the derivative of \(y\) is twice \(y\) and \(y(0)=1\). This is a rather simple differential equation; with a bit of thought one should realize that if \(y=Ce^{2x}\), then \(y^\prime = 2Ce^{2x}\), and hence \(y^\prime = 2y\). By letting \(C=1\) we satisfy the initial condition of \(y(0)=1\).

    Let's ignore the fact that we already know the solution and find a power series function that satisfies the equation. The solution we seek will have the form

    \[f(x) = \sum\limits_{n=0}^\infty a_nx^n = a_0+a_1x+a_2x^2+a_3x^3+\cdots\]

    for unknown coefficients \(a_n\). We can find \(f^\prime (x)\) using Theorem 75:

    \[f^\prime (x) = \sum\limits_{n=1}^\infty a_n\cdot n\cdot x^{n-1} = a_1+2a_2x+3a_3x^2+4a_4x^3\cdots.\]

    Since \(f^\prime (x) = 2f(x)\), we have

    \[\begin{align*}
    a_1+2a_2x+3a_3x^2+4a_4x^3\cdots &= 2\big(a_0+a_1x+a_2x^2+a_3x^3+\cdots\big)\\
    &=2a_0+2a_1x+2a_2x^2+2a_3x^3+\cdots
    \end{align*}\]

    The coefficients of like powers of \(x\) must be equal, so we find that

    \[a_1 = 2a_0,\quad 2a_2 = 2a_1,\quad 3a_3 = 2a_2,\quad 4a_4 = 2a_3,\quad \text{etc.}\]

    The initial condition \(y(0) = f(0) = 1\) indicates that \(a_0 = 1\); with this, we can find the values of the other coefficients:

    \[\begin{align*}
    a_0 = 1 \text{ and } a_1=2a_0 &\Rightarrow a_1 = 2;\\
    a_1 = 2 \text{ and } 2a_2 = 2a_1 &\Rightarrow a_2=4/2 =2;\\
    a_2=2 \text{ and } 3a_3 = 2a_2 &\Rightarrow a_3=8/(2\cdot3)=4/3;\\
    a_3=4/3 \text{ and } 4a_4 = 2a_3 &\Rightarrow a_4 =16/(2\cdot3\cdot4)= 2/3.
    \end{align*}\]

    Thus the first 5 terms of the power series solution to the differential equation \(y^\prime =2y\) is

    \[f(x) = 1+ 2x+2x^2 + \frac43x^3+\frac23x^4+\cdots\]

    In Section 8.8, as we study Taylor Series, we will learn how to recognize this series as describing \(y=e^{2x}\).

    Our last example illustrates that it can be difficult to recognize an elementary function by its power series expansion. It is far easier to start with a known function, expressed in terms of elementary functions, and represent it as a power series function. One may wonder why we would bother doing so, as the latter function probably seems more complicated. In the next two sections, we show both how to do this and why such a process can be beneficial.

    Contributors and Attributions

    • Gregory Hartman (Virginia Military Institute). Contributions were made by Troy Siemers and Dimplekumar Chalishajar of VMI and Brian Heinold of Mount Saint Mary's University. This content is copyrighted by a Creative Commons Attribution - Noncommercial (BY-NC) License. http://www.apexcalculus.com/


    This page titled 8.6: Power Series is shared under a CC BY-NC 3.0 license and was authored, remixed, and/or curated by Gregory Hartman et al. via source content that was edited to the style and standards of the LibreTexts platform.