Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 12 Boundary-Value Problem in Rectangular Coordinates

Similar presentations


Presentation on theme: "Chapter 12 Boundary-Value Problem in Rectangular Coordinates"— Presentation transcript:

1 Chapter 12 Boundary-Value Problem in Rectangular Coordinates
Role of Chapter 12: Discuss the boundary-value problem for the case of two independent variables. (圓座標的問題在 Chapter 13 當中有討論 但不在這學期的上課範圍之中) (x-y 座標) Use the methods of (1) separation of variables or (2) the Fourier transform to solve the problem. Chapter 12 Section 14.4

2 本章的架構 12.1 介紹解法 Separation of variables (很重要) 12.2 名詞和定義 12.4 Wave equation 可視為12.1 的應用題 (有點複雜要多練習) 12.5 Laplace’s equation 兩大重點: (1) 熟悉 separation of variables 解 PDE 的方法 (2) 名詞和定義

3 縮寫: boundary value problem (BVP)
initial value problem (IVP) 例: BVP: IVP: partial differential equation (PDE) ordinary differential equation (ODE)

4 Section 12.1 Separable Partial Differential Equations
(1) linear second order partial differential equation for two independent variables 7 terms B2 − 4AC > 0 : hyperbolic, B2 − 4AC = 0 : parabolic B2 − 4AC < 0 : elliptic (2) Partial differential equation (PDE) 的第二種解法: Separation of variables (see pages ). 名詞: real separation constant (page 724)

5 12.1.2 Linear Second Order Partial Differential Equation
independent variables: x, y dependent variables: u(x, y), 簡寫成 u homogeneous : G(x, y) = 0, nonhomogeneous : G(x, y)  0

6 particular solution, general solution 的定義一如往昔
【Theorem 】 Superposition Principle If u1, u2, …., uk are solutions of a homogeneous linear partial differential equation, then is also a solution of the homogeneous linear partial differential equation.

7 12.1.3 Method of Separation of Variables
解 PDE with BVP (or IVP) 的方法 (1) method of separation of variables 若 PDE 當中有對 x 及對 y 的偏微分, 假設解為 u(x, y) = X(x)Y(y) (2) using the Fourier transform (or Fourier cosine transform, Fourier sine transform) (see Section 14.4) 共通的精神: PDE ODE Note: Laplace transform can also be used for solving the PDE (Section 14-2,期末考範圍外)

8 Method of Separation of Variables 的流程
(Step 1) 假設解為 u(x, y) = X(x)Y(y) 解法關鍵 (Step 2) 將 u(x, y) = X(x)Y(y) 代入 PDE,把 PDE 變成 “ function of X ” = “ function of Y ” =  的型態  被稱為 real separation constant

9 Steps 3, 4, 5 要分成不同的 Cases 來解 除了trivial 的情形外,所有可能的 cases 都要考慮   (Step 3) 將 function of X =  的解算出,即為 X(x) 註:(a) 如果有等於零的 boundary (initial) conditions, 也要在這一步考慮 (例如 pages 754, 770 的下方) (b) 有時,先解 Y(y) 會比較容易        (視 boundary (initial) conditions 而定)  (c) 在這一步中,有的時候,會得出  的限制 (Step 4) 將 function of Y =  的解算出,即為 Y(y) 需注意的地方和 Step 3 相同 (Step 5) u(x, y) = X(x)Y(y)

10 (Step 6) 將所有可能的解全部加起來 (Step 7) 用非零的 boundary (initial) conditions 將 coefficients 求出     註: 這一步經常會用到 Fourier series, Fourier cosine series 或 Fourier sine series ※ 若沒有 boundary (initial) conditions,Steps 6, 7 可以省略 Rules: x 的 BVP (IVP) 簡單 先算 X(x) y 的 BVP (IVP) 簡單 先算 Y(y) 沒有 BVP (IVP) 先算 X(x) 或 Y(y) 皆可

11 先算 X(x) 先算 Y(y)

12 Note: Separation of variables 的方法其實未必可以得出 PDE 所有的解
有些解無法用 X(x)Y(y) 來表示 Separation of variables 的主要好處是比其他方法簡單

13 Example 2 (text page 462) Step 1 假設解為 u(x, y) = X(x)Y(y) (解法關鍵) Step 2 將 u(x, y) = X(x)Y(y) 代入 real separation constant (解法關鍵)

14 Case 1 for Steps 3, 4, 5 Step 3-1 roots : 0, 0 auxiliary function Step 4-1 Step 5-1

15 Case 2 for Steps 3, 4, 5 為了方便起見,令 roots of the auxiliary function: 2, 2 Step 3-2 通常將解改寫成 Step 4-2 Step 5-2

