Skip to content

Math Review Week 8

Highlights of what I (re)learned in week #8 of my math studies.

  • Alternating Series Remainder
  • Maclaurin Polynomials
  • Taylor Polynomials
  • Lagrange Error Bound

Alternating Series Remainder

Consider the following alternating series:

\[ S = \sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{n^2} = 1 - \frac{1}{4} + \frac{1}{9} - \frac{1}{16} + \frac{1}{25} - \frac{1}{36} + \frac{1}{49} - \frac{1}{64} +- \cdots \]
\[ S_4 = 1 - \frac{1}{4} + \frac{1}{9} - \frac{1}{16} \text{ and } R_4 = (\frac{1}{25} - \frac{1}{36}) + (\frac{1}{49} - \frac{1}{64}) +- \cdots \]
\[ S = \frac{115}{144} + R_4 \]

Since each pair in \(R_4\) is positive, then \(R_4 > 0\). We can show that \(R_4 < \frac{1}{25}\) by rewriting as:

\[ R_4 = \frac{1}{25} - (\frac{1}{36} - \frac{1}{49}) - (\frac{1}{64} - \frac{1}{81}) - \cdots \]

since we're starting with \(\frac{1}{25}\) and subtracting positive values from it.

The magnitude of the error (i.e. \(|S - S_4|\)) will be less than the magnitude of the first term excluded from the partial sum. In other words:

\[ \frac{115}{144} < S < \frac{115}{144} + \frac{1}{25} \]

Maclaurin Polynomials

If we attempt to form a polynomial, \(p\), to approximate a function, \(f\), let's first ensure \(p(0) = f(0)\). A polynomial of a single (constant) term that satisfies this is: \(p(x) = f(0)\).

If we add another constraint of \(p'(0) = f'(0)\), a polynomial that satisfies both constraints is \(p(x) = f(0) + f'(0)x\).

The general form of terms for the Maclaurin series is the following, where \(f^n\) represents the nth derivative of \(f\):

\[ \frac{f^n(0)}{n!} \cdot x^n \]

Taylor Polynomials

Taylor polynomials are centered around \(c\) instead of zero. The terms are:

\[ \frac{f^n(c)}{n!} \cdot (x-c)^n \]

Lagrange Error Bound

\(P_{N,a}(x)\) means Nth degree Tylor polynomial centered at \(a\). For example:

\[ P_{N,a}(x) = f(a) + \frac{f'(a)}{1!}(x-a) + \frac{f''(a)}{2!}(x-a)^2 + \frac{f'''(a)}{3!}(x-a)^3 + \cdots \]
\[ P'_{N,a}(x) = f'(a) + \frac{f''(a)}{1!}(x-a) + \frac{f''(a)}{2!}(x-a)^2 + \frac{f'''(a)}{3!}(x-a)^3 + \cdots \]

The remainder, \(R_{N,a}(x)\), or error, \(E_{N,a}(x) = f(x) - P_{N,a}(x)\).

\[ E_{N,a}(a) = f(a) - P_{N,a}(a) = 0 \]
\[ E'_{N,a}(a) = f'(a) - P'(a) = 0 \]
\[ E''_{N,a}(a) = f''(a) - P''(a) = 0 \]
\[ E^N(a) = f^N(a) = P^N(a) = 0 \]
\[ \text{etc.} \]

\(E^{N+1}(x) = f^{N+1}(x) - P_{N,a}^{N+1}(x) = f^{N+1}(x)\), since the (N+1)th derivative of an Nth degree polynomial is zero.

For some \(b > a\), we want to bound \(|E(b)| \le k\)

If we can bound \(\boxed{|f^{N+1}(x)| \le M \text{ over some interval }x \in [a, b]}\) we can do some integration to bound \(|E(b)|\).

\[ |\int{E^{N+1}(x)}\; dx| \le \int{|E^{N+1}(x)|}\; dx \le \int{M}\; dx \]

or

\[ |E^N(x)| \le M\cdot x + C \]

choose \(C\) to be \(-Ma\) since \(|E^N(a)| = 0 \le Ma + C => -Ma \le C\)

\[ |E^N(x)| \le M(x-a) \]

continue to integrate repeatedly:

\[ |E(x)| \le \frac{M(x-a)^{n+1}}{(n+1)!} \]

substituting \(b\) for \(x\):

\[ \boxed{|E(b)| \le \frac{M(b-a)^{n+1}}{(n+1)!}} \]