Boundary-Value Problems for ODE )בעיות הגבול(

Slides:



Advertisements
Similar presentations
Fixed Points and The Fixed Point Algorithm. Fixed Points A fixed point for a function f(x) is a value x 0 in the domain of the function such that f(x.
Advertisements

Boyce/DiPrima 9th ed, Ch 2.8: The Existence and Uniqueness Theorem Elementary Differential Equations and Boundary Value Problems, 9th edition, by William.
Lecture 5 Newton-Raphson Method
Mathematics1 Mathematics 1 Applied Informatics Štefan BEREŽNÝ.
1.2 Row Reduction and Echelon Forms
Linear Equations in Linear Algebra
Ch 5.2: Series Solutions Near an Ordinary Point, Part I
Part 6 Chapter 22 Boundary-Value Problems PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The McGraw-Hill.
Ch 2.2: Separable Equations In this section we examine a subclass of linear and nonlinear first order equations. Consider the first order equation We can.
ECIV 720 A Advanced Structural Mechanics and Analysis Non-Linear Problems in Solid and Structural Mechanics Special Topics.
Newton's Method for Functions of Several Variables
NUMERICAL METHODS WITH C++ PROGRAMMING
Math 3120 Differential Equations with Boundary Value Problems
Iterative Methods for Solving Linear Systems of Equations ( part of the course given for the 2 nd grade at BGU, ME )
Basic Models in Theoretical Neuroscience Oren Shriki 2010 Differential Equations.
First Order Linear Equations Integrating Factors.
Computational Optimization
Lecture 35 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Solving Systems of Equations. Rule of Thumb: More equations than unknowns  system is unlikely to have a solution. Same number of equations as unknowns.
6.1 Antiderivatives and Slope Fields Objectives SWBAT: 1)construct antiderivatives using the fundamental theorem of calculus 2)solve initial value problems.
Newton's Method for Functions of Several Variables Joe Castle & Megan Grywalski.
Copyleft  2005 by Media Lab Ordinary Differential Equations Boundary Value Problems.
Lecture 6 Numerical Analysis. Solution of Non-Linear Equations Chapter 2.
Boundary-Value Problems Boundary-value problems are those where conditions are not known at a single point but rather are given at different values of.
Solving Linear Systems of Equations - Substitution Method Recall that to solve the linear system of equations in two variables... we need to find the value.
Boundary Value Problems l Up to this point we have solved differential equations that have all of their initial conditions specified. l There is another.
Numerical Methods.
Circuits Theory Examples Newton-Raphson Method. Formula for one-dimensional case: Series of successive solutions: If the iteration process is converged,
Iteration Methods “Mini-Lecture” on a method to solve problems by iteration Ch. 4: (Nonlinear Oscillations & Chaos). Some nonlinear problems are solved.
7.2 Solving Linear Recurrence Relations Some of these recurrence relations can be solved using iteration or some other ad hoc technique. However, one important.
Advanced Engineering Mathematics, 7 th Edition Peter V. O’Neil © 2012 Cengage Learning Engineering. All Rights Reserved. CHAPTER 4 Series Solutions.
Section 4.1 Initial-Value and Boundary-Value Problems
Solving Linear Systems by Substitution
Math 3120 Differential Equations with Boundary Value Problems
SOLVING NONLINEAR EQUATIONS. SECANT METHOD MATH-415 Numerical Analysis 1.
Differential Equations MTH 242 Lecture # 09 Dr. Manshoor Ahmed.
1 1.2 Linear Equations in Linear Algebra Row Reduction and Echelon Forms © 2016 Pearson Education, Ltd.
Ordinary Differential Equations (ODEs). Objectives of Topic  Solve Ordinary Differential Equations (ODEs).  Appreciate the importance of numerical methods.
Solving Systems of Equations. Rule of Thumb: More equations than unknowns  system is unlikely to have a solution. Same number of equations as unknowns.
CHAPTER 3 NUMERICAL METHODS
MAT Classical Mechanics
Ch 2.6: Exact Equations & Integrating Factors
CHAPTER 3 NUMERICAL METHODS.
MATH 374 Lecture 7 Linear Equations.
Boundary-Value Problems
Computational Methods EML3041
Ch 1.3: Classification of Differential Equations
Ch 1.3: Classification of Differential Equations
Solve the equation for x. {image}
Solution of Equations by Iteration
Numerical Analysis Lecture 7.
Ch 5.2: Series Solutions Near an Ordinary Point, Part I
Computers in Civil Engineering 53:081 Spring 2003
finite element method node point based strong form
finite element method node point based strong form
Linear Equations in Linear Algebra
SOLUTION OF NONLINEAR EQUATIONS
CS5321 Numerical Optimization
MATH 1310 Session 2.
Ch5 Initial-Value Problems for ODE
Some iterative methods free from second derivatives for nonlinear equation Muhammad Aslam Noor Dept. of Mathematics, COMSATS Institute of Information Technology,
Linear and Nonlinear Systems of Equations
Linear and Nonlinear Systems of Equations
Totally Asynchronous Iterative Algorithms
Linear Equations in Linear Algebra
Legendre Polynomials Pn(x)
1 Newton’s Method.
CISE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L1 KFUPM.
Pivoting, Perturbation Analysis, Scaling and Equilibration
2.2 Fixed-Point Iteration
Presentation transcript:

Boundary-Value Problems for ODE )בעיות הגבול(

Boundary-Value Problems for ODE (The Uniqueness Theorem) satisfies the following conditions Theorem: Suppose the function f in the boundary-value problem Then the boundary-value problem has a unique solution.

Boundary-Value Problems for ODE )בעיות הגבול( עד עכשיו פתרנו רק משוואות דיפרנציאליות עם תנאי התחלה. למשוואות מסדר גבוה צריך לספק מספר תנאי התחלה (שווה לסדר המשוואה) כדי שהפתרון יהיה יחיד. אבל בבעיות הנדסה רבים במקום תנאי התחלה נתונות תנאי שפה (תנאי גבול) לדוגמא – משוואת בלאזיוס לשכבת גבול היא בקטע (l – עבי שכבת הגבול) עם 3 תנאים, כאשר 2 תנאים נתונים בגבול התחתון : ותנאי נוסף בקצה השני של שכבת הגבול (בגבול העליון): בעיות גבול הן בעיות טיפוסיות בזרימה ומעבר חום. התנאים בגבולות הזרימה הם תנאי אי-החלקה (מהירות הזורם שווה ל-0) על דפנות של צינורות ותעלות. תנאי הגבול בבעיות מעבר חום הן טמפרטורה או שטף חום ידועים בגבולות. בעיות מסוג זה שכיחות גם בתורת האלסטיות, חוזק ועוד.

The Shooting Method )שיטת הצליפה( ברור כי לא ניתן להפעיל אף שיטה מאלה שפיתחנו כאשר בתחילת הקטע חסרים תנאי התחלה. שיטת הצליפה היא אחת מהשיטות המאפשרות לעקוף את המכשול. שיטת הצליפה מורכבת מארבעה שלבים: ניחוש של תנאי ההתחלה החסרים פתרון הבעיה עם תנאי ההתחלה שניחשנו השוואה בין התוצאה שקיבלנו בקצה השני של הקטע עם תנאי השפה שם תיקון תנאי ההתחלה לפי תוצאת ההשוואה וחזרה לסעיף ב' תהליך הפתרון נמשך עד שבסעיף ג' ניראה קירוב טוב בין תוצאות החישוב לתנאי השפה הדרושים. שיטת הצליפה היא שיטה איטרטיבית שעלולה להיות ארוכה. בגלל זה חשוב להשתמש בשיטות מהירות לפתרון המשוואה. חשוב גם להשתמש בשיטות יעילות לתיקון תנאי ההתחלה. מהם השיטות היעילות הללו? כדי לענות על השאלה נמחיש את השיטה על דוגמא של ירי צלף לעבר מטרה.

שיטת הצליפה (הדגמה) נניח כי דרוש לפתור משוואה דיפרנציאלית בקטע ניחוש 1 תיקון ניחוש 2 נניח כי דרוש לפתור משוואה דיפרנציאלית בקטע עם תנאי שפה הפתרון (בגרף הזה t מיצג את x)

שיטת הצליפה (המשך) לפי שיטת הצליפה נחליף את התנאי בקצה השני של הקטע ( b=y(b) ) בניחוש של תנאי ההתחלה החסר, , ונחשב את הפתרון. נחזור ונפתור עם ניחוש נוסף שני ה"יריות" שלנו לא פגעו במטרה כי התוצאה בסוף הקטע, y(b), לא שווה לb . צריך לתקן את הניחושים ולחשב את הפתרון עוד ועוד עד שהתנאי y(b)=b יתקיים.

שיטת הצליפה (המשך 2) ברור כי הערך b-(b)y שאנו רוצים לאפס תלוי בערך של A(מתמטית הוא פונקציה (A)F). במילים אחרות, אנחנו מחפשים שורש A של משוואה לא ליניארית הפונקציה F לא נתונה בצורה מפורשת אלא ע"י פתרון (ארוך בדרך כלל) של ODE. האם יש לנו שיטות לפתרון של המשוואה מסוג זה?

דוגמת פתרון לפי שיטת הצליפה התשובה היא בהחלט חיובית. אחת מהשיטות היא שיטת החצייה אבל היא דורשת הרבה איטרציות עד להתכנסות. שיטת המיתר יותר יעילה בדרך כלל ולכן עדיפה. דוגמא. דרוש לפתור משוואה דיפרנציאלית בקטע 1>x>0 עם תנאי שפה פתרון. נתחיל מהורדת סדר המשוואה: נחליף את התנאי בקצה השני, 1=(1)y, בתנאי התחלה נוסף ונמצא את A כך שהתנאי 0=1-(1)=y(A)F יתקיים. קודם ננחש את A. נתחיל מהניחוש 1= A1. פותרים את המערכת ומקבלים עוד ניחוש 2= A2. שוב פותרים את המערכת ומקבלים:

פתרון לפי שיטת הצליפה (גרפים של 2 הניחושים) המטרה פתרון עם ניחוש התחלתי 2=2A=y′(0) פתרון עם ניחוש התחלתי 1=1A=y′(0) שני "היריות" לא פגעו במטרה. נצטרך לחשב את השיפוע A לפי שיטת המיתר.

שיטת הצליפה (פתרון לפי שיטת המיתר) לאחר שני הניחושים ניתן לעבור לשיטת המיתר לחישוב קירוב הבא: פתרון של הODE- עם שיפוע התחלתי 3A מביא אותנו קרוב מאוד לפתרון המדויק כפי שניתן לראות: קירוב לפי שיטת המיתר: 2.69=y′(0) ניחוש התחלתי 2=y′(0) ניחוש התחלתי 1=y′(0) האיטראציה הבאה נותנת ערך 2.78 = 4A שקרוב לפתרון עם דיוק של 2 ספרות אחרי הנקודה.

The Linear Shooting Method satisfies the following conditions Theorem: If the linear boundary-value problem Then the problem has a unique solution.

The Linear Shooting Method (cont.) To solve the linear boundary-value problem we solve two initial-value problems: Then the solution to the boundary-value problem is:

The Linear Shooting Method (cont.) We illustrate this method graphically:

The Shooting Method for Nonlinear Problems The solution to a nonlinear problem cannot be expressed as a linear combination of the solution to initial-value problem. Instead we need to use the solutions to a sequence of initial-value problems of the form: We choose , so that

The Shooting Method for Nonlinear Problems denotes the solution to the initial-value problem. Shooting begins with:

The Shooting Method for Nonlinear Problems and continues with: denotes the solution to the initial-value problem, then the problem is to determine t so that

The Shooting Method for Nonlinear Problems is a nonlinear equation! The Secant method (מיתר): The Newton-Raphson method: ?

The Shooting Method for Nonlinear Problems (Newton-Raphson) We rewrite the initial-value problem, emphasizing that the solution depends on both x and t as Since we need we take the partial derivative with respect to t =0 and…

The Shooting Method for Nonlinear Problems (Newton-Raphson) …and: By defining and reversing the order of differentiation of x and t, we have This is the initial-value problem for z(x,t).

The Shooting Method for Nonlinear Problems (Newton-Raphson) Finally, NR shooting method implies solving two initial-value problems: If the problem satisfies the uniqueness theorem, any choice of will give convergence.

Algorithm Nonlinear Shooting

Algorithm Nonlinear Shooting (cont.)

Algorithm Nonlinear Shooting (cont.)

Algorithm Nonlinear Shooting (cont.)

Algorithm Nonlinear Shooting (example) Consider the boundary value problem The algorithm requires solving two initial value problems

Algorithm Nonlinear Shooting (example) Numerical and exact results: iterations and If the iteration stops for this problem requires four

פתרון בעיות גבול ע"י שיטת הפרשים סופיים בעזרת שיטת הצליפה אפשר לפתור בעיות שפה לכל משדי"פ מסדר גדול מ1, כולל משוואות לא ליניאריות. ראינו שהפתרון לפי שיטה זו דורש איטראציות, לפעמים איטראציות רבות. בגלל זה השיטה היא איטית בד"כ. כאשר המשוואה היא ליניארית, ניתן להשתמש בשיטות אחרות ומהירות הרבה יותר. אחת מהשיטות הללו היא שיטת "הפרשים סופיים". עקרון השיטה הוא להחליף את כל הנגזרות במישדי"פ בנגזרות נומריות. התוצאה היא – מערכת משוואות ליניאריות שקל לפתור אותם ללא איטראציות. דוגמא. דרוש לפתור משוואה בקטע 3 > x > 1 עם תנאי שפה: 1- = (3)y , 2 = (1)y נשתמש בהפרשים מרכזיים לקירוב הנגזרת השנייה: נציב בODE- ונקבל בנקודות פנימיות: כאשר

שיטת הפרשים סופיים (דוגמא) נבחר ב-5=n, ז"א 0.5=h ונקבל: נציב תנאי השפה (1-=5y, 2=1y) ,נפשט ונקבל מערכת המשוואות עבור נקודות פנימיות: שימו לב שקיבלנו מטריצה תלת-אלכסונית! פותרים את המערכת ומקבלים: השגיאה היא בסדר גודל (2h)O.

פתרון מערכת משוואות עם מטריצה תלת-אלכסונית הפתרון שלנו איננו מדויק. אפשר להקטין את השגיאה באחת משתי דרכים: או ע"י שימוש בשיטת הגזירה מדויקת יותר או ע"י הגדלת מספר החלוקות n (הקטנת h). הדרך השנייה עדיפה כי בשיטה זו מתקבל מטריצת המערכת תלת-אלכסונית. למטריצות כאלה קיימת שיטת הפתרון מאד יעילה - אלגוריתם של תומאס. נוסחאות של Thomas Algorithm נמצאות באתר הקורס ובשקפים הבאים.

Thomas Algorithm

Thomas Algorithm (cont.)