Engineering Computation

Slides:



Advertisements
Similar presentations
Oscillations and Simple Harmonic Motion:
Advertisements

E. T. S. I. Caminos, Canales y Puertos1 Lecture 0 Engineering Computation.
E. T. S. I. Caminos, Canales y Puertos1 Engineering Computation Lecture 4.
E. T. S. I. Caminos, Canales y Puertos1 Engineering Computation Lecture 6.
E. T. S. I. Caminos, Canales y Puertos1 Engineering Computation Lecture 5.
E. T. S. I. Caminos, Canales y Puertos1 Engineering Computation Lecture 7.
E. T. S. I. Caminos, Canales y Puertos1 Lecture 2 Engineering Computation.
E. T. S. I. Caminos, Canales y Puertos1 Lecture 1 Engineering Computation.
Part 2 Chapter 6 Roots: Open Methods
Chapter 6: Roots: Open Methods
Lecture 5 Newton-Raphson Method
Part 2 Chapter 6 Roots: Open Methods
CSE 330: Numerical Methods
Open Methods Chapter 6 The Islamic University of Gaza
ROOTS OF EQUATIONS Student Notes ENGR 351 Numerical Methods for Engineers Southern Illinois University Carbondale College of Engineering Dr. L.R. Chevalier.
Engineering Computation
Open Methods Chapter 6 The Islamic University of Gaza
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 7 Roots of Equations Bracketing Methods.
Chapter 4 Roots of Equations
Roots of Equations Open Methods (Part 2).
Chapter 6 Open Methods.
Second Term 05/061 Roots of Equations Bracketing Methods.
A few words about convergence We have been looking at e a as our measure of convergence A more technical means of differentiating the speed of convergence.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 6 Roots of Equations Bracketing Methods.
Open Methods (Part 1) Fixed Point Iteration & Newton-Raphson Methods
SOLVING ALGEBRAIC EQUATIONS. Review of Matrix Form Representation of System of Linear Equations Solution Method Matrix Inversion Adjoint of a Matrix Determinant.
Roots of Equations Bracketing Methods.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 9 Roots of Equations Open Methods.
Open Methods Chapter 6 The Islamic University of Gaza
NUMERICAL METHODS WITH C++ PROGRAMMING
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 8 Roots of Equations Open Methods.
Bracketing Methods Chapter 5 The Islamic University of Gaza
Roots of Equations Open Methods Second Term 05/06.
MATH 685/ CSI 700/ OR 682 Lecture Notes Lecture 8. Nonlinear equations.
Newton-Raphson Method Electrical Engineering Majors Authors: Autar Kaw, Jai Paul Transforming Numerical Methods Education.
Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis
Newton-Raphson Method Chemical Engineering Majors Authors: Autar Kaw, Jai Paul Transforming Numerical Methods Education.
Lecture 6 Numerical Analysis. Solution of Non-Linear Equations Chapter 2.
Chapter 3 Roots of Equations. Objectives Understanding what roots problems are and where they occur in engineering and science Knowing how to determine.
Numerical Methods for Engineering MECN 3500
Numerical Methods.
Newton’s Method, Root Finding with MATLAB and Excel
Today’s class Roots of equation Finish up incremental search
4 Numerical Methods Root Finding Secant Method Modified Secant
Lecture 5 - Single Variable Problems CVEN 302 June 12, 2002.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 5 Bracketing Methods.
Solving Non-Linear Equations (Root Finding)
Numerical Methods Solution of Equation.
4 Numerical Methods Root Finding Secant Method Modified Secant
SOLVING NONLINEAR EQUATIONS. SECANT METHOD MATH-415 Numerical Analysis 1.
Newton-Raphson Method Computer Engineering Majors Authors: Autar Kaw, Jai Paul Transforming Numerical Methods Education.
Yasser F. O. Mohammad Assiut University Egypt. Previously in NM Bracketing Methods Bisection False Position Fixed Point Iteration Local Convergence Methods.
6/13/ Secant Method Computer Engineering Majors Authors: Autar Kaw, Jai Paul
Solution of Nonlinear Equations ( Root Finding Problems ) Definitions Classification of Methods  Analytical Solutions  Graphical Methods  Numerical.
CSE 330: Numerical Methods. Introduction The bisection and false position method require bracketing of the root by two guesses Such methods are called.
Solution of Nonlinear Equations ( Root Finding Problems )
Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis
Newton-Raphson Method
4 Numerical Methods Root Finding Secant Method Modified Secant
Newton-Raphson Method
Secant Method.
Secant Method – Derivation
Numerical Analysis Lecture 7.
Computers in Civil Engineering 53:081 Spring 2003
SOLUTION OF NONLINEAR EQUATIONS
Nonlinear equations.
Nonlinear equations.
Chemical Engineering Majors Authors: Autar Kaw, Jai Paul
ROOTS OF EQUATIONS.
Newton-Raphson Method
Presentation transcript:

