Return to computing page for the first course APMA0330
Return to computing page for the second course APMA0340
Return to computing page for the fourth course APMA0360
Return to Mathematica tutorial for the first course APMA0330
Return to Mathematica tutorial for the second course APMA0340
Return to Mathematica tutorial for the fourth course APMA0360
Return to the main page for the first course APMA0330
Return to the main page for the second course APMA0340
Return to the main page for the fourth course APMA0360
Return to Part II of the course APMA0360
Introduction to Linear Algebra with Mathematica
However, the equal sign undoubtedly originates from a time when the true
nature of a limit process was not clearly understood. Hence, we prefer to use tilde (∼) instead of equal sign (=) in the right-hand side to signify that the equal
sign does not mean really "equal," but has to be understood as
"as nearly equal as we wish:"
\[
\sum_{n\ge 0} a_n \sim L \qquad\mbox{or} \qquad L \sim \sum_{n= 0}^{\infty} a_n .
\]
We say that \( \sum_{n\ge 0} a_n \) converges absolutely if \( \sum_{n\ge 0} \vert a_n \vert \) converges. In case \( \sum_{n\ge 0} a_n \) converges, but does not converge absolutely, we say that \( \sum_{n\ge 0} a_n \) converges conditionally or is conditionally convergent. Note that absolute convergence implies convergence,
but that the converse fails.
Theorem 1:
If 𝑎n is approaching 0 monotonically, then the following estimate holds
Bernhard Riemann proved that a conditionally convergent series may be rearranged to converge to any value at all, including ∞ or −∞ (see Riemann series theorem).
Therefore, numerical evaluation of a conditionally convergent series is an ill-posed problem that usually requires a regularization. For instance, your computer evaluates trigonometric functions using Padé approximations but not alternating Taylor series
\[
\sin x = \sum_{k\ge 0} (-1)^k \frac{x^{2k+1}}{(2k+1)!} , \qquad \cos x = \sum_{k\ge 0} (-1)^k \frac{x^{2k}}{(2k)!} .
\]
Despite Mathematica "knows" the limit to be ln(2), we are unable
to tell what the limit of the infinite sequence (1.1) will be because it is an irrational number. We can approximate this limit by rational partial sums with arbitrary accuracy, but we have no way of defining this irrational number by a finite construction
that would not involve a limit process.
Since series (1.1) does not converge absolutely, we can rearrange the terms to obtain a series for ½ln(2):
A function f(x) is continuous in a closed domain if, given any ε > 0, there exists a δ > 0
such that |f(x) − f(ζ)| < ε for all |x − ζ| < δ in the domain.
An equivalent definition is that f(x) is continuous in a closed domain if
\[
\lim_{\zeta\to x} f(\zeta ) = f(x)
\]
for all |x in the domain.
Consider a series in which the terms are functions of x, > \( \displaystyle \sum_{n\ge 0} a_n (x) . \)
The series is convergent in a
domain if the series converges for each point x in the domain. We can then define the function \( \displaystylef(x) = \sum_{n\ge 0} a_n (x) . \)
We can state the convergence criterion as: For any given ε > 0, there exists a function N(x) such that
for all x in the domain. Note that the rate of convergence, i.e., the number of terms, N(x) required for for the absolute
error to be less than ε, is a function of x.
The expression \( A_N = \sum_{n= 0}^N a_n \) is called the N-th partial sum (however, it is more common apply this definition to sums that start from 1, as \( A_N = \sum_{n= 1}^N a_n \) ).
Lemma 1: (Summation by parts)
For 1 ≤ j ≤ N, consider complex or real numbers
𝑎j and bj, with \( B_N = \sum_{n= 1}^N b_n . \) Then
Corollary 1:
Suppose 𝑎n → 0 and that
\( \sum_{n\ge 0} \left\vert a_{n+1} - a_n \right\vert \) converges. Assume also that the sequence { BN } of partial sums is bounded. Then \( \sum_{n\ge 0} a_{n} b_n \) converges.
Corollary 2:
Suppose 𝑎n decreases monotonically to 0. Then
\( \sum_{n\ge 0} (-1)^n a_n \) converges.
Suppose { fn } is a sequence of continuous functions on
[0, 1] (it can be any finite interval not necessarily [0, 1]). We assume that \( \lim_{n \to \infty} f_n (x) = f(x) \) exists for every x∈[0, 1], and inquire as to the nature of the limiting function f(x).
If we suppose that the convergence is uniform, matters are straight-forward and
f is then everywhere continuous. However, once we drop the assumption of uniform convergence, things may change radically and the issues that arise can be quite subtle. An example of this is given by the fact that one can construct a sequence of continuous functions { fn(x) }
converging everywhere to f(x) so that it is not Riemann integrable. So the relation
Consider a series in which the terms are functions of x, > \( \displaystyle \sum_{n\ge 0} a_n (x) \)
that is convergent in some domain. If the rate of convergence
is independent of x, then the series is said to be uniformly convergent. Stating this a little more mathematically, the
series is uniformly convergent in the domain if for any given ε > 0 there exists an N, independent of x, such that
There are known some tests that guarantee uniform convergence of a series.
Weierstrass M-test:
The series \( \displaystyle \sum_{n\ge 0} a_n (x) \) is uniformly and absolutely convergent in a domain if there exists a convergent series of positive terms \( \displaystyle \sum_{n\ge 0} M_n \) such that \( \displaystyle \left\vert a_n (x) \right\vert \le M_n . \)
The Weierstrass M-test first implies that the series is absolutely
convergent for all x in the domain. The condition |𝑎n(x)| ≤ Mn also ensures that the rate of convergence is independent
of x, which is the criterion for uniform convergence
Note that absolute convergence and uniform convergence are independent. A series of functions may be absolutely
convergent without being uniformly convergent or vice versa. The Weierstrass M-test is a sufficient but not a necessary
condition for uniform convergence. The Weierstrass M-test can succeed only if the series is uniformly and absolutely
convergent.
Dirichlet test:
Consider a sequence of monotone decreasing, positive constants cn with limit zero. If all the partial
sums of 𝑎n(x) are bounded in some closed domain, that is
for all N, then \( \displaystyle \sum_{n\ge 0} c_n a_n (x) \) is uniformly convergent in that closed domain.
Note that the Dirichlet test does not
imply that the series is absolutely convergent.
Example 3:
Consider the series
\[
\sum_{n\ge 1} \frac{\sin (nx)}{n} .
\]
We cannot use the Weierstrass M-test to determine if the series is uniformly convergent on an interval. While it is easy
to bound the terms with |sin(nx)| ≤ 1/n. the corresponding harmonic series Σn−1 diverges.
Thus, we will try the Dirichlet test. Consider the sum
Obviously, the sum is zero when x = 2&pik, k ∈ ℤ.
The partial sums have infinite discontinuities at x = 2πk. The partial sums are bounded on any closed interval
that does not contain an integer multiple of 2π. By the Dirichlet test, the sum \( \displaystyle \sum_{n\ge 1} \frac{\sin (nx)}{n}
is uniformly convergent
on any such closed interval. The series may not be uniformly convergent in neighborhoods of x = 2πk.
Consider a series \( \displaystyle f(x) = \sum_{n\ge 0} a_n (x) \)
that is uniformly convergent in some domain and whose terms 𝑎n(x) are continuous
functions. Since the series is uniformly convergent, for any given positive ε there exists an N such that | RNx
in the domain.
Osler, T.J., A remarkable formula for approximating the sum of alternating series, The Mathematical Gazette, 2009, Vol. 93, No. 526, pp. 76--82.
Phulip, J.R., The convergence and partial convergence of alternating series, Mathematics of Computations, 1980, Vol. 35, N. 151l pp. 907--916.
Return to computing page for the first course APMA0330
Return to computing page for the second course APMA0340
Return to computing page for the fourth course APMA0360
Return to Mathematica tutorial for the first course APMA0330
Return to Mathematica tutorial for the second course APMA0340
Return to Mathematica tutorial for the fourth course APMA0360
Return to the main page for the course APMA0330
Return to the main page for the course APMA0340
Return to the main page for the course APMA0360
Introduction to Linear Algebra with Mathematica