1 / 25

NUMERICAL ANALYSIS

NUMERICAL ANALYSIS. Course for 3rd year Electrical Engineering . By: . Dr Rania Bahgat Mohamed Amer. Department of Engineering Mathematics and Physics, Faculty of Engineering Zagazig University 2009-2010. CONTENTS OF THE COURSE:. Numerical solution of non linear equations.

florida
Download Presentation

NUMERICAL ANALYSIS

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. NUMERICAL ANALYSIS Course for 3rd year Electrical Engineering

  2. By: Dr\ Rania Bahgat Mohamed Amer Department of Engineering Mathematics and Physics, Faculty of Engineering Zagazig University 2009-2010

  3. CONTENTS OF THE COURSE: Numerical solution of non linear equations. Numerical solution of linear equations. Numerical integrations. Curve fitting Numerical solution of ordinary differential equations. Numerical solution of partial differential equations.

  4. Next The Main Menu اPrevious Numerical solution of linear equations 1- The definitions 2- Jacobi's Method 3- Gauss Seidle Method 4- Examples

  5. Next The Main Menu اPrevious 1- The definitions Linear equation A linear equation is an algebraic equation in which each term is either a constant or the product of a constant and the first power of a single variable. Linear equations can have one or more variables. The standard form Ax + By = C. a- Cannot have exponents (or powers). b - Cannot multiply or divide each other. c - Cannot be found under a root sign or square root sign (sqrt) System of linear equations In mathematics, a system of linear equations (or linear system) is a collection of linear equations involving the same set of variables. i.e. A system of linear equations is simply a two or more linear equations using the same variables. The equation may be written in compact form [A]. [x] = [b]

  6. Next The Main Menu اPrevious The augment matrix The system of linear equations is [A]nxn. [x]nx1 = [b]nx1 The augment matrix is

  7. Next The Main Menu اPrevious 2- Jacobi's Method It is iterative method for solving system of linear equations when the systems of linear equations are very large (large number of unknowns). Jacobi method converge for diagonal  dominant matrices A (diagonal entries of A larger than the others). In this method we covert the system of linear equations [A] .[ x] = [b] to [x] = [C] . [x] + d Generate a sequence of approximation x1, x2,….. where xn = Cxn-1 + d

  8. Next The Main Menu اPrevious 3- Gauss Seidle Method It is iterative method for solving system of linear equations [A] .[ x] = [b]. It is a modification to Jacobi’s method.

  9. Next The Main Menu اPrevious Example (1) Solve the linear system by Jacobi’s method 4x -y + z = 7 4x -8y+ z = -21 -2x + y + 5z = 15. Solution From the system of linear equation we get: If we start with (x0, y0, z0) = (0, 0, 0),

  10. Next The Main Menu اPrevious The iteration appears to converge to the solution (2, 4, 3)

  11. Next The Main Menu اPrevious Example (2) Solve the linear system by Gauss seidle method 4x -y + z = 7 4x -8y+ z = -21 -2x + y + 5z = 15. Solution From the system of linear equation we get: If we start with (x0, y0, z0) = (0, 0, 0),

  12. Next The Main Menu اPrevious The iteration appears to converge to the solution (2, 4, 3)

  13. Next The Main Menu اPrevious Numerical solution of non linear equations 1- The definitions 2- Bisection method 3- Simple iteration method 4- Secant method 5- Newton's method 6- System of non linear equations

  14. Next The Main Menu اPrevious 1- The definitions Non Linear equation An equation in which one or more terms have a variable of degree 2 or higher is called a nonlinear equation. The non linear equation f (x) = 0 and we find the roots of this equation. System of non linear equations A nonlinear system of equations contains at least one nonlinear equation. A system has no solution. A system has many solutions. A system has one solution. A system has two solutions

  15. Next The Main Menu اPrevious 2- Bisection method It is one of the first numerical methods to find the root of a nonlinear equation f(x) = 0 also called binary-searchmethod. The method is based on finding the root between two points. At least one root exists between the two points if the function is real, continuous, and changes sign. If the function does not change sign between the two points then there may not be any root for the equation between the two points. The steps to apply the bisection method to find the root of the equation are: 1- Choose aand bfor the root such that f(a) f(b) < 0, or in other words, f (x) changes sign between aand b. 2- Estimate the root xn such that xn = (an + bn) / 2. If f(xn) = 0, then xn is the root of the equation. If f(xn ) 0, f(xn) > 0 ,find the new estimate such that the mid point between a , xn. If f(xn) 0, f(xn) < 0, find the new estimate such that the mid point between xn , b.

  16. Next The Main Menu اPrevious 3- Simple iteration method It is the numerical method to find the root of a nonlinear equation f(x) = 0 also called method. fixed point iteration The steps to apply the simple iteration method to find the root of the equation are: 1- Choose x0. 2- The function f(x) = 0 is transformed into equation x = g(x). 3- Test the convergence 4- Compute xn+1 = g(xn) 5- If ; end

  17. Next The Main Menu اPrevious 4- Secant method It is the numerical method to find the root of a nonlinear equation f(x) = 0. The secant method is defined by the recurrence relation: It requires two initial values, x0 and x1, which should ideally be chosen to lie close to the root. The steps to apply the Secant method to find the root of the equation are: • Select x0 and x1 • 2. Evaluate f(x0) and f(x1) • 3. Evaluate xn+1 • 4. If ; end

  18. Next The Main Menu اPrevious 5- Newton's method It is the best numerical method and fast way to find the root of a nonlinear equation f(x) = 0. This method is defined by the recurrence relation: The steps to apply the Newton-Raphson method to find the root of the equation are: • 1- From f (x) get f\ (x) • 2. Choose x0 • 3. Evaluate • 4. If ; end and test the convergence

  19. Next The Main Menu اPrevious Example (1) Solve, using the Bisection method to find the positive root of the equation: f(x) = x3 + 4 x2 – 10 = 0. Solution Let x =a = 1 f(1) = –, x = b =2 f(2) = +, then the root of this equation lies between [1, 2].

  20. Next The Main Menu اPrevious Example (2) Solve, using the simple iteration method to find the positive root : f(x) = x – sin x = 0.25 correct to three decimal places. Solution f(x) = x –sin x - 0.25 = 0. Let x0 =1.2, x = sin x + 0.25. Then x = g(x) = sin x + 0.25. Test the convergence Then xn+1= g(xn) =sin xn +0.25.

  21. Next The Main Menu اPrevious Example (3) Solve, using the Secant method to find the positive root : f(x) = 0.18x3 – 0.5 x2 -2x +1 correct to four decimal places, where x0 = 4, x1 = 6. Solution

  22. Next The Main Menu اPrevious Example (4) Solve, using the Newton - Raphson method to find the positive root : f(x) = 0.18x3 – 0.5 x2 -2x +1 correct to four decimal places, Solution Let x0 = 4.5, Test the convergence

  23. Next The Main Menu اPrevious 6- System of non linear equations Let there be given a system of two equations in two unknowns, F (x, y) = 0, G (x, y) = 0. Let x = x0, y = y0 be the approximate values of the root of this system. By using Newton-Raphson’s method The general formula to get the required root is:

  24. Next The Main Menu اPrevious Example (1) Find the root of the system, F (x, y) = 4 – x2 – y2 = 0, G (x, y) = 1 – ex – y = 0. Given that (x0, y0 ) = (1, -1.7). Two steps are required. Correct to 4D. Solution We get: For (x0, y0) = (1, -1.7), we get:

  25. Next The Main Menu اPrevious Then, For (x1, y1) = (1.0043, -1.7299), we get:

More Related