16 Case 3 for Step 3 為了方便起見,令 Step 3-3 roots of the auxiliary function: j2, j2 Step 4-3 Step 5-3 若要處理 boundary conditions,或著想得到 general solution, 要將所有可能的解都加起來 Step 6  是任意實數 (註:nonseparable 的解在這一步得到)

17 12.1.4 Classification The PDE is said to be hyperbolic (雙曲線)
The PDE is said to be parabolic (拋物線) The PDE is said to be elliptic (橢圓形)

18 這些命名方式,是根據 2 次多項式在 x-y 平面上的軌跡
y y x x

19 y x 記憶秘訣:只要清楚幾個「特例」,就可以記住當 的時候,應該是什麼圖形

20 Example 3 (text page 463)

21 本節需要注意的地方 (1) 本節除了定義以外,只有兩個重點: classification of equations 以 及 method of separation of variables. (2) 然而, method of separation of variables 解法的流程,稍有些複 雜,需要熟悉 (Sections 12-4, 12-5 都將用這個方法) 關鍵:記住第一步 u(x, y) = X(x)Y(y) 第二步 function of X = function of Y =  (3) Method of separation of variables 在計算時,會分成很多個 cases. (4) Separation of variables要解 BVP 和 IVP時,需要將每個 cases 得 出來的解都加起來 (Step 6)

22 (5) 為了方便解決 BVP 或 IVP,經常將 改寫成 (6) Hyperbolic, parabolic, elliptic 的條件,可以用幾個 special cases 來記 (7) “等於零” 的 BVP 或IVP 可以先於 Steps 3, 4 當中考慮 (例如 pages 754, 770 的下方) “不等於零” 的 BVP 或IVP 則在 Step 7 當中處理

23 Section 12.2 Classical PDEs and Boundary- Value Problems
本節綱要 (1) one-dimensional heat equation (或簡稱為 heat equation) k > 0 (2) one-dimensional wave equation (或簡稱為 wave equation) (3) two-dimensional form of Laplace’s equation (或簡稱為 Laplace’s equation )

24 名詞: heat equation, (page 741) wave equation, (page 743) Laplace’s equation, (page 746) Laplacian, (page 747) Dirichlet condition, (page 750) Neumann condition, (page 750) Robin condition (page 750) 本節的重點:熟悉這七大名詞,和它們所對應的公式

25 12.2.2 One-Dimensional Heat Equation
由來:熱傳導的理論 (物理上的說明見 text page 466) u(x, t): temperature, t: time, x: location Fig heat equation 別名:diffusion equation

26 Example: u(x, t): temperature, t: time, x: location u(x, t0) x0 x-axis x0 的溫度將上升

27 12.2.3 One-Dimensional Wave Equation
「拉像皮筋」的模型 (物理上的說明見 text page 468) u(x, t): height, t: time, x: location (1) 剛開始時 f(x) u(x, t) = 0 when x = 0 u(x, t) = 0 when x = L Fig wave equation 別名: telegraph equation

28 (2) 手放開之後產生振動 振動 Fig

29  Wave equation 其他的應用: Theory of high-frequency transmission line Fluid mechanics (流體力學) Acoustics (聲學) Elasticity (彈力學) Microwave engineering (電波工程)

30 12.2.4 Two-Dimensional Form of Laplace’s Equation
如課本 Fig ,溫度隨著位置而變化的模型 u(x, y): temperature, x, y: location

31 Laplace’s Equation 亦可用 Laplacian 表示, 2u(x, y) = 0

32  Laplace’s Equation 的其他應用
Static displacement of membranes Edge detection (邊緣偵測) Microwave engineering (電波工程)

33 12.2.5 Modification 加上外力,或與外界的交互作用 例:heat equation 的 modification
例:wave equation 的 modification

34 12.2.6 Boundary Conditions 或 Initial Conditions
Dirichlet condition u = …… (沒微分) Neumann condition (有微分) Robin condition (混合) h is a constant

35 Section 12.4 Wave Equation 12.4.1 本節綱要
本節綱要 要解決的問題 (one-dimensional wave equation) 0 < x < L t > 0 BVP and IVP for t > 0 for 0 < x < L 解法見 page 例子見 page 762

36 實際上,Sections 12. 4 和 12. 5 可看成是 Section 12
實際上,Sections 12.4 和 12.5 可看成是 Section 12.1 的 method of separation of variables 的練習題 (可見得 method of separation of variables 有多重要) 名詞: standing waves (page 763) normal modes (page 763) first standing wave (page 764) fundamental frequency (page 764) nodes (page 766) overtones (page 766)

37 12.4.2 Solutions for Wave Equations (自己挑戰解解看)
0 < x < L t > 0 for t > 0 四大條件 for 0 < x < L 求解 (使用method of separation of variables) Step 1 假設解為 u(x, t) = X(x)T(t) Step 2 將 u(x, y) = X(x)T(t) 代入

