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