next up previous contents
Next: Roots of Equations Up: Numerical Analysis for Chemical Previous: Contents

Subsections


Modeling, Computers, and Error Analysis

Mathematical Modeling and Engineering Problem-Solving

A Simple Mathematical Model

수학적 모델이라는 것은 수학적 용어로서 물리적 자연현상의 중요한 부분을 식으로서 구성하는 것이다.

Figure 1.1: The engineering problem-solving process.
\includegraphics[scale=.5]{pic/engineering}

이러한 수학모델을에서 결과를 얻는 방법은 크게 두가지가 있다. 위 두가지 가운데 해석적 해를 얻는 방법은 다룰 수 있는 문제가 한정되어 있고 또한 대부분의 실제 문제는 비선형적이고 복잡한 과정이 포함되어 있으므로 적절하지 않다. 그러므로 수치적 해를 구할 수 밖에 없다.

Computers and Software

The Software Development Process

Algorithm Design

Program Composition

Quality Control

Approximations and Round-Off Errors

Significant Figures

Significant figure : The reliability of a numerical value

Accuracy and Precision

Error Definitions

See Figure 3.10, 3.11 and 3.12 in the textbook.

Truncation Errors and the Taylor Series

The Taylor Series

If a function $ f(x)$ can be represent by a power series on the interval $ (-a,a)$, then the function has derivative of all orders on that interval and the power series is

$\displaystyle f(x) = f(0) + f'(0)x + \frac{f''(0)}{2!}x^2 + \frac{f'''(0)}{3!}x^3 +\ldots$ (1.1)

and this power-series expansion of $ f(x)$ about the origin is called a Maclaurin series.

If the expansion is about the point $ x=a$, we have the Taylor series

$\displaystyle f(x) = f(a) + f'(a)(x-a) + \frac{f''(a)}{2!}(x-a)^2 + \frac{f'''(0)}{3!}(x-a)^3 +\ldots$ (1.2)

Taylor series specifies the value of function at one point, $ x$, in terms of the value of the function and its derivatives at a reference point, $ a$. It is occasionally useful to express a Taylor series in a notation that show how the function behaves at a distance $ h$ from a fixed point $ a$. If we call $ x=a+h$ in the preceding series, so that $ x-a=h$, we get

$\displaystyle f(a+h) = f(a) + f'(a)h + \frac{f''(a)}{2!}h^2 + \frac{f'''(0)}{3!}h^3 +\ldots$ (1.3)

Or with the substitution $ a+h \rightarrow x_{i+1}$ and $ a \rightarrow x_i$ we have an alternate form

\begin{displaymath}\begin{split}f(x_{i+1}) =& f(x_i) + f'(x_i)h + \frac{f''(x_i)...
...ldots + \frac{f^{(n)}(x_i)}{n!}(x_{i+1}-x_i)^n +R_n \end{split}\end{displaymath} (1.4)

$ R_n$ term is a reminder term to account for all terms from $ n+1$ to infinity:

$\displaystyle R_n=\frac{f^{(n+1)}(\zeta)}{(n+1)!}(x_{i+1} - x_i)^{n+1}$ (1.5)

Figure 1.2: The approximation of $ f(x)$ with various order of Taylor series.
\includegraphics[scale=.7]{pic/f1}

See Figure 4.3 in the textbook.

Using the Taylor Series to Estimate Truncation Errors

Taylor series expansion of $ v(t)$:

$\displaystyle v(t_{i+1}) = v(t_i) + v'(t_i)(t_{i+1}-t_i) + \frac{v''(t_i)}{2!}(t_{i+1}-t_i)^2 + \cdots + R_n$ (1.6)

Truncate the series after the first derivative term:

$\displaystyle v(t_{i+1}) = v(t_i) + v'(t_i)(t_{i+1}-t_i) + R_1$ (1.7)

And

$\displaystyle v'(t_i) = \frac{v(t_{i+1})-v(t_i)}{t_{i+1}-t_i} - \frac{R_1}{t_{i+1}-t_i}$ (1.8)

Truncation error is

$\displaystyle \frac{R_1}{t_{i+1}-t_i} = \frac{v''(\xi)}{2!}(t_{i+1} - t_i)$ (1.9)

or

$\displaystyle \frac{R_1}{t_{i+1}-t_i} = O(t_{i+1} - t_i)$ (1.10)

The error of our derivative approximation should be proportional to the step size. Consequently, if we halve the step size, we would expect to halve the error of the derivative.

Numerical Differentiation


next up previous contents
Next: Roots of Equations Up: Numerical Analysis for Chemical Previous: Contents
Taechul Lee
2001-11-29