Docsity

Math & Numerical Analysis: Sequences, Functions, & Iterative Methods, Study notes of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
Jim Lambers
Math 105A
Summer Session I 2003-04
Lecture 1 Examples
These examples correspond to Section 1.1 in the text.
Example Let the sequence {fn}∞
n=1 be defined by fn= 1/n for every positive integer n. Then
lim
n→∞ fn= 0,
since for any > 0, no matter how small, we can find a positive integer n0such that |fn|< for
all n≥n0. In fact, for any given , we can choose n0=d1/e, where dxe, known as the ceiling
function, denotes the smallest integer that is greater than or equal to x.2
Example In your calculus course, it is likely that on at least one occasion you had to solve a
problem involving a function T(t) that described the temperature at time t. In a “real-world”
application, such a function would not be described by a formula such as T(t) = e−kt as in a
calculus course. Instead, it would be described by a set of points (tk, T (tk)) for k= 1,2, . . . , n, for
some positive integer n, where T(tk), for each k, would be obtained by measuring the temperature
at time tk.
In numerical analysis, one would typically try to construct a continuous function that, in some
sense, “fits” the given data. Then, the temperature at other times can be determined, at least
approximately, by evaluating this continuous function at these times. The process of inferring the
value of a function at a point x∗based on its values at select points x1, . . . , xnis called interpolation
when x∗lies within the interval spanned by x1, . . . , xn, whereas it is called extrapolation otherwise.
Once such a continuous function is constructed based on the given data, one can use it to
obtain approximate solutions to problems such as determining when the temperature reaches a
certain value, such as the boiling point or freezing point, or computing the rate of change of the
temperature at a particular point in time. 2
Example Newton’s Method for solving the equation f(x) = 0 is an example of an iterative method
that generates a sequence of approximate solutions {xn}∞
n=0 that, ideally, has a limit x∗as n→ ∞
that represents the exact solution. Newton’s method generates this sequence by requiring that
the initial approximation x0be chosen, and then computing subsequent approximations using the
formula
xn+1 =xn−f(xn)
f0(xn), n = 0,1,2, . . .
We will see that while the sequence {xn}does not always have a limit, it typically converges to the
limit very rapidly when the limit does exist. This is important because in a practical application,
it is of little use to know that a sequence of approximations {xn}has a limit that is the exact
1
pf2

Partial preview of the text

Download Math & Numerical Analysis: Sequences, Functions, & Iterative Methods and more Study notes Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

Jim Lambers Math 105A Summer Session I 2003- Lecture 1 Examples

These examples correspond to Section 1.1 in the text.

Example Let the sequence {fn}∞ n=1 be defined by fn = 1/n for every positive integer n. Then

lim n→∞ fn = 0,

since for any  > 0, no matter how small, we can find a positive integer n 0 such that |fn| <  for all n ≥ n 0. In fact, for any given , we can choose n 0 = d 1 /e, where dxe, known as the ceiling function, denotes the smallest integer that is greater than or equal to x. 2

Example In your calculus course, it is likely that on at least one occasion you had to solve a problem involving a function T (t) that described the temperature at time t. In a “real-world” application, such a function would not be described by a formula such as T (t) = e−kt^ as in a calculus course. Instead, it would be described by a set of points (tk, T (tk)) for k = 1, 2 ,... , n, for some positive integer n, where T (tk), for each k, would be obtained by measuring the temperature at time tk. In numerical analysis, one would typically try to construct a continuous function that, in some sense, “fits” the given data. Then, the temperature at other times can be determined, at least approximately, by evaluating this continuous function at these times. The process of inferring the value of a function at a point x∗^ based on its values at select points x 1 ,... , xn is called interpolation when x∗^ lies within the interval spanned by x 1 ,... , xn, whereas it is called extrapolation otherwise. Once such a continuous function is constructed based on the given data, one can use it to obtain approximate solutions to problems such as determining when the temperature reaches a certain value, such as the boiling point or freezing point, or computing the rate of change of the temperature at a particular point in time. 2

Example Newton’s Method for solving the equation f (x) = 0 is an example of an iterative method that generates a sequence of approximate solutions {xn}∞ n=0 that, ideally, has a limit x∗^ as n → ∞ that represents the exact solution. Newton’s method generates this sequence by requiring that the initial approximation x 0 be chosen, and then computing subsequent approximations using the formula

xn+1 = xn − f (xn) f ′(xn)

, n = 0, 1 , 2 ,...

We will see that while the sequence {xn} does not always have a limit, it typically converges to the limit very rapidly when the limit does exist. This is important because in a practical application, it is of little use to know that a sequence of approximations {xn} has a limit that is the exact

solution, if one must compute xn for a very large value of n to get an approximation that is reasonably accurate, because from a computational standpoint this is very expensive. 2

Example The functions f (x) = |x| and g(x) = x^1 /^3 are examples of functions that are continuous for all x, but are not differentiable at x = 0. The graph of the absolute value function |x| has a sharp corner at x = 0, since the one-sided limits

lim h→ 0 −

f (h) − f (0) h = − 1 , lim h→ 0 +

f (h) − f (0) h

do not agree, but in general these limits must agree in order for f (x) to have a derivative at x = 0. The cube root function g(x) = x^1 /^3 is not differentiable at x = 0 because the tangent line to the graph at the point (0, 0) is vertical, so it has no finite slope. We can also see that the derivative does not exist at this point by noting that the function g′(x) = (1/3)x−^2 /^3 has a vertical asymptote at x = 0. 2

Example Let f (x) be continuous on the interval [a, b]. Then, for any x ∈ [a, b], by the Weighted Mean Value Theorem, we have

∫ (^) x

a

f (s)(s − a) ds = f (c)

∫ (^) x

a

(s − a) ds = f (c) (s − a)^2 2

x

a

= f (c) (x − a)^2 2

where a < c < x. It is important to note that we can apply the Weighted Mean Value Theorem because the function g(x) = (x − a) does not change sign on [a, b]. 2