Module 10: Finite Difference Methods for Boundary Value Problems Lecture 42: Special Boundary Value Problems. The Lecture Contains:

Similar documents
Linear Algebra. The analysis of many models in the social sciences reduces to the study of systems of equations.

HIGH ORDER VARIABLE MESH EXPONENTIAL FINITE DIFFERENCE METHOD FOR THE NUMERICAL SOLUTION OF THE TWO POINTS BOUNDARY VALUE PROBLEMS

Discrete Simulation of Power Law Noise

The residual again. The residual is our method of judging how good a potential solution x! of a system A x = b actually is. We compute. r = b - A x!

Solution of System of Linear Equations & Eigen Values and Eigen Vectors

nonlinear simultaneous equations of type (1)

arxiv: v1 [math.na] 5 May 2011

Chapter 5 HIGH ACCURACY CUBIC SPLINE APPROXIMATION FOR TWO DIMENSIONAL QUASI-LINEAR ELLIPTIC BOUNDARY VALUE PROBLEMS

Linear Algebra Practice Problems

Computational Fluid Dynamics Prof. Sreenivas Jayanti Department of Computer Science and Engineering Indian Institute of Technology, Madras

Generalization Of The Secant Method For Nonlinear Equations

TABLE OF CONTENTS INTRODUCTION, APPROXIMATION & ERRORS 1. Chapter Introduction to numerical methods 1 Multiple-choice test 7 Problem set 9

JUST THE MATHS UNIT NUMBER 9.3. MATRICES 3 (Matrix inversion & simultaneous equations) A.J.Hobson

Preface. Figures Figures appearing in the text were prepared using MATLAB R. For product information, please contact:

AMS526: Numerical Analysis I (Numerical Linear Algebra)

Ch 10.1: Two Point Boundary Value Problems

= V I = Bus Admittance Matrix. Chapter 6: Power Flow. Constructing Ybus. Example. Network Solution. Triangular factorization. Let

ANALYTICAL MATHEMATICS FOR APPLICATIONS 2018 LECTURE NOTES 3

Course in. Geometric nonlinearity. Nonlinear FEM. Computational Mechanics, AAU, Esbjerg

Introduction to Matrices

Topic 6: Projected Dynamical Systems

APPLICATION OF NEWTON RAPHSON METHOD TO A FINITE BARRIER QUANTUM WELL (FBQW) SYSTEM

Math 123, Week 2: Matrix Operations, Inverses

Course Plan for Spring Semester 2018

Appendix F. + 1 Ma 1. 2 Ma Ma Ma ln + K = 0 (4-173)


In this section again we shall assume that the matrix A is m m, real and symmetric.

Queens College, CUNY, Department of Computer Science Numerical Methods CSCI 361 / 761 Spring 2018 Instructor: Dr. Sateesh Mane.

Numerical Analysis Lecture Notes

Total Dominator Colorings in Paths

Exact and Approximate Numbers:

Semester I. Mathematics I (Calculus with applications in Chemistry I) Code: MM

Nirma University Institute of Technology

Elementary maths for GMT

Syllabus (Session )

VEER NARMAD SOUTH GUJARAT UNIVERSITY, SURAT

1111: Linear Algebra I

Conjugate Gradient (CG) Method

Numerical Analysis Using M#math

3.3 Introduction to Infinite Sequences and Series

VEER NARMAD SOUTH GUJARAT UNIVERSITY, SURAT. SYLLABUS FOR B.Sc. (MATHEMATICS) Semester: III, IV Effective from July 2015

Review Questions REVIEW QUESTIONS 71

Evaluating implicit equations

Finite difference method for elliptic problems: I

The Newton-Raphson Algorithm

AMSC/CMSC 466 Problem set 3

Introduction to Matrices

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Chemistry 5.76 Revised February, 1982 NOTES ON MATRIX METHODS

Outline. Math Numerical Analysis. Errors. Lecture Notes Linear Algebra: Part B. Joseph M. Mahaffy,

