1. Mathematical Preliminaries

1.1 Concept introduction

1.1.1 Equivalent description

  • Numerical analysis
  • Numerical Methods or Computational Methods
  • Numerical Mathematics
  • Numerical Computing
  • Scientific Computing

1.1.2 Main Contents

  • Methods using computer to solve mathematical problems in science and engineering, which mostly are continuous.
  • design and analysis of algorithms for different mathematical problems.
  • Theory and Application of Numerical Approximation Techniques.

1.1.3 Reason for learning

With the fast development of PC techniques, many mathematical problems arising in the science and engineering, such as derivatives (导数)、integrals (积分)、nonlinearities (非线性)、Linear Algebra problems (线性代数问题)、differential equations (微分方程) is possible to be solved.

Deals continuous quantities with numerical approximate techniques and considers effects of approximations, such as error (误差), convergence (收敛), uniqueness (唯一性), existence (存在性).

Assessment on algorithm: efficiency, reliability, accuracy, etc.

1.1.4 Book content

  1. Approximation Methods for solving equation(s)
  2. Polynomial (多项式) and interpolation approximation (插值逼近)
  3. Numerical Differentiation and Integration
  4. Numerical methods for ODE and PDE
  5. Eigenvalues and Eigenvectors

1.1.5 Steps for solving

  1. Mathematical modeling, usually equations (方程).
  2. Design algorithms to solve these equations.
  3. Implement algorithms in computer software and run.
  4. Represent the computed results in forms or graphical visualization.
  5. Interpret and validate (解释和验证) the computed results.

summary: MAIRI

1.2 Calculus Review

1.2.1 Limit of a Function

Definition

Let ff be a function defined on a set X of real numbers. Then ff has the limit L at x0x_0, written as

limxx0f(x)=L, \lim_{x \rightarrow x_0} f(x)=L,

if, given any real number ε>0\varepsilon>0, there exists a real number ξ>0\xi>0 such that

f(x)L<ε |f(x)-L|<\varepsilon

whenever xXx\in X and 0<xx0<ξ0<|x-x_0|<\xi.

1.2.2 Continuous of a Function

Condition

Let ff be a function defined on a set X of real numbers and x0Xx_0 \in X.

Theorem

Then ff is continuous at x0x_0 if

limxx0f(x)=f(x0). \lim_{x\rightarrow x_0} f(x)=f(x_0 ).

Extended Theorem

The function ff is continuous on the set X if it is continuous at each number in X.

Definition of C(X)C(X)

Let C(X)C(X) denote the set of all functions that are continuous on the set X.

1.2.3 Limit of a Sequence

Difinition

Let {xn}n=1\{x_n\}_{n=1}^{\infty} be an infinite sequence of real or complex number. The sequence converges to a number xx (Limit) if, for any $\varepsilon >0 $, there exists a positive integer N(ε)N(\varepsilon), such that implies

xnx<ε, |x_n-x|<\varepsilon,

whenever n>N(ϵ)n>N(\epsilon).

Extended Theorem(Obviously)

If ff is a function defined on a set of real numbers and x0Xx_0\in X, then the following statements are equivalent:

  1. f is continuous at x0x_0
  2. if {xn}n=1\{x_n\}_{n=1}^\infty is any sequence in X converging to x0x_0, then limnf(xn)=f(x0)\lim_{n\rightarrow\infty}f(x_n)=f(x_0).

1.2.4 Derivative of a Function

Definition

If ff is a function defined in an open interval (开区间) containing x0x_0, the ff is differentiable at x0x_0, if
f(x0)=limxx0f(x)f(x0)xx0 f'(x_0) =\lim_{x\rightarrow x_0 }\displaystyle\frac{f(x)-f(x_0) }{x-x_0 }
exists.

Remark

The number $f’(x_0) $ is called the derivative of f(x)f(x) at x0x_0.

Cn(X)C^n(X) denote the set of all functions that have nn continuous derivatives on XX.

Especially $C^\infty(X) $ denote the set of all functions that have derivatives of all orders on X.

Extended Theorem

If the function ff is differentiable at x0x_0, the ff is continuous at x0x_0.

Rolle’s Theorem(罗尔定理)

Suppose fC[a,b]f\in C[a,b] and ff is differentiable on (a,b)(a,b).

If f(a)=f(b)=0f(a)=f(b)=0, then a number cc in (a,b)(a,b) exists with f(c)=0f'(c)=0.

1.2.5 Mean Value Theorem

Suppose fC[a,b]f\in C[a,b] and ff is differentiable on (a,b)(a,b), then a number cc in (a,b)(a,b) exists with

f(c)=f(b)f(a)ba f'(c)=\displaystyle\frac{f(b)-f(a)}{b-a}

1.2.6 Extreme Value Theorem

If fC[a,b]f\in C[a,b], then c1,c2[a,b]c_1,c_2\in[a,b] exist with f(c1)f(x)f(c2)f(c_1)\leq f(x)\leq f(c_2) for each x[a,b]x\in [a,b].