Engineering Computation Lecture 3 E. T. S. I. Caminos, Canales y Puertos

Solve for x, given that f(x) = 0 -or- Roots of Equations Objective: Solve for x, given that f(x) = 0 -or- Equivalently, solve for x such that g(x) = h(x) ==> f(x) = g(x) – h(x) = 0 E. T. S. I. Caminos, Canales y Puertos

Roots of Equations Chemical Engineering (C&C 8.1, p. 187): van der Waals equation; v = V/n (= volume/# moles) Find the molal volume v such that p = pressure, T = temperature, R = universal gas constant, a & b = empirical constants E. T. S. I. Caminos, Canales y Puertos

Roots of Equations Civil Engineering (C&C Prob. 8.17, p. 205): Find the horizontal component of tension, H, in a cable that passes through (0,y0) and (x,y) w = weight per unit length of cable E. T. S. I. Caminos, Canales y Puertos

Roots of Equations Electrical Engineering (C&C 8.3, p. 194): Find the resistance, R, of a circuit such that the charge reaches q at specified time t L = inductance, C = capacitance, q0 = initial charge E. T. S. I. Caminos, Canales y Puertos

Roots of Equations Mechanical Engineering (C&C 8.4, p. 196): Find the value of stiffness k of a vibrating mechanical system such that the displacement x(t) becomes zero at t= 0.5 s. The initial displacement is x0 and the initial velocity is zero. The mass m and damping c are known, and λ = c/(2m). in which E. T. S. I. Caminos, Canales y Puertos

Determine real roots of : Roots of Equations Determine real roots of : Algebraic equations (including polynomials) Transcendental equations such as f(x) = sin(x) + e-x Combinations thereof E. T. S. I. Caminos, Canales y Puertos

Roots of Equations Engineering Economics Example: A municipal bond has an annual payout of $1,000 for 20 years. It costs $7,500 to purchase now. What is the implicit interest rate, i ? Solution: Present-value, PV, is: in which: PV = present value or purchase price = $7,500 A = annual payment = $1,000/yr n = number of years = 20 yrs i = interest rate = ? (as a fraction, e.g., 0.05 = 5%) E. T. S. I. Caminos, Canales y Puertos

Roots of Equations Engineering Economics Example (cont.): We need to solve the equation for i: Equivalently, find the root of: E. T. S. I. Caminos, Canales y Puertos

Roots of Equations Excel E. T. S. I. Caminos, Canales y Puertos

Roots of Equations Graphical methods: Determine the friction coefficient c necessary for a parachutist of mass 68.1 kg to have a speed of 40 m/seg at 10 seconds. Reorganizing. E. T. S. I. Caminos, Canales y Puertos

Roots of Equations Two Fundamental Approaches 1. Bracketing or Closed Methods - Bisection Method - False-position Method (Regula falsi). 2. Open Methods - Newton-Raphson Method - Secant Method - Fixed point Methods E. T. S. I. Caminos, Canales y Puertos

Bracketing Methods f(x) xl xu a) b) c) d) x In Figure a) we have the case of f(xl) and f(xu) with the same sign, and there is no root in the interval (xl,xu). In Figure b) we have the case of f(xl) and f(xu) With different sign, and there is a root in the interval (xl,xu). In Figure c) we have the case of f(xl) and f(xu) with the same sign, and there are two roots. In Figure d) we have the case of f(xl) and f(xu) with different sign, and there is an odd number of roots. E. T. S. I. Caminos, Canales y Puertos