Roots of Equations Roots of Polynomials

p 1 p 0 (p 1, f(p 1 )) (p 0, f(p 0 )) The geometric construction of p 2 for the se- cant method.

Direct Methods for Solving Linear Systems. Matrix Factorization

NONLINEAR EQUATIONS AND TAYLOR S THEOREM

Value Problems Introduction

UNIT - 2 Unit-02/Lecture-01

10.2 ITERATIVE METHODS FOR SOLVING LINEAR SYSTEMS. The Jacobi Method

Consider the following example of a linear system:

ELG 5372 Error Control Coding. Lecture 5: Algebra 3: Irreducible, Primitive and Minimal Polynomials

Chapter 3. Linear and Nonlinear Systems

The Newton-Raphson method accelerated by using a line search - comparison between energy functional and residual minimization

AMS526: Numerical Analysis I (Numerical Linear Algebra)

LS.1 Review of Linear Algebra

Simplifying Section 13 By Joseph Pang

PARTIAL DIFFERENTIAL EQUATIONS

Numerical Analysis Lecture Notes

Root Finding For NonLinear Equations Bisection Method

Zeroes of Transcendental and Polynomial Equations. Bisection method, Regula-falsi method and Newton-Raphson method

Numerical Methods. Roots of Equations

Introduction to Quantitative Techniques for MSc Programmes SCHOOL OF ECONOMICS, MATHEMATICS AND STATISTICS MALET STREET LONDON WC1E 7HX

Chapter 7. Tridiagonal linear systems. Solving tridiagonal systems of equations. and subdiagonal. E.g. a 21 a 22 a A =

Linear Algebra and Matrix Inversion

DonnishJournals

Lecture Note 7: Iterative methods for solving linear systems. Xiaoqun Zhang Shanghai Jiao Tong University

ELA THE MINIMUM-NORM LEAST-SQUARES SOLUTION OF A LINEAR SYSTEM AND SYMMETRIC RANK-ONE UPDATES

MATRICES. knowledge on matrices Knowledge on matrix operations. Matrix as a tool of solving linear equations with two or three unknowns.

arxiv: v1 [cs.sc] 17 Apr 2013

Chapter 0: Preliminaries

Jim Lambers MAT 610 Summer Session Lecture 1 Notes

Linear Models in Machine Learning

Scientific Computing

Numerical Methods. King Saud University

On the Computational Procedure of Solving Boundary Value Problems of Class M Using the Power Series Method

Non-linear least squares

POLI270 - Linear Algebra

Principles of Real Analysis I Fall I. The Real Number System

Sparse least squares and Q-less QR

Monte Carlo Method for Finding the Solution of Dirichlet Partial Differential Equations

1 Computing with constraints

UNIVERSITY OF MICHIGAN UNDERGRADUATE MATH COMPETITION 31 MARCH 29, 2014

Huang method for solving fully fuzzy linear system of equations

Newton Method: General Control and Variants

2.29 Numerical Fluid Mechanics Spring 2015 Lecture 4

CPE 310: Numerical Analysis for Engineers

MATHEMATICS FOR COMPUTER VISION WEEK 2 LINEAR SYSTEMS. Dr Fabio Cuzzolin MSc in Computer Vision Oxford Brookes University Year

Computational Techniques Prof. Sreenivas Jayanthi. Department of Chemical Engineering Indian institute of Technology, Madras

2.29 Numerical Fluid Mechanics Fall 2011 Lecture 7

Math 240 Calculus III

LU Factorization. LU factorization is the most common way of solving linear systems! Ax = b LUx = b

Solution of Linear Equations

Singular Value Decomposition

Transcription:

The Lecture Contains: Finite Difference Method Boundary conditions of the second and third kind Solution of the difference scheme: Linear case Solution of the difference scheme: nonlinear case Problems References file:///g /Numerical_solutions/lecture42/42_1.htm[8/26/2011 12:26:56 PM]

