28.01.2013 Views

Transport: Non-diffusive, flux conservative initial value problems and ...

Transport: Non-diffusive, flux conservative initial value problems and ...

Transport: Non-diffusive, flux conservative initial value problems and ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

58<br />

by a truncated Taylor’s series. For example a second order quadratic polynomial<br />

f(x) = ax 2 + bx + c can be described exactly with a Taylor series that contains<br />

only up to second derivatives (all third derivatives <strong>and</strong> higher are zero). What does<br />

this buy us? Fortunately, we also know (thanks to M. Lagrange) that given any N<br />

points y1 = f(x1),y2 = f(x2),... ,yN = f(xN), there is a unique polynomial of<br />

order N − 1 that passes exactly through those points, i.e.<br />

P(x) = (x − x2)(x − x3)...(x − xN)<br />

(x1 − x2)(x1 − x3)... (x1 − xN) y1+<br />

(x − x1)(x − x3)...(x − xN)<br />

(x2 − x1)(x2 − x3)... (x2 − xN) y2 + ...<br />

+ (x − x1)(x − x2)... (x−xN−1)<br />

(xN − x1)(xN − x2)...(xN − xN−1) yN<br />

(5.3.9)<br />

which for any <strong>value</strong> of x gives the polynomial interpolation that is simply a weighting<br />

of the <strong>value</strong> of the functions at the N nodes y1...N . Inspection of Eq. (5.3.9)<br />

also shows that P(x) is exactly yi at x = xi. P(x) is the interpolating polynomial,<br />

however, given P(x), all of its derivatives are also easily derived for any x between<br />

x1 <strong>and</strong> xN 1 These derivatives however will also be exact weightings of the known<br />

<strong>value</strong>s at the nodes. Thus up to N − 1-th order differences at any point in the<br />

interval can be immediately determined.<br />

f(x)<br />

3.0<br />

2.5<br />

2.0<br />

1.5<br />

1.0<br />

0.0 0.5 1.0<br />

x<br />

1.5 2.0<br />

Figure 5.2: The second order interpolating polynomial that passes through the three points<br />

(0∆x, 1), (1∆x, 2.5), (2∆x, 2)<br />

As an example, Fig. 5.2 shows the 2nd order interpolating polynomial that<br />

goes through the three equally spaced points (0∆x,1), (1∆x,2.5), (2∆x,2) where<br />

1 The derivatives <strong>and</strong> the polynomial are actually defined for all x however, while interpolation is<br />

stable, extrapolation beyond the bounds of the known points usually highly inaccurate <strong>and</strong> is to be<br />

discouraged.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!