If, in addition, ff is differentiable on (a,b)(a,b), then the numbers c1c_1 and c2c_2 (Extreme Value) occur either at the endpoints of [a,b][a,b] or where ff' is zero.

1.2.7 Riemann Integral

Definition

The Riemann Integral of a function on an interval [a,b][a,b] is the following limit, provided it exits:

abf(x)dx=limmaxΔxi0i=1nf(zi)Δxi, \int_a^b f(x)dx=\lim_{max\Delta x_i\rightarrow0}\sum_{i=1}^nf(z_i)\Delta x_i,

where the numbers x0,x1,x2,...,xnx_0,x_1,x_2,...,x_n satisfy a=x0x1x2...xn=ba=x_0\leq x_1\leq x_2\leq ...\leq x_n=b, and where Δxi=xixi1\Delta x_i=x_i-x_{i-1} for each i=1,2,...,ni=1,2,...,n and ziz_i is an arbitrarily chosen in the interval [xi1,xi][x_{i-1},x_i].

Remark

Especially, if we choose zi=xiz_i=x_i and Δxi=ban\Delta x_i=\displaystyle\frac{b-a}{n}, then in this case

abf(x)dx=limnbani=1nf(xi). \int_a^bf(x)dx=\lim_{n\rightarrow\infty}\displaystyle\frac{b-a}{n}\sum_{i=1}^nf(x_i).

1.2.8 Weighted Mean Value Theorem for the Integral(Importent)

Definition

If fC[a,b]f\in C[a,b], the Riemann Integral of gg exists on the [a,b][a,b], and g(x)g(x) does not change sign on [a,b][a,b], then there exists a number in (a,b)(a,b) with
abf(x)g(x)dx=f(c)abg(x)dx. \int_a^bf(x)g(x)dx=f(c)\int_a^bg(x)dx.

Remark

When g(x)1g(x)\equiv 1, this theorem give the average value of the function ff over the interval [a,b][a,b].

f(c)=1baabf(x)dx f(c)=\displaystyle\frac{1}{b-a}\int_a^bf(x)dx

1.2.9 Generalized Rolle’s Theorem

Definition

Suppose fC[a,b]f\in C[a,b] is nn times differentiable on (a,b)(a,b). If f(x)f(x) is zero at the n+1n+1 distinct numbers x0,x1,x2,...xnx_0,x_1,x_2,...x_n in the [a,b][a,b], then a number cc in the (a,b)(a,b) exists with

f(n)(c)=0. f^{(n)}(c)=0.

Simple Provement

Applying Rolle’s theorem n times, leaving two zero points in the end.

1.2.10 Intermediate Value Theorem

If fC[a,b]f\in C[a,b] and KK is any number between f(a)f(a) and f(b)f(b), then there exists a number cc in (a,b)(a,b) for which f(c)=Kf(c)=K.

1.2.11 Taylor’s Theorem

Suppose fCn[a,b]f\in C^n [a,b], that f(n+1)f^{(n+1)} exists on [a,b][a,b], and x0[a,b]x_0\in[a,b]. For every x[a,b]x\in [a,b] there exists a number ξ(x)\xi(x) between x0x_0 and xx with f(x)=Pn(x)+Rn(x)f(x)=P_n(x)+R_n(x), where

Pn(x)=f(x0)+f(x0)(xx0)+f(x0)2!(xx0)2+...+fn(x0)n!(xx0)nPn(x)=k=0nfk(x0)k!(xx0)k P_n(x)=f(x_0)+f'(x_0)(x-x_0)+\displaystyle\frac{f''(x_0)}{2!}(x-x_0)^2+...+\displaystyle\frac{f^n(x_0)}{n!}(x-x_0)^n\\ P_n(x)=\sum_{k=0}^n\displaystyle\frac{f^k(x_0)}{k!}(x-x_0)^k

and

Rn(x)=f(n+1)(ξ(x))(n+1)!(xx0)n+1. R_n(x)=\displaystyle\frac{f^{(n+1)}(\xi(x))}{(n+1)!}(x-x_0)^{n+1}.

1.3 Roundoff Errors in Computer

1.3.1 Roundoff Error

Binary Floating Arithmetic Standard 754-1985

Format: single, double, or extended precision

Representation: sign(s-1) + characteristic(c-11) + mantissa(f-52)

form: (1)s2c1023(1+f)(-1)^s2^{c-1023}(1+f)

Example

数值计算详细笔记(一):基础数学知识回顾

Underflow

Number less than 21023(1+252)2^{-1023}*(1+2^{-52}), cause to zero.

Overflow

Number greater than 21024(2252)2^{1024}*(2-2^{-52}), cause to halt.

Normalized decimal floating-point form

±0.d1d2...dk10n \pm0.d_1d_2...d_k*10^n