38 得出2 個 ODEs Steps 3, 4, 5 的前處理 (1) 因為 x 的 boundary condition 較簡單,所以先解 X(x) (2) 分成  = 0,  < 0 ,  > 0 三個 cases (3) 由於 for all t > 0 u(0, t) = X(0)T(t) = 0 T(t) 不可為 0 (否則 u(x, t) = X(x)T(t) = 0 for any x, t) 所以 X(0) = 0 同理,由 可以立即判斷 X(L) = 0 subject to X(0) = 0 and X(L) = 0

39 subject to X(0) = 0 and X(L) = 0 Case 1 for Steps 3, 4, 5  = 0 Step 3-1 根據 boundary conditions 這個 case 得出 trivial solution u(x, t) = X(x)T(t) = 0 將無法滿足  = 0 時無解 無需再解 Step 4-1, Step 5-1

40 Case 2 of Steps 3, 4, 5:  < 0 Step 3-2 令  = −2 較易處理 boundary conditions Solution: 可改寫成 根據 boundary conditions X(0) = 0 and X(L) = 0 這個 case 得出 trivial solution u(x, t) = X(x)T(t) = 0 將無法滿足  < 0 時無解 無需再解 Step 4-2, Step 5-2

41 Case 3 of Steps 3, 4, 5:  > 0 Step 3-3 令  = 2 Solution: 根據 boundary conditions X(0) = 0 and X(L) = 0 n 是任意整數 特別注意: 不可直接由 就斷言 應該看看是否有適當的 , 讓第二個式子等於零

42 n 是任意正整數, c2 是任意數 Step 4-3 Solution: n 是任意整數 Step 5-3 n 是任意整數 An = c2c3, Bn = c2c4,

43 注意: 只是其中一個解,因為 n 是任意整數 Step 6

44 討論:既然 n 是任意整數,那為什麼 n 是從1 加到 ,
   而非由   加到  ? 因為 可證明

45 Step 7 由 initial conditions 也就是說,An 是 f(x) 的 Fourier sine series, 是 g(x) 的 Fourier sine series

46 12.4.3 物理意義 : 高度 : 速度 : 加速度 f(x) u(x, t) = 0 when x = 0
物理意義 : 高度 : 速度 : 加速度 f(x) u(x, t) = 0 when x = 0 u(x, t) = 0 when x = L Fig

47 名詞 其中 un(x, t) 被稱作 standing waves (駐波) 或 normal modes

48 n = 1 時, u1(x, t) 被稱作 first standing wave 或
first normal mode 或 fundamental mode of vibration 對於 t 而言,週期 = 頻率 =1/週期 被稱作 fundamental frequency (基頻) 或 first harmonic

49 以此類推, u2(x, t) 被稱作 second standing wave
u3(x, t) 被稱作 third standing wave L First standing wave L Second standing wave L Third standing wave Fig

50 時,無論 t 等於多少, 是 nth standing wave 的 node (節點) un(x, t) 的頻率 =1/週期 = 被稱作 overtones (泛音)

51 Section 12.5 Laplace’s Equation
0 < x < a, 0 < y < b, (使用method of separation of variables 來解) 「問題 1」 for 0 < y < b, for 0 < x < a 「問題 2」 for 0 < y < b, for 0 < x < a 「問題 3」 for 0 < x < a for 0 < y < b,

52 ※ 特別注意 “superposition principle”
Sections 12.4, 12.5 的重點,只有二個 (1) Method of separation of variables 的練習 (a) Wave equation 和 (b) Laplace’s equation (2) Superposition principle

53 12.5.2 Solutions for Laplace’s Equations (自己挑戰解解看)
0 < y < b, 0 < x < a, for 0 < y < b, for 0 < x < a Step 1 假設解為 u(x, y) = X(x)Y(y) Step 2 代入 得出 得出2 個 ODEs

54 Steps 3, 4, 5 的前處理 (1) 因為 x 的 boundary condition 較簡單,所以先解 X(x) (2) 分成  = 0,  < 0 ,  > 0 三個 cases (3) 由於 for all 0 < y < b, Y(y) 不可為 0 (否則 u(x, y) = X(x)Y(y) = 0) 所以 同理,由 同理,由

55 Case 1 of Steps 3, 4, 5:  = 0 Step 3-1 solution: 由 boundary conditions Step 4-1 Y(0) = 0 solution: 根據 boundary condition Y(0) = 0, c3 = 0

56 Step 5-1 Case 2 of Steps 3, 4, 5:  < 0 令  = −2 Step 3-2 solution: 可改寫成 由 boundary conditions 以及

57 因此, case 2 得出 trivial solution u(x, y) = X(x)Y(y) = 0
將無法滿足  < 0 時無解 (不需再算 Steps 4-2, 5-2) Case 3 of Steps 3, 4, 5:  > 0 令  = 2 Step 3-3 solution: 由 boundary conditions n 是任意整數

58 再次注意:不可直接判斷成 c1 = 0 and c2 = 0 應該看看是否有適當的 , 讓第二個式子等於零 n 是任意整數 Step 4-3 since Y(0) = 0 solution: 經常改寫為 根據 boundary condition Y(0) = 0

59 Step 5-3 n 是任意整數 Step 6 把所有可能的解,全部加起來 為什麼 n 是從 1 加到 ,而非由  加到 ? 道理同講義 page 760

60 Step 7 nonzero boundary condition: 也就是說,2A0b 和 (n = 1, 2, …., ) 是 f(x) 的 Fourier cosine series 的 coefficients remember: Section 的 Fourier cosine series 為

61

62 12.5.3 Laplace’s Equations with Dirichlet Problem
0 < x < a, 0 < y < b, 0 < y < b, 0 < x < a, 用 method of separation of variables,經過計算得出 可自行練習解解看

63 12.5.4 Superposition Principle
Dirichlet Problem 可分解成兩個子問題 0 < x < a, 0 < y < b, for 0 < y < b, for 0 < x < a, 當四個邊界都不為零時,很難直接用 separation of variable 的方法解出來

64 子問題 1 0 < x < a, 0 < y < b, for 0 < y < b, for 0 < x < a, 子問題 2 0 < x < a, 0 < y < b, for 0 < y < b, for 0 < x < a, 假設 u1(x, y), u2(x, y) 分別是子問題 1, 子問題 2 的解 則 u (x, y) = u1(x, y) + u2(x, y) 是原來問題的解 (類似於 Section 4-1 的 superposition principle)

65 = + 當 u (x, y) = u1(x, y) + u2(x, y)
u (0, y) = u1(0, y) + u2(0, y) = 0 + F(y) = F(y) u (a, y) = u1(a, y) + u2(a, y) = 0 + G(y) = G(y) u (x, 0) = u1(x, 0) + u2(x, 0) = f(x) + 0 = f(x) u (x, b) = u1(x, b) + u2(x, b) = g(x) + 0 = g(x) = + Fig

66 子問題 1 的解 子問題 2 的解 原來問題的解

67 Sections 12.4 及 12.5 需要注意的地方 (1) Method of separation of variables 解 PDE 的過程雖然長,但是把握住講義 pages 的 7 個 steps,並練習幾次,就可以熟悉。 (這些對大二下和大三上的電磁學很重要) (2) 雖然概念不難,但是計算過程很長且繁雜 所以一定要多研究簡化運算、快速判斷的方法

68 (3) 有沒有注意到, 若 boundary conditions 出現 u(0, y) = 0, u(L, y) = 0, 最後的解總是和 sine 有關 若 boundary conditions 出現 最後的解總是和 cosine 或 constant 有關 週期為 2L/n or 週期也為 2L/n (4) 經驗足夠後,看到 u(x, y) 的 boundary conditions 出現 u(a, y) = 就知道 X(a) = 0 , 看到 u(x, b) = 就知道 Y(b) = 0 。 看到 就知道 X'(a) = 0, 看到 就知道 Y'(b) = 0

69 (5) 對於 wave equations 而言, X(x) 和 T(t) 的解有相同的型態
如果 X(x) 為 sine & cosine, T(t) 也為 sine & cosine 對於 Laplace’s equations而言, X(x) 和 Y(y) 的解型態不同 如果X(x) 為 sine & cosine, Y(y) 為 sinh & cosh (6) 要熟悉 cosh(x), sinh(x) 的性質

70 (7) Method of separation of variables 在計算上容易出錯的地方
(以 講義 pages wave equations 為例) (a) (b) Steps 3, 4, 5 要考慮所有 cases (c) 不可直接由 c1 = 0 及 判斷 c1 = c2 = 0 因為  可以是 n/L, 如講義 page 757 所述 (d) 在 Step 6,要將所有可能的解加起來,才是 u(x, t) 的一般解 如講義 page 759 所述

71 Exercise for Practice Section , 6, 9, 10, 12, 14, 16, 18, 22, 23, 27, 30, 32 Section , 4, 8, 10, 11 Section , 4, 7, 9, 11, 15, 17, 19, 20 Section , 5, 6, 9, 10, 11, 12, 14, 16, 17, 18 Review , 2, 5, 13, 14

72 Happy New Year! 祝各位期末考順利,寒假愉快!


Download ppt "Chapter 12 Boundary-Value Problem in Rectangular Coordinates"

Similar presentations


Ads by Google