28.02.2013 Views

fundamentals of engineering supplied-reference handbook - Ventech!

fundamentals of engineering supplied-reference handbook - Ventech!

fundamentals of engineering supplied-reference handbook - Ventech!

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.

Numerical Integration<br />

Three <strong>of</strong> the more common numerical integration algorithms used to evaluate the integral<br />

are:<br />

∫ b<br />

a<br />

f<br />

( x)<br />

dx<br />

Euler's or Forward Rectangular Rule<br />

b<br />

a<br />

Trapezoidal Rule<br />

for n = 1<br />

for n > 1<br />

∫<br />

f<br />

n−1<br />

( x)<br />

dx ≈ ∆x<br />

f ( a + k x)<br />

∑ ∆<br />

k = 0<br />

( a)<br />

f ( b)<br />

b ⎡ f + ⎤<br />

∫a f ( x)<br />

dx ≈ ∆x⎢<br />

⎥<br />

⎣ 2 ⎦<br />

∆ ⎡<br />

−<br />

b x<br />

n 1<br />

⎤<br />

∫a f ( x)<br />

dx ≈<br />

⎢<br />

f ( a)<br />

+ 2 ∑ f ( a + k∆x)<br />

+ f ( b)<br />

2 ⎣<br />

⎥ k = 1<br />

⎦<br />

Simpson's Rule/Parabolic Rule (n must be an even integer)<br />

for n = 2<br />

for n ≥ 4<br />

b ⎛ b − a ⎞⎡<br />

⎛ a + b ⎞ ⎤<br />

∫a f ( x)<br />

dx ≈ ⎜ ⎟⎢<br />

f ( a)<br />

+ 4 f ⎜ ⎟ + f ( b)<br />

⎥<br />

⎝ 6 ⎠⎣<br />

⎝ 2 ⎠ ⎦<br />

( x)<br />

⎡<br />

⎢<br />

f<br />

∆x<br />

dx ≈ ⎢<br />

3 ⎢<br />

+<br />

⎢⎣<br />

b<br />

∫a f<br />

−1<br />

with ∆x = (b – a)/n<br />

( ) ( )<br />

( ) ( ) ⎥<br />

⎥ ⎥⎥<br />

a + 2 ∑ f a + k∆x<br />

k = 2,<br />

4,<br />

6,<br />

…<br />

n<br />

4 f a + k x + f b<br />

∑ ∆<br />

k = 1,<br />

3,<br />

5,<br />

…<br />

n−2<br />

n = number <strong>of</strong> intervals between data points<br />

⎤<br />

⎦<br />

Numerical Solution <strong>of</strong> Ordinary Differential Equations<br />

Euler's Approximation<br />

Given a differential equation<br />

dx/dt = f (x, t) with x(0) = xo<br />

At some general time k∆t<br />

x[(k + 1)∆t] ≅ x(k∆t) + ∆t f [x(k∆t), k∆t]<br />

which can be used with starting condition xo to solve recursively for x(∆t), x(2∆t), …, x(n∆t).<br />

The method can be extended to nth order differential equations by recasting them as n first-order equations.<br />

In particular, when dx/dt = f (x)<br />

x[(k + 1)∆t] ≅ x(k∆t) + ∆tf [x(k∆t)]<br />

which can be expressed as the recursive equation<br />

xk + 1 = xk + ∆t (dxk / dt)<br />

14<br />

MATHEMATICS (continued)

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

Saved successfully!

Ooh no, something went wrong!