• Tidak ada hasil yang ditemukan

Calculus (I)

N/A
N/A
Protected

Academic year: 2024

Membagikan "Calculus (I)"

Copied!
37
0
0

Teks penuh

(1)

Calculus (I)

WEN-CHING LIEN

Department of Mathematics National Cheng Kung University

2008

WEN-CHINGLIEN Calculus (I)

(2)

8.7 Numerical Integration

(1) The Midpoint Rule

Support that [x0,x1, . . . ,xn] is a partition of[a,b]into n subintervals of equal lengths. Assume that f is continuous on[a,b].

We approximate

Z b

a

f(x)dx

by

Mn= ba n

n

X

k=1

f(ck),

where ck = xk12+xk is the midpoint of [xk1,xk].

WEN-CHINGLIEN Calculus (I)

(3)

8.7 Numerical Integration

(1) The Midpoint Rule

Support that [x0,x1, . . . ,xn] is a partition of[a,b]into n subintervals of equal lengths. Assume that f is continuous on[a,b].

We approximate

Z b

a

f(x)dx

by

Mn= ba n

n

X

k=1

f(ck),

where ck = xk12+xk is the midpoint of [xk1,xk].

WEN-CHINGLIEN Calculus (I)

(4)

8.7 Numerical Integration

(1) The Midpoint Rule

Support that [x0,x1, . . . ,xn] is a partition of[a,b]into n subintervals of equal lengths. Assume that f is continuous on[a,b].

We approximate

Z b

a

f(x)dx

by

Mn= ba n

n

X

k=1

f(ck),

where ck = xk12+xk is the midpoint of [xk1,xk].

WEN-CHINGLIEN Calculus (I)

(5)

8.7 Numerical Integration

(1) The Midpoint Rule

Support that [x0,x1, . . . ,xn] is a partition of[a,b]into n subintervals of equal lengths. Assume that f is continuous on[a,b].

We approximate

Z b

a

f(x)dx

by

Mn= ba n

n

X

k=1

f(ck),

where ck = xk12+xk is the midpoint of [xk1,xk].

WEN-CHINGLIEN Calculus (I)

(6)

8.7 Numerical Integration

(1) The Midpoint Rule

Support that [x0,x1, . . . ,xn] is a partition of[a,b]into n subintervals of equal lengths. Assume that f is continuous on[a,b].

We approximate

Z b

a

f(x)dx

by

Mn= ba n

n

X

k=1

f(ck),

where ck = xk12+xk is the midpoint of [xk1,xk].

WEN-CHINGLIEN Calculus (I)

(7)

Error Estimate:

Suppose that |f

′′

(x)| ≤ k ∀x ∈ [a, b]. Then the error in the midpoint rule is at most

Z

b

a

f ( x ) dx − M

n

≤ K (b − a)

3

24n

2

WEN-CHINGLIEN Calculus (I)

(8)

Error Estimate:

Suppose that |f

′′

(x)| ≤ k ∀x ∈ [a, b]. Then the error in the midpoint rule is at most

Z

b

a

f ( x ) dx − M

n

≤ K (b − a)

3

24n

2

WEN-CHINGLIEN Calculus (I)

(9)

Error Estimate:

Suppose that |f

′′

(x)| ≤ k ∀x ∈ [a, b]. Then the error in the midpoint rule is at most

Z

b

a

f ( x ) dx − M

n

≤ K (b − a)

3

24n

2

WEN-CHINGLIEN Calculus (I)

(10)

Error Estimate:

Suppose that |f

′′

(x)| ≤ k ∀x ∈ [a, b]. Then the error in the midpoint rule is at most

Z

b

a

f ( x ) dx − M

n

≤ K (b − a)

3

24n

2

WEN-CHINGLIEN Calculus (I)

(11)

Remark:

In the interval [x

k+1

, x

k

], the tangent at the midpoint c

k

is

φ(x ) = f (c

k

) + (x − c

k

)f

(c

k

)

WEN-CHINGLIEN Calculus (I)

(12)

Remark:

In the interval [x

k+1

, x

k

], the tangent at the midpoint c

k

is

φ(x ) = f (c

k

) + (x − c

k

)f

(c

k

)

WEN-CHINGLIEN Calculus (I)

(13)

Remark:

In the interval [x

k+1

, x

k

], the tangent at the midpoint c

k

is

φ(x ) = f (c

k

) + (x − c

k

)f

(c

k

)

WEN-CHINGLIEN Calculus (I)

(14)

φ(x) =f(ck) + (xck)f(ck)

f(x)−φ(x) = 1

2(xck)2f′′(ξ), ξ∈(x,ck)

Z xk

xk1

(f(x)−φ(x))dx

K · Z xk

xk1

1

2|xck|2dx

= K

24h3 (h= ba n )

WEN-CHINGLIEN Calculus (I)

(15)

φ(x) =f(ck) + (xck)f(ck)

f(x)−φ(x) = 1

2(xck)2f′′(ξ), ξ∈(x,ck)

Z xk

xk1

(f(x)−φ(x))dx

K · Z xk

xk1

1

2|xck|2dx

= K

24h3 (h= ba n )

WEN-CHINGLIEN Calculus (I)

(16)

φ(x) =f(ck) + (xck)f(ck)

