ME 142 Engineering Computation I Root Finding & Iterative Solutions.

Slides:



Advertisements
Similar presentations
Polynomial Inequalities in One Variable
Advertisements

Chapter 6: Roots: Open Methods
Part 2 Chapter 6 Roots: Open Methods
Roundoff and truncation errors
CSE 330: Numerical Methods
Computer Programming (TKK-2144) 13/14 Semester 1 Instructor: Rama Oktavian Office Hr.: M.13-15, W Th , F
Newton’s Method finds Zeros Efficiently finds Zeros of an equation: –Solves f(x)=0 Why do we care?
Roots: Bracketing Methods
Civil Engineering Majors Author(s): Autar Kaw, Jai Paul
ROOTS OF EQUATIONS Student Notes ENGR 351 Numerical Methods for Engineers Southern Illinois University Carbondale College of Engineering Dr. L.R. Chevalier.
Chapter 4 Roots of Equations
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 6 Roots of Equations Bracketing Methods.
Roots of Equations Bracketing Methods.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 19 Solution of Linear System of Equations - Iterative Methods.
Dr. Marco A. Arocha Aug,  “Roots” problems occur when some function f can be written in terms of one or more dependent variables x, where the.
Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis
Solving Quadratic Equations by Graphing
NUMERICAL METHODS WITH C++ PROGRAMMING
Bracketing Methods Chapter 5 The Islamic University of Gaza
CHAPTER 7-1 SOLVING SYSTEM OF EQUATIONS. WARM UP  Graph the following linear functions:  Y = 2x + 2  Y = 1/2x – 3  Y = -x - 1.
ME 142 Engineering Computation I Graphing with Excel.
Graphing absolute value functions and transformations
10/21/ Bisection Method Major: All Engineering Majors Authors: Autar Kaw, Jai Paul
Part 2 Chapter 5 Roots: Bracketing Methods PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The McGraw-Hill.
Page 224 Ex 2A Questions 1 to 7, 10, 12 & 13 Page 224 Ex 2A Questions 1 to 7, 10, 12 & 13.
Numerical Methods for Engineering MECN 3500
Using the Fundamental Theorem of Algebra 6.7. Learning Targets Students should be able to… -Use fundamental theorem of algebra to determine the number.
Newton’s Method, Root Finding with MATLAB and Excel
Numerical Methods and Computational Techniques Solution of Transcendental and Polynomial Equations.
Lecture 5 - Single Variable Problems CVEN 302 June 12, 2002.
Warm Up Write as an inequality and interval notation.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 5 Bracketing Methods.
Solution of Nonlinear Equations Topic: Bisection method
Numerical Methods Solution of Equation.
Today’s class Numerical differentiation Roots of equation Bracketing methods Numerical Methods, Lecture 4 1 Prof. Jinbo Bi CSE, UConn.
ITEC 109 Lecture 11 While loops. while loops Review Choices –1 st –2 nd to ?th –Last What happens if you only use ifs? Can you have just an else by itself?
7.4 Solving Polynomial Equations
1/29/ Bisection Method Computer Engineering Majors Authors: Autar Kaw, Jai Paul
Recursive Methods for Finding Roots of Functions Bisection & Newton’s Method.
SOLVING NONLINEAR EQUATIONS. SECANT METHOD MATH-415 Numerical Analysis 1.
3/7/ Bisection Method Electrical Engineering Majors Authors: Autar Kaw, Jai Paul
Solving Inequalities Using Addition or Subtraction Honors Math – Grade 8.
LECTURE 2 OF NUMERICAL METHODS 7.2 Solutions of Non-Linear Equations.
CSE 330: Numerical Methods. What is true error? True error is the difference between the true value (also called the exact value) and the approximate.
Lecture 4 Numerical Analysis. Solution of Non-Linear Equations Chapter 2.
7/11/ Bisection Method Major: All Engineering Majors Authors: Autar Kaw, Jai Paul
Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis
Bracketing Methods (Bisection Method)
Lecture 4: Numerical Methods
Warm-up Solve by factoring: 3x2 – 16x – 7 = 5
College Algebra Chapter 3 Polynomial and Rational Functions
Bisection Method.
6.5 Solving Inequalities by Factoring
SOLUTION OF NONLINEAR EQUATIONS
Roots: Bracketing Methods
3.8 Newton’s Method How do you find a root of the following function without a graphing calculator? This is what Newton did.
3.8: Newton’s Method Greg Kelly, Hanford High School, Richland, Washington.
College Algebra Chapter 3 Polynomial and Rational Functions
Solving Linear Equations by Graphing
3.8: Newton’s Method Greg Kelly, Hanford High School, Richland, Washington.
Mechanical Engineering Majors Authors: Autar Kaw, Jai Paul
Quadratic Equation Day 4
Roots: Bracketing Methods
Copyright © Cengage Learning. All rights reserved.
MATH 1910 Chapter 3 Section 8 Newton’s Method.
Industrial Engineering Majors Authors: Autar Kaw, Jai Paul
5.8 Analyzing Graphs of Polynomials
ME 142 Engineering Computation I
Presentation transcript:

ME 142 Engineering Computation I Root Finding & Iterative Solutions

Key Concepts Find Roots by Plotting Find Roots by Bisection Routine Find Roots by using Goal Seek

Using a Graph to Find Roots

How do you plot a function in Excel?

Using a Graph to Find Roots  Approximate process  May be used as a starting process to an iterative method  May want to refine axis max/min values to focus on plot on area of interest

Example Problem  Find all the roots for the following equation: Plot (approximate)

Using a Graph to Find Roots xy

Bisection Routine

What do we mean by iterative solutions?

Bisection Routine 1.Begin with initial guess: x low, x hi 2.Calculate corresponding f(x): f(x low ), f(x hi ) f(x low )*f(x hi )<0, to ensure root lies within interval 3.Estimate Root and calculate corresponding f(x root ) 4.Determine subinterval of root If f(x low )*f(x root )<0, set x hi =x root If f(x low )*f(x root )>0, set x low =x root 5.Repeat Steps 3-4 until desired tolerance is reached

Example Problem  Find all the roots for the following equation: Bisection

Bisection Routine xy Xlowf(Xlow)Xhighf(Xhigh)Xrootf(Xroot)f(Xlow)*f(Xroot) Determine subinterval of root If f(x low )*f(x root )<0, set x hi =x root If f(x low )*f(x root )>0, set x low =x root

Goal Seek Function

What is Goal Seek?

Goal Seek Function  Begin with initial guess “x” value  Define function, f(x), related to initial guess  Use Goal Seek function to find root

Example Problem  Find all the roots for the following equation: Goal Seek

Goal Seek Function

 Accuracy of Goal Seek function can be controlled in Excel Options  You may need to set the following: Maximum Iterations Maximum Change

Review Questions

Review Question Finding Roots by Plotting A third order polynomial has how many real roots? A.0 B.1 C.2 D.3 E.Cannot tell from info given

Review Question Bisection Routine Which of the following are false statements concerning the bisection method? A.The true root must be between the initial high/low guesses B.The estimated x root is calculated by averaging the x high and x low values C.The subinterval of the true route is determined by a sign comparison of f(x) values D.All of the above are true

Review Question Using Goal Seek Goal Seek is the only Excel function available for solving problems that are iterative in nature. A.True B.False

Homework Help ‘n Hints