Finite Difference Method: For the direct numerical solution of a boundary value problem of class, we introduce the points, where and is an appropriate integer. A scheme is then designed for the determination of numbers which approximate the values of the true solution at the point. The natural way to obtain such a scheme is to demand that the a difference equation satisfy at each interior mesh point (10.22) Again the coefficients are chosen in such a way that the associated difference operator is small for a solution of. One difficulty arises here in the difference scheme. As in any algebraic problem, we need as many equations for the determination of the unknowns as there are unknowns. Since and are determined by the boundary condition, the unknowns in our case are. If the step number of the difference equation, new unknown values such as are introduced for which there is no equation. This difficulty can be circumvented by suitably modifying the difference equations near the boundary points; it does not arise at all if, the smallest possible value. If in (10.22) and if the associated difference operator has order p, the difference equation is necessarily proportional to an equation of the form (10.23) where problems are.. The difference equations most frequently used for boundary value (10.24) and (10.25) file:///g /Numerical_solutions/lecture42/42_2.htm[8/26/2011 12:26:56 PM]

Boundary conditions of the second and third kind: In addition to the boundary conditions in (10.16), which are called conditions of the first kind, there occur in practice also conditions of the form (10.26) where and are constants,. Conditions (10.26) are said to be of the second or third kind according to whether. It is easy to extend the above scheme to these cases. An additional equation for is obtained by writing (10.23) for and eliminating by means of the first equation of (10.26) where and. A similar procedure can be adopted in order to obtain an equation for. file:///g /Numerical_solutions/lecture42/42_3.htm[8/26/2011 12:26:57 PM]

Solution of the difference scheme: Linear case We introduce the vectors Y= and the matrices (in which all elements not on the main diagonal or on the diagonal adjacent to it are zero), the system of equations arising from demanding that (10.22) hold for can be written compactly in the form (10.27) file:///g /Numerical_solutions/lecture42/42_4.htm[8/26/2011 12:26:57 PM]

We first of all derive a method for solving this system when the given differential equation is linear, i.e. is of the form where and are given functions. Defining the diagonal matrix and the vector we may write The system (10.27) now reduces to the system of linear equations, (10.28) where (10.29) file:///g /Numerical_solutions/lecture42/42_5.htm[8/26/2011 12:26:57 PM]

Although the order of the linear system (10.28) may be large (indeed, the order tends to infinity as ), its numerical solution is relatively easy owing to the fact that the matrix A shares with the matrices J and B the property of having non zero elements only on the main diagonal and the two diagonals adjacent to It. Matrices of this kind are called tri diagonal. In fact, if, we have by virtue of (10.29) and for Linear systems involving non-singular tri diagonal matrices are most easily solved by an adaptation of the Gaussian algorithm which may conveniently be summarized as follows. Assume we have succeeded in determining two nonsingular matrices and of the special form U = having the property that (10.30) file:///g /Numerical_solutions/lecture42/42_6.htm[8/26/2011 12:26:58 PM]

In order to solve (10.28), we first determine the vector Z such that (10.31) and then y such that (10.32) Since the vector y thus determined satisfies (10.28). In order to carry out this method, we note that (10.30) is equivalent to the relations (10.33) (10.34) (10.35) (10.36) Relation (10.36) immediately yields and recursively, as follows: relations (10.34) and (10.35) may be rearranged to yield (10.37) (10.38) (10.39) The algorithm (10.38) and (10.39) breaks down when. If this is the case, then, denoting by the determinant of the matrix A, we have, and A is singular. file:///g /Numerical_solutions/lecture42/42_7.htm[8/26/2011 12:26:58 PM]

The vector Z can be determined simultaneously with L from the relations, which may be recursively arranged in the from (10.40) (10.41) If (10.32) is written out in components, we find These relations can be arranged so as to furnish the components of, starting with the last component. One finds (10.42) (10.43) file:///g /Numerical_solutions/lecture42/42_8.htm[8/26/2011 12:26:58 PM]