f(x)−φ(x) = 1

2(xck)2f′′(ξ), ξ∈(x,ck)

Z xk

xk1

(f(x)−φ(x))dx

K · Z xk

xk1

1

2|xck|2dx

= K

24h3 (h= ba n )

WEN-CHINGLIEN Calculus (I)

(17)

φ(x) =f(ck) + (xck)f(ck)

f(x)−φ(x) = 1

2(xck)2f′′(ξ), ξ∈(x,ck)

Z xk

xk1

(f(x)−φ(x))dx

K · Z xk

xk1

1

2|xck|2dx

= K

24h3 (h= ba n )

WEN-CHINGLIEN Calculus (I)

(18)

(2) The Trapezoidal Rule We approximate

Z

b

a

f (x )dx by

T

n

= b − a n

f (x

0

)

2 + f ( x

1

) + · · · + f ( x

n−1

) + f (x

n

) 2

WEN-CHINGLIEN Calculus (I)

(19)

(2) The Trapezoidal Rule We approximate

Z

b

a

f (x )dx by

T

n

= b − a n

f (x

0

)

2 + f ( x

1

) + · · · + f ( x

n−1

) + f (x

n

) 2

WEN-CHINGLIEN Calculus (I)

(20)

(2) The Trapezoidal Rule We approximate

Z

b

a

f (x )dx

by

T

n

= b − a n

f (x

0

)

2 + f ( x

1

) + · · · + f ( x

n−1

) + f (x

n

) 2

WEN-CHINGLIEN Calculus (I)

(21)

Error Estimate:

Suppose that|f′′(x)| ≤kx ∈[a,b]. Then the error in the trapezoidal rule is at most

Z b

a

f(x)dxTn

K(ba)3 12n2

WEN-CHINGLIEN Calculus (I)

(22)

Error Estimate:

Suppose that|f′′(x)| ≤kx ∈[a,b]. Then the error in the trapezoidal rule is at most

Z b

a

f(x)dxTn

K(ba)3 12n2

WEN-CHINGLIEN Calculus (I)

(23)

Error Estimate:

Suppose that|f′′(x)| ≤kx ∈[a,b]. Then the error in the trapezoidal rule is at most

Z b

a

f(x)dxTn

K(ba)3 12n2

WEN-CHINGLIEN Calculus (I)

(24)

Error Estimate:

Suppose that|f′′(x)| ≤kx ∈[a,b]. Then the error in the trapezoidal rule is at most

Z b

a

f(x)dxTn

K(ba)3 12n2

WEN-CHINGLIEN Calculus (I)

(25)

Examples:

f(x) = 1 x,

Z 4

1

1 xdx

(1)Midpoint Rule (2)Trapezoidal Rule (3)Error

WEN-CHINGLIEN Calculus (I)

(26)

Examples:

f(x) = 1 x,

Z 4

1

1 xdx

(1)Midpoint Rule (2)Trapezoidal Rule (3)Error

WEN-CHINGLIEN Calculus (I)

(27)

Examples:

f(x) = 1 x,

Z 4

1

1 xdx

(1)Midpoint Rule (2)Trapezoidal Rule (3)Error

WEN-CHINGLIEN Calculus (I)

(28)

Examples:

f(x) = 1 x,

Z 4

1

1 xdx

(1)Midpoint Rule (2)Trapezoidal Rule (3)Error

WEN-CHINGLIEN Calculus (I)

(29)

Remark:

The Midpoint Rule is the tangent formula So in this example,

M3 ≤ Z 4

1

1

xdxT3

WEN-CHINGLIEN Calculus (I)

(30)

Remark:

The Midpoint Rule is the tangent formula So in this example,

M3 ≤ Z 4

1

1

xdxT3

WEN-CHINGLIEN Calculus (I)

(31)

Remark:

The Midpoint Rule is the tangent formula So in this example,

M3 ≤ Z 4

1

1

xdxT3

WEN-CHINGLIEN Calculus (I)

(32)

Remark:

The Midpoint Rule is the tangent formula So in this example,

M3 ≤ Z 4

1

1

xdxT3

WEN-CHINGLIEN Calculus (I)

(33)

(3) The Simpon’s Rule

Step 1.

We consider g(x) =Ax2+Bx +C.

⇒ Z b

a

g(x)dx = ba 6

g(a) +4g(a+b

2 ) +g(b)

WEN-CHINGLIEN Calculus (I)

(34)

(3) The Simpon’s Rule

Step 1.

We consider g(x) =Ax2+Bx +C.

⇒ Z b

a

g(x)dx = ba 6

g(a) +4g(a+b

2 ) +g(b)

WEN-CHINGLIEN Calculus (I)

(35)

Step 2.

Sn =

ba

6n f(x0) +f(xn) +2(f(x1) +· · ·+f(xn1)) +4h

f(x0+x2 1) +· · ·+f(f(xn1)+f(x2 n))io

WEN-CHINGLIEN Calculus (I)

(36)

Step 3.

Z b

a

f(x)dxSn

≤ 1

180(ba)M4h4,

Here,

f(4)(x)

M4, h= ba n

WEN-CHINGLIEN Calculus (I)

(37)

Thank you.

WEN-CHINGLIEN Calculus (I)

Referensi

Dokumen terkait