Bracketing Methods Though the cases above are generally valid, there are cases in which they do not hold. In Figure a) we have the case of f(xl) and f(xu) with different sign, but there is a double root. f(x) xl xu a) b) c) x In Figure b) We have the case of f(xl) and f(xu) With different sign, but there are two discontinuities. In Figure c) we have the case of f(xl) and f(xu) with the same sign, but there is a multiple root. E. T. S. I. Caminos, Canales y Puertos

Bracketing Methods (Bisection method) x f(x) f(xu) (xu) (x1) f(x1) f(xr) f(x) f(xu) f(x1) (x1) (xu) (xr) f(xr) f(x1) f(xr) > 0 xr => x1 x E. T. S. I. Caminos, Canales y Puertos

Bracketing Methods (Bisection method) Advantages: 1. Simple 2. Estimate of maximum error: 3. Convergence guaranteed Disadvantages: 1. Slow 2. Requires two good initial estimates which define an interval around root: use graph of function, incremental search, or trial & error E. T. S. I. Caminos, Canales y Puertos

Bracketing Methods (False-position Method) x False-position Method f(x) f(x) f(xu) f(x1) (x1) (xu) (xr) f(xr) f(xu) (xu) (x1) f(x1) f(x1) f(xr) > 0 x1 = xr f(xr) E. T. S. I. Caminos, Canales y Puertos

Bracketing Methods (False-position Method) There are some cases in which the false position method is very slow, and the bisection method gives a faster solution. E. T. S. I. Caminos, Canales y Puertos

Bracketing Methods (False-position Method) Summary of False-Position Method: Advantages: 1. Simple 2. Brackets the Root Disadvantages: 1. Can be VERY slow 2. Like Bisection, need an initial interval around the root. E. T. S. I. Caminos, Canales y Puertos

Roots of Equations - Open Methods Characteristics: 1. Initial estimates need not bracket the root 2. Generally converge faster 3. NOT guaranteed to converge Open Methods Considered: - Fixed-point Methods - Newton-Raphson Iteration - Secant Method E. T. S. I. Caminos, Canales y Puertos

Roots of Equations Two Fundamental Approaches 1. Bracketing or Closed Methods - Bisection Method - False-position Method 2. Open Methods - One Point Iteration - Newton-Raphson Iteration - Secant Method E. T. S. I. Caminos, Canales y Puertos

Open Methods (Newton-Raphson Method) Geometrical Derivation: Slope of tangent at xi is Solve for xi+1: [Note that this is the same form as the generalized one-point iteration, xi+1 = g(xi)] E. T. S. I. Caminos, Canales y Puertos

Open Methods (Newton-Raphson Method) Tangent w/slope=f '(xi ) f(x) f(x) f(xi) f(xi) f(xi+1) f(xi+1) xi+1 x xi x (xi) xi+1 xi = xi+1 E. T. S. I. Caminos, Canales y Puertos

Open Methods a) Inflection point in the neighboor of a root. b) Oscilation in the neighboor of a maximum or minimum. c) Jumps in functions with several roots. d) Existence of a null derivative. E. T. S. I. Caminos, Canales y Puertos

Open Methods (Newton-Raphson Method) Bond Example: To apply Newton-Raphson method to: We need the derivative of the function: E. T. S. I. Caminos, Canales y Puertos

Open Methods (Secant Method) Approx. f '(x) with backward FDD: Substitute this into the N-R equation: to obtain the iterative expression: E. T. S. I. Caminos, Canales y Puertos

Open Methods (Secant Method) f(x) f(x) f(xi-1) f(xi) f(xi-1) f(xi) xi+1 xi-1 x xi+1 xi xi xi-1 x xi = xi+1 E. T. S. I. Caminos, Canales y Puertos