where 1d191\leq d_1\leq 9, and 0di90\leq d_i\leq 9 for each i=1,2,...,ki=1,2,...,k.

Numbers of this form are called k-digit decimal machine numbers.

The left digits dk+1dk+2...d_{k+1}d_{k+2}... can be treated by chopping (截断) or rounding(舍入)methods.

1.3.2 Measurement of Error

Absolute and Relative Error

If pp^* is an approximation to pp, the absolute error is |p-p^*|, and the relative error is ppp\displaystyle\frac{|p-p^*|}{|p|}, provided that p0p\not=0.

Approximate pp to tt significant digit

The number pp^* is said to approximate pp to tt significant digit if tt is the largest nonnegative integer for which

ppp<510t. \displaystyle\frac{|p-p^*|}{|p|}<5*10^{-t}.

1.3.3 Growth of Error

Prerequisite variables

E0E_0: an initial error

EnE_n: the magnitude of an error after nn subsequent operations.

Linear Growth

If EnCnE0E_n\approx C*n*E_0, where CC is a constant independent of nn.

Exponential Growth

If EnCnE0E_n \approx C^n*E_0, for some C>1C>1.

1.3.4 Propagation of Error

p^,q^\hat{p},\hat{q}: the approximate value of p,qp,q.
εp,εq\varepsilon_p,\varepsilon_q: the error of p,qp,q.

Addition

p+q=(p^+εp)+(q^+εq)=(p^+q^)+(εp+εq)p+q=(\hat{p}+\varepsilon_p)+(\hat{q}+\varepsilon_q)=(\hat{p}+\hat{q})+(\varepsilon_p+\varepsilon_q)

Multiplication

pq=(p^+εp)(q^+εq)=p^q^+p^εq+q^εq+εpεqp*q=(\hat{p}+\varepsilon_p)*(\hat{q}+\varepsilon_q)=\hat{p}*\hat{q}+\hat{p}*\varepsilon_q+\hat{q}*\varepsilon_q+\varepsilon_p*\varepsilon_q

Division

pqp^q^=p^+εpq^+εqp^q^=q^εpp^εqq^(q^+εq)\displaystyle\frac{p}{q}-\displaystyle\frac{\hat{p}}{\hat{q}}=\displaystyle\frac{\hat{p}+\varepsilon_p}{\hat{q}+\varepsilon_q}-\displaystyle\frac{\hat{p}}{\hat{q}}=\displaystyle\frac{\hat{q}*\varepsilon_p-\hat{p}*\varepsilon_q}{\hat{q}*(\hat{q}+\varepsilon_q)}

1.4 Algorithms and Convergence

1.4.1 Basic Definitions

Algorithm

an algorithm is a procedure that describes, in an unambiguous or clear manner, a finite sequence of steps to be performed in a specified order.

Key Techniques for Algorithm

looping and condition-control method

Description

pseudo-code (伪代码) method.

1.4.2 Some Important Concepts

Stable

An algorithm is said to be stable imply that small changes in the initial data can produce correspondingly small changes in final results.

Conditionally Stable

Algorithm is stable only for certain choices of initial data.

1.4.3 Rate of Convergence

Definition

Suppose that

limh0G(h)=0 \lim_{h\rightarrow 0} G(h) = 0

and

limh0F(h)=L. \lim_{h\rightarrow 0} F(h) = L.

If a positive constant KK exists with

F(h)LKG(h), |F(h)-L|\leq K*|G(h)|,

for sufficient small hh, then we write

F(h)=L+O(G(h)). F(h)=L+O(G(h)).

Example

Using Taylor formula with sufficient small hh, we have

cos(h)=112h2+124h4cos(ξ(h)) \cos(h)=1-\displaystyle\frac{1}{2}*h^2+\displaystyle\frac{1}{24}*h^4*\cos(\xi(h))

since

cos(h)+12h21=124h4cos(ξ(h))124h4, |\cos(h)+\displaystyle\frac{1}{2}*h^2 -1|=|\displaystyle\frac{1}{24}*h^4*\cos(\xi(h))|\leq \displaystyle\frac{1}{24}*h^4,

so

cos(h)+12h2=1+O(h4). \cos(h)+\displaystyle\frac{1}{2}*h^2=1+O(h^4).

1.4.4 Well-Posed or Ill-posed Problem

Definition

A mathematical Problem is said to be well-posed if a solution

  1. exists,
  2. is unique,
  3. depends continuously on problem data.

Otherwise, problem is ill-posed.

Remarks

  1. Generally, the image of a function f(x)f(x) is continuous and the solution for f(x)=yf(x)=y exists and is unique.
  2. Even if problem is well posed, solution may still be sensitive to input data. (Data changes a little, result changes a lot)
  3. Computational algorithm should not make sensitivity worse.

1.4.5 Approximation of Solution

  1. True value usually unknown, so we estimate or bound error rather than compute it exactly.

  2. Relative error often has taken relative to approximate value, rather than the (unknown) true value.

相关文章: