Feb. 4 Math 2335 sec 001 Spring 2014

Similar documents
February 2 Math 2335 sec 51 Spring 2016

The method of false position is also an Enclosure or bracketing method. For this method we will be able to remedy some of the minuses of bisection.

Additional Review Exam 1 MATH 2053 Please note not all questions will be taken off of this. Study homework and in class notes as well!

MATH 104 Practice Problems for Exam 3

MATH 104 Practice Problems for Exam 3

CS227-Scientific Computing. Lecture 6: Nonlinear Equations

Introduction to Numerical Methods (Algorithm)

Lecture Quantitative Finance Spring Term 2015

Numerical Analysis Math 370 Spring 2009 MWF 11:30am - 12:25pm Fowler 110 c 2009 Ron Buckmire

Monotone, Convex and Extrema

CS 3331 Numerical Methods Lecture 2: Functions of One Variable. Cherung Lee

Solutions of Equations in One Variable. Secant & Regula Falsi Methods

Page Points Score Total: 100

Version A. Problem 1. Let X be the continuous random variable defined by the following pdf: 1 x/2 when 0 x 2, f(x) = 0 otherwise.

Chapter 7 One-Dimensional Search Methods

SOLUTIONS to Review Problems for Chapter 4. by Vladimir A. Dobrushkin

2) Endpoints of a diameter (-1, 6), (9, -2) A) (x - 2)2 + (y - 4)2 = 41 B) (x - 4)2 + (y - 2)2 = 41 C) (x - 4)2 + y2 = 16 D) x2 + (y - 2)2 = 25

Topic #1: Evaluating and Simplifying Algebraic Expressions

Lecture l(x) 1. (1) x X

Calculus Chapter 3 Smartboard Review with Navigator.notebook. November 04, What is the slope of the line segment?

This method uses not only values of a function f(x), but also values of its derivative f'(x). If you don't know the derivative, you can't use it.

GOOD LUCK! 2. a b c d e 12. a b c d e. 3. a b c d e 13. a b c d e. 4. a b c d e 14. a b c d e. 5. a b c d e 15. a b c d e. 6. a b c d e 16.

MATH20330: Optimization for Economics Homework 1: Solutions

Finding Roots by "Closed" Methods

Chapter 5 Integration

Interpolation. 1 What is interpolation? 2 Why are we interested in this?

Page Points Score Total: 100

You may be given raw data concerning costs and revenues. In that case, you ll need to start by finding functions to represent cost and revenue.

Page Points Score Total: 100

Midterm 3. Math Summer Last Name: First Name: Student Number: Section (circle one): 921 (Warren Code) or 922 (Marc Carnovale)

Calculus for Business Economics Life Sciences and Social Sciences 13th Edition Barnett SOLUTIONS MANUAL Full download at:

Name: Math 10250, Final Exam - Version A May 8, 2007

4.2 Rolle's Theorem and Mean Value Theorem

Logarithmic and Exponential Functions

GOOD LUCK! 2. a b c d e 12. a b c d e. 3. a b c d e 13. a b c d e. 4. a b c d e 14. a b c d e. 5. a b c d e 15. a b c d e. 6. a b c d e 16.

Mathematics (Project Maths Phase 2)

Queens College, CUNY, Department of Computer Science Computational Finance CSCI 365 / 765 Spring 2018 Instructor: Dr. Sateesh Mane. September 16, 2018

Lecture 7: Bayesian approach to MAB - Gittins index

Analysing and computing cash flow streams

Math 1314 Week 6 Session Notes

MATH THAT MAKES ENTS

Integrating rational functions (Sect. 8.4)

3.6. Mathematics of Finance. Copyright 2011 Pearson, Inc.

Principles of Financial Computing

Chap3a Introduction to Exponential Functions. Y = 2x + 4 Linear Increasing Slope = 2 y-intercept = (0,4) f(x) = 3(2) x

Study Guide - Part 1

Properties of IRR Equation with Regard to Ambiguity of Calculating of Rate of Return and a Maximum Number of Solutions

Finding Zeros of Single- Variable, Real Func7ons. Gautam Wilkins University of California, San Diego

: Chain Rule, Rules for Exponential and Logarithmic Functions, and Elasticity

Worksheet A ALGEBRA PMT

Exponential Functions with Base e

Final Examination Re - Calculus I 21 December 2015

Analyzing Accumulated Change: More Applications of Integrals & 7.1 Differences of Accumulated Changes

Exam Fall 2004 Prof.: Ricardo J. Caballero

Question 3: How do you find the relative extrema of a function?

Math 116: Business Calculus

Lesson Exponential Models & Logarithms

ALGEBRA 2 FINAL EXAM STUDY GUIDE

MATH Intuitive Calculus Spring 2011 Circle one: 8:50 5:30 Ms. Kracht. Name: Score: /100. EXAM 2: Version A NO CALCULATORS.

EGR 102 Introduction to Engineering Modeling. Lab 09B Recap Regression Analysis & Structured Programming

Final Exam Review. b) lim. 3. Find the limit, if it exists. If the limit is infinite, indicate whether it is + or. [Sec. 2.

MATH 105 CHAPTER 2 page 1

Math 229 FINAL EXAM Review: Fall Final Exam Monday December 11 ALL Projects Due By Monday December 11

1. MAPLE. Objective: After reading this chapter, you will solve mathematical problems using Maple

Test # 4 Review Math MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Partial Fractions. A rational function is a fraction in which both the numerator and denominator are polynomials. For example, f ( x) = 4, g( x) =

4 Total Question 4. Intro to Financial Maths: Functions & Annuities Page 8 of 17

MA 109 College Algebra EXAM 3 - REVIEW

The Intermediate Value Theorem states that if a function g is continuous, then for any number M satisfying. g(x 1 ) M g(x 2 )

MATH 142 Business Mathematics II

MATLAB - DIFFERENTIAL

Exam in TFY4275/FY8907 CLASSICAL TRANSPORT THEORY Feb 14, 2014

BARUCH COLLEGE MATH 2003 SPRING 2006 MANUAL FOR THE UNIFORM FINAL EXAMINATION

Using derivatives to find the shape of a graph

UNIT 1 THEORY OF COSUMER BEHAVIOUR: BASIC THEMES

( ) 4 ( )! x f) h(x) = 2cos x + 1

Essays on Some Combinatorial Optimization Problems with Interval Data

Analyzing Accumulated Change: More Applications of Integrals & 7.1 Differences of Accumulated Changes

Short-time-to-expiry expansion for a digital European put option under the CEV model. November 1, 2017

PRINTABLE VERSION. Practice Final Exam

Chapter 2-4 Review. Find the equation of the following graphs. Then state the domain and range: 1a) 1b) 1c)

Math 234 Spring 2013 Exam 1 Version 1 Solutions

Chapter 6 Analyzing Accumulated Change: Integrals in Action

McGILL UNIVERSITY FACULTY OF SCIENCE DEPARTMENT OF MATHEMATICS AND STATISTICS MATH THEORY OF INTEREST

EXAM #2 Review. Spring Name: MATH 142, Drost Section # Seat #

Pre-Leaving Certificate Examination, Mathematics. Paper 1. Ordinary Level Time: 2 hours, 30 minutes. 300 marks

Exercises for Chapter 8

Section 5.1 Simple and Compound Interest

Ellipsoid Method. ellipsoid method. convergence proof. inequality constraints. feasibility problems. Prof. S. Boyd, EE364b, Stanford University

Math 103: The Mean Value Theorem and How Derivatives Shape a Graph

Application of an Interval Backward Finite Difference Method for Solving the One-Dimensional Heat Conduction Problem

Introduction to Functions Section 2.1

Econ 8602, Fall 2017 Homework 2

Graph A Graph B Graph C Graph D. t g(t) h(t) k(t) f(t) Graph

f(u) can take on many forms. Several of these forms are presented in the following examples. dx, x is a variable.

Please write neatly on this document, showing all calculations, and boxing calculated answers.

2.6.3 Interest Rate 68 ESTOLA: PRINCIPLES OF QUANTITATIVE MICROECONOMICS

ECON 302: Intermediate Macroeconomic Theory (Spring ) Discussion Section Week 7 March 7, 2014

Name: CU ID#: Section #: Instructor s Name: Score:

Chapter 5 Finite Difference Methods. Math6911 W07, HM Zhu

Transcription:

Feb. 4 Math 2335 sec 001 Spring 2014 Propagated Error in Function Evaluation Let f (x) be some differentiable function. Suppose x A is an approximation to x T, and we wish to determine the function value f (x T ). We may approximate f (x T ) with f (x A ). This contains propagated error that depends both on Err(x A ) and on the nature of the function f. From the Mean Value Theorem, we have E = f (x T ) f (x A ) = f (c)(x T x A ) where c is some number between x T and x A. Assuming x A x T, then the propagated error E = f (x T ) f (x A ) f (x T )(x T x A ) f (x A )(x T x A ) = f (x A )Err(x A ). () February 4, 2014 1 / 28

Propagated Error Estimates in Function Evaluation We have the propagated error and relative error estimates and E f (x T )Err(x A ), Rel(f (x A )) f (x T )(x T x A ) f (x T ) = x T f (x T ) Rel(x A ). f (x T ) () February 4, 2014 2 / 28

Example Let f (x) = b x for some positive number b 1. Find expressions for the propagated error and relative error f (x T ) f (x A ) and Rel(f (x A )). () February 4, 2014 3 / 28

() February 4, 2014 4 / 28

Example Approximate the error and relative error when 2 22/7 is used to approximate 2 π. () February 4, 2014 5 / 28

() February 4, 2014 6 / 28

Section 3.1: Root Finding, Bisection Method Many problems in the sciences, business, manufacturing, etc. can be framed in the form: Given a function f (x), find an input value c such that f (c) = 0. For example: f (x) = F (x) and we are looking for a maximum or minimum value of F, or f (x) = h(x) g(x) and we are looking for a solution of the equation g(x) = h(x), or f is a polynomial with large degree, and we are looking for its roots () February 4, 2014 7 / 28

Motivating Example In the absence of immigration, the rate of change of a certain population is jointly proportional to the current population and the difference between the population level and the maximum number that the environment can support. The population increases due to immigration, but the rate of increase diminishes exponentially as the number of individuals increases. Letting P(t) be the population at time t, a model of this process is dp dt = P(1 P) + e P. Question: Is there an equilibrium population level? (i.e. one for which P (t) = 0.) () February 4, 2014 8 / 28

Root Finding Problems Answering the question amounts to solving the equation P(1 P) + e P = 0, an equation for which there is no convenient algebraic approach. Definition: The number x = c is called a zero of the function f (x) provided f (c) = 0. We will also call c a root of the equation f (x) = 0. () February 4, 2014 9 / 28

Bisection Method We will consider several iterative methods for root finding. To say that a method is iterative means we will Construct a sequence of steps intended to find a solution, Include an exit strategy step (test to see if the problem is solved) Repeat the steps until the exit criterion is met The first method (subject of section 3.1) is called the Bisection Method. We will assume throughout that the function f (x) is continuous on the interval a x b, and that f (a)f (b) < 0. () February 4, 2014 10 / 28

Bisection Method Example: Problem: Find a positive number c that is a zero of the function f (x) = x(1 x) + e x. Figure: Plot of f (x) = x(1 x) + e x for 0 x 2 () February 4, 2014 11 / 28

Intermediate Value Theorem Theorem: Suppose f is continuous on [a, b], and let L be any number between f (a) and f (b). Then there exists at least one number c in (a, b) such that f (c) = L. In particular, if f (a) and f (b) have opposite signs, and f is continuous on a x b, then it s graph must have an x-intercept. This means that 0 is a number between f (a) and f (b) so that the IVT guarantees at least one root of the equation f (x) = 0 on the interval. () February 4, 2014 12 / 28

How Bisection Works i We start by finding a and b such that f (a) and f (b) have opposite signs. And we set an error tolerance ɛ > 0. ii We set c = (a + b)/2, the midpoint of the interval. iii If b c < ɛ, we accept c as the root and stop 1. iv If f (b)f (c) 0, set a = c. Otherwise, set b = c. Return to step ii. Note that after each iteration, our interval is half the length from the previous step. So we are guaranteed that our interval length will eventually be less than ɛ, and we will produce the root. 1 This is the exit strategy. () February 4, 2014 13 / 28

How Bisection Works () February 4, 2014 14 / 28

Bisection Method Example Solve x(1 x) + e x = 0 using [a, b] = [0, 2] with an error tolerance of ɛ = 0.1. () February 4, 2014 15 / 28

() February 4, 2014 16 / 28

() February 4, 2014 17 / 28

() February 4, 2014 18 / 28

x(1 x) + e x = 0 Bisection Method in Matlab R Take a = 0, b = 2, and set ɛ = 0.001. a b c b c f (c) 0 2.0000 1.0000 1.0000 0.3679 1.0000 2.0000 1.5000 0.5000 0.5269 1.0000 1.5000 1.2500 0.2500 0.0260 1.0000 1.2500 1.1250 0.1250 0.1840 1.1250 1.2500 1.1875 0.0625 0.0823 1.1875 1.2500 1.2188 0.0313 0.0290 1.2188 1.2500 1.2344 0.0156 0.0017 1.2344 1.2500 1.2422 0.0078 0.0121 1.2344 1.2422 1.2383 0.0039 0.0052 1.2344 1.2383 1.2363 0.0020 0.0017 1.2344 1.2363 1.2354 0.0010 0.0000 The true root to seven decimal places is α = 1.2353462. () February 4, 2014 19 / 28

Analysis of the Bisection Method Strength: If there is one root in the interval [a, b], the bisection method will always find it to within the set tolerance! Weakness: The method is slow. It takes many more iterations than some other methods for a given tolerance. We can determine the number of iterations required as it depends on a, b and ɛ. () February 4, 2014 20 / 28

Error Bound for the Bisection Method Let α denote the exact value of the solution. And let a n, b n and c n be the computed values of a, b, and c at the n th iteration. We seek a bound on the error α c n at the n th step. () February 4, 2014 21 / 28

() February 4, 2014 22 / 28

() February 4, 2014 23 / 28

Number of Iterations Needed: Bisection Method For a given tolerance ɛ, we determined that the number of iterations n must satisfy ( ) ln b a ɛ n. ln 2 Example: Find an interval [a, b] containing the smallest positive solution of cos(x) = 1 2 + sin(x). Determine the minimum number of iterations needed to find the solution by the bisection method to within a tolerance of ɛ = 10 5. () February 4, 2014 24 / 28

() February 4, 2014 25 / 28

Example Continued... Figure: Plot of h(x) = cos(x) (blue) and g(x) = 1 2 + sin(x) (green). () February 4, 2014 26 / 28