54
CPE 332 CPE 332 Computer Computer Engineering Engineering Mathematics II Mathematics II Part III, Part III, Chapter 11 ODE Chapter 11 ODE

CPE 332 Computer Engineering Mathematics II

  • Upload
    mindy

  • View
    48

  • Download
    8

Embed Size (px)

DESCRIPTION

CPE 332 Computer Engineering Mathematics II. Part III, Chapter 11 ODE. Today Topics. Chapter 11 Ordinary Differential Equation HW 10 Due. Differential Equation. เป็นสมการทางคณิตศาสตร์ ที่ประกอบด้วย Derivative ( หรือ Integral) - PowerPoint PPT Presentation

Citation preview

Page 1: CPE 332 Computer Engineering Mathematics II

CPE 332CPE 332Computer Computer

Engineering Engineering Mathematics IIMathematics II

Part III, Part III, Chapter 11 ODEChapter 11 ODE

Page 2: CPE 332 Computer Engineering Mathematics II

Today Topics• Chapter 11 Ordinary Differential

Equation• HW 10 Due

Page 3: CPE 332 Computer Engineering Mathematics II

Differential Equation• เป็นสมการทางคณิตศาสตร ์ท่ีประกอบด้วย

Derivative (หรอื Integral)– Solution ของสมการคือ Function ท่ีไมม่ ี

Derivative หรอื Integral ปรากฏอยู่• รูปแบบทัว่ไปคือ (First Order)

– dy/dx = f(x,y)– กรณีพเิศษท่ี dy/dx = f(x) เราสามารถแก้สมการโดยใช้

การ Integrate• dy = f(x)dx• y = f(x)dx = F(x) + C : ค่า C สามารถหาได้โดยการ

กำาหนด Initial condition– ปกติการแก้สมการทัว่ไปไมส่ามารถใช ้Integrate ได้

Page 4: CPE 332 Computer Engineering Mathematics II

Example 1• Solve for 4,2;3 2 yxx

dxdy

Page 5: CPE 332 Computer Engineering Mathematics II

Example 1• Solve for 4,2;3 2 yxx

dxdy

Solution) (General

3

3

3

2

2

Cxy

dxxy

dxxdy

Page 6: CPE 332 Computer Engineering Mathematics II

Example 1• Solve for 4,2;3 2 yxx

dxdy

4

424

4y2,xSolution) (General

3

3

3

3

3

2

2

xy

CC

Cxy

dxxy

dxxdy

Page 7: CPE 332 Computer Engineering Mathematics II

Differential Equation• ค่า Order สงูสดุของ Derivative จะ

กำาหนด Order ของ Differential Equation– จำานวน Initial Condition ท่ีจะต้องใชจ้ะเท่ากับ

ค่าของ Order ของสมการ

Page 8: CPE 332 Computer Engineering Mathematics II

Example 2

]23[2

2]23[

223

022]3[

022][

42

),(),( Find42:),(

2

3

32

32

32

33

23

23

xyyx

dxdy

yxxydxdy

yxdxdy

dxdyxy

xdxdyy

dxdyxy

dxdxx

dxdy

dxdxyy

dxdx

dxdxyxy

dxd

yxFdxdyxfxyxyyxF

Page 9: CPE 332 Computer Engineering Mathematics II

Example 2• แก้สมการ

]23[2),( 2

3

xy

yxyxfdxdy

dxxy

yxy

dxxy

yxdy

]23[2

]23[2

2

3

2

3

Integrate ไมไ่ด้

Page 10: CPE 332 Computer Engineering Mathematics II

Differential Equation• Tools ทางคณิตศาสตรท์ี่สำาคัญสำาหรบัใชใ้น

การแก้ปัญหา Differential Equation– Laplace Transform (one side/two side)– Fourier Transform ใชไ้ด้เชน่กัน– Z-Transform ใชส้ำาหรบัแก้ปัญหา Discrete

Version ของ Differential Equation• คือ Differential Equation ท่ีได้จากการสุม่ตัวอยา่ง

ของตัวแปร• กรณีนี้เราเรยีก Difference Equation

– ทัง้หมดนี้อยูใ่นเน้ือหาวชิา CPE 308

Page 11: CPE 332 Computer Engineering Mathematics II

Differential Equation• บทน้ีเราจะมาด ูNumerical Method

สำาหรบัใชใ้นการแก้สมการ Differential Equation– เราจะจำากัดอยูท่ี่ First Order และ Initial

Condition ท่ีจุดตัง้ต้น– เป็นสมการของ Ordinary Differential

Equation• One Independent Variable

– สามารถดัดแปลงสำาหรบั Higher Order ได้– กรณีท่ีเป็น Boundary Condition จะต้องใช้

วธิอ่ืีน • ศึกษาเพิม่เติมได้จาก Reference

Page 12: CPE 332 Computer Engineering Mathematics II

Chapter 10• Ordinary Differential Equation

Page 13: CPE 332 Computer Engineering Mathematics II

ODE

Page 14: CPE 332 Computer Engineering Mathematics II

ODE

Page 15: CPE 332 Computer Engineering Mathematics II

ODE

Page 16: CPE 332 Computer Engineering Mathematics II

ODE: One Step Method

0x

0x

0y1y

2y3y 4y

1x 2x 3x 4x

h

Page 17: CPE 332 Computer Engineering Mathematics II

ODE: One Step Method

Page 18: CPE 332 Computer Engineering Mathematics II

Euler’s Method

Page 19: CPE 332 Computer Engineering Mathematics II

Euler’s Method

Page 20: CPE 332 Computer Engineering Mathematics II

Euler’s Method

Page 21: CPE 332 Computer Engineering Mathematics II

Euler’s Method

Page 22: CPE 332 Computer Engineering Mathematics II

Euler’s Method

Page 23: CPE 332 Computer Engineering Mathematics II

Euler’s Method

Page 24: CPE 332 Computer Engineering Mathematics II

Heun and Polygon Method

Page 25: CPE 332 Computer Engineering Mathematics II

Heun Method

Page 26: CPE 332 Computer Engineering Mathematics II

Heun Method

Page 27: CPE 332 Computer Engineering Mathematics II

Heun Method

Page 28: CPE 332 Computer Engineering Mathematics II

Heun and Polygon Method

Page 29: CPE 332 Computer Engineering Mathematics II

Heun Method

Page 30: CPE 332 Computer Engineering Mathematics II

Heun and Polygon Method

Page 31: CPE 332 Computer Engineering Mathematics II

Heun Method

Page 32: CPE 332 Computer Engineering Mathematics II

Heun Method

Page 33: CPE 332 Computer Engineering Mathematics II

Improved Polygon Method

Page 34: CPE 332 Computer Engineering Mathematics II

Improved Polygon Method

Page 35: CPE 332 Computer Engineering Mathematics II

Runge-Kutta Method

Page 36: CPE 332 Computer Engineering Mathematics II

Runge-Kutta Method

Page 37: CPE 332 Computer Engineering Mathematics II

Second Order Runge-Kutta Method

Page 38: CPE 332 Computer Engineering Mathematics II

Second Order Runge-Kutta Method

Page 39: CPE 332 Computer Engineering Mathematics II

Second Order Runge-Kutta Method

Page 40: CPE 332 Computer Engineering Mathematics II

Second Order Runge-Kutta Method

Page 41: CPE 332 Computer Engineering Mathematics II

Second Order Runge-Kutta Method

Page 42: CPE 332 Computer Engineering Mathematics II

Second Order Runge-Kutta Method

Page 43: CPE 332 Computer Engineering Mathematics II

Second Order Runge-Kutta Method

Page 44: CPE 332 Computer Engineering Mathematics II

Second Order Runge-Kutta Method

Page 45: CPE 332 Computer Engineering Mathematics II

Second Order Runge-Kutta Method

Page 46: CPE 332 Computer Engineering Mathematics II
Page 47: CPE 332 Computer Engineering Mathematics II

Third Order Runge-Kutta Method

Page 48: CPE 332 Computer Engineering Mathematics II

Third Order Runge-Kutta Method

Page 49: CPE 332 Computer Engineering Mathematics II

Forth Order Runge-Kutta Method

Page 50: CPE 332 Computer Engineering Mathematics II

Forth Order Runge-Kutta Method

Page 51: CPE 332 Computer Engineering Mathematics II

Higher Order Runge-Kutta Method

Page 52: CPE 332 Computer Engineering Mathematics II

Comparison

Page 53: CPE 332 Computer Engineering Mathematics II

Chapter 11 Homework (HW 11)

• Download และทำาใน Sheet

Page 54: CPE 332 Computer Engineering Mathematics II

End of Chapter 11• Next Week

– Ch. 12 Curve Fitting (ไมม่ใีน Text)– HW 12– Last Chapter

• Course ENDs