The complete procedure may be summarized as follows: 1. Calculate and, starting with, from the relations : The quantities need not be saved, unless the same system is solved repeatedly for different non homogeneous terms. The quantities and are not used after and have been computed. 2. Calculate, stating with, form the relations: The whole process requires approximately additions, multiplications and divisions. This compares very favorably to the system with a matrix of order multiplications alone that have to be performed in the solution of a that has no zero elements. Solution of the difference scheme: nonlinear case. If the function is not linear in, one can not hope to solve the system (10.27) by algebraic methods. Some iterative procedure must be resorted to. The method which is recommended for this purpose is generalization of the Newton-Raphson method to systems of transcendental equations. In the case of a single equation, the Newton-Raphson method consists of linearizing the given function by replacing by its differential at a point believed to be close to the actual solution, and solving the linearized equation. The value is then accepted as a better approximation, and the process is continued if necessary. Quite analogously if equation is a vector believed to be close to the actual solution of the (10.44) so that the residual vector (10.45) is small, we replace the increments of the function by their differentials at the point file:///g /Numerical_solutions/lecture42/42_9.htm[8/26/2011 12:26:59 PM]

and solve the resulting linear system of equations for the increment of the vector, which we shall call by. Since the expression is already linear in, the differential of the vector at is found to be, where denotes the diagonal matrix (10.46) file:///g /Numerical_solutions/lecture42/42_9.htm[8/26/2011 12:26:59 PM]

The linearized system (10.44) thus reads (10.47) and its solution is given by provided that the inverse of the matrix exists for. If all goes well, the vector will be a better approximation to the exact solution, the residual vector will be smaller, and the process can be repeated with taking the place of, etc. until the convergence is achieved. Since for problems of class M, the system (10.44) has a unique solution for sufficiently small values of, and it is known that Newton's method produces a sequence of vectors which converges rapidly to provided that the initial approximation is not too bad. Here we are mainly concerned with the question of computational technique. In this respect it should be noted that for the solution of (10.47) it is not necessary to calculate the inverse of the matrix. All that is required is the solution of the system of linear equations For the components of. This solution is greatly facilitated by the fact that the matrix is again tri-diagonal. In fact, if, we have and all other elements are zero. The method described for the linear case thus is immediately applicable. The only work that is required for one step of Newton's method in addition to the work involved in the solution of a linear system is the evaluation of the residual vector and of the partial derivative (n = 1, 2,, N -1). file:///g /Numerical_solutions/lecture42/42_10.htm[8/26/2011 12:26:59 PM]

Problems 1. Determine the Constant (correct to two places) such that the problem has a solution satisfying 2. Solve the boundary value problem using second and forth order difference methods with. 3. Solve the boundary value problem using a second order difference method with. Solve we nonlinear difference equation by Newton's method, using an initial approximation as the solution of the given problem after omitting the term. file:///g /Numerical_solutions/lecture42/42_11.htm[8/26/2011 12:26:59 PM]

References Butcher, J, C.; The Numerical Analysis of ordinary Differential Equations, John Wiley & sons, 1987 Coddington, E. A., and Levinson, N., Theory of ordinary Differential Equations, McGraw Hill, New York, 1955. Gear, W. F.; Numerical Initial value Problems in ordinary Differential Equations, Prentice Hall, 1971 Henrici, Peter; Discrete Variable Methods in ordinary Differential Equations, John Wiley, 1962. Jain, M. K., Numerical Solution of Differential Equations, Wiley Eastern Limited, 1984. Keller, H.B.; Numerical Methods for Two-Point Boundary Value Problems, Blaisdell, 1968. Lambert, J.D.; Computational Methods in ordinary Differential Equations, John Wiley, 1973. file:///g /Numerical_solutions/lecture42/42_12.htm[8/26/2011 12:27:00 PM]