Introduction to Numerical Analysis. Grady B. Wright Boise State University

Similar documents
Review of Power Series

Limits and Continuity

Chapter 1 Mathematical Preliminaries and Error Analysis

MATH 1231 MATHEMATICS 1B CALCULUS. Section 5: - Power Series and Taylor Series.

B553 Lecture 1: Calculus Review

Introduction to Series and Sequences Math 121 Calculus II Spring 2015

AP Calculus Chapter 9: Infinite Series

Numerical Analysis and Computing

1 Backward and Forward Error

f(x) = lim x 0 + x = lim f(x) =

2. Review of Calculus Notation. C(X) all functions continuous on the set X. C[a, b] all functions continuous on the interval [a, b].

Introduction and Review of Power Series

Absolute Convergence and the Ratio Test

Making Models with Polynomials: Taylor Series

f (x) = k=0 f (0) = k=0 k=0 a k k(0) k 1 = a 1 a 1 = f (0). a k k(k 1)x k 2, k=2 a k k(k 1)(0) k 2 = 2a 2 a 2 = f (0) 2 a k k(k 1)(k 2)x k 3, k=3

Numerical Methods in Physics and Astrophysics

PHYS 2211L - Principles of Physics Laboratory I Propagation of Errors Supplement

MTH303. Section 1.3: Error Analysis. R.Touma

SECTION 9.2: ARITHMETIC SEQUENCES and PARTIAL SUMS

Chapter One: Introduction

MATH 118, LECTURES 27 & 28: TAYLOR SERIES

e x = 1 + x + x2 2! + x3 If the function f(x) can be written as a power series on an interval I, then the power series is of the form

Cathedral Catholic High School Course Catalog

Infinite series, improper integrals, and Taylor series

Review: Power series define functions. Functions define power series. Taylor series of a function. Taylor polynomials of a function.

Introduction to Numerical Analysis

Mathematics for Engineers. Numerical mathematics

Limits at Infinity. Horizontal Asymptotes. Definition (Limits at Infinity) Horizontal Asymptotes

Chapter 4 Sequences and Series

A Brief Introduction to Numerical Methods for Differential Equations

Principles of Scientific Computing Local Analysis

Definition (The carefully thought-out calculus version based on limits).

Math 471. Numerical methods Introduction

Lecture 5: Function Approximation: Taylor Series

SOLUTION OF ALGEBRAIC AND TRANSCENDENTAL EQUATIONS BISECTION METHOD

1 Number Systems and Errors 1

1.5 F15 O Brien. 1.5: Linear Equations and Inequalities

Numerical Methods. King Saud University

An Introduction to Differential Algebra

Integration, differentiation, and root finding. Phys 420/580 Lecture 7

MATH 1910 Limits Numerically and Graphically Introduction to Limits does not exist DNE DOES does not Finding Limits Numerically

PRECALCULUS BISHOP KELLY HIGH SCHOOL BOISE, IDAHO. Prepared by Kristina L. Gazdik. March 2005

Simple Iteration, cont d

Review of Basic Concepts in Linear Algebra

LIMITS AT INFINITY MR. VELAZQUEZ AP CALCULUS

Big O Notation. P. Danziger

AP Calculus. Limits, Continuity, and Differentiability

Numerical Methods. King Saud University

80 Wyner PreCalculus Spring 2017

MATH 1231 MATHEMATICS 1B Calculus Section 4.4: Taylor & Power series.

Supplementary Trig Material

Section 4.1: Sequences and Series

Limits at. x means that x gets larger and larger without a bound. Oktay Olmez and Serhan Varma Calculus Lecture 2 1 / 1

Chapter 1: Introduction and mathematical preliminaries

MATH141: Calculus II Exam #4 review solutions 7/20/2017 Page 1

Lecture 1. MA2730: Analysis I. Lecture slides for MA2730 Analysis I. Functions Level 1 revision. MA2730: topics for Lecture 1

Absolute Convergence and the Ratio Test

Continuity. MATH 161 Calculus I. J. Robert Buchanan. Fall Department of Mathematics

Numerical differentiation

Taylor polynomials. 1. Introduction. 2. Linear approximation.

Register machines L2 18

Gaussian Elimination -(3.1) b 1. b 2., b. b n

Calculus. Central role in much of modern science Physics, especially kinematics and electrodynamics Economics, engineering, medicine, chemistry, etc.

Compute the behavior of reality even if it is impossible to observe the processes (for example a black hole in astrophysics).

LECTURE 10: REVIEW OF POWER SERIES. 1. Motivation

Topic 3 Outline. What is a Limit? Calculating Limits Infinite Limits Limits at Infinity Continuity. 1 Limits and Continuity

Homework and Computer Problems for Math*2130 (W17).

Basic Concepts in Linear Algebra

Big O Notation. P. Danziger

Sequences and Series

Jim Lambers MAT 460/560 Fall Semester Practice Final Exam

c n (x a) n c 0 c 1 (x a) c 2 (x a) 2...

Introduction to Applied Linear Algebra with MATLAB

x arctan x = x x x x2 9 +

Section 2.5. Evaluating Limits Algebraically

8.7 Taylor s Inequality Math 2300 Section 005 Calculus II. f(x) = ln(1 + x) f(0) = 0

A Review of Matrix Analysis

Error, Accuracy and Convergence

SOLVED PROBLEMS ON TAYLOR AND MACLAURIN SERIES

MAT137 Calculus! Lecture 9

Root Finding For NonLinear Equations Bisection Method

Floating Point Number Systems. Simon Fraser University Surrey Campus MACM 316 Spring 2005 Instructor: Ha Le

Math Numerical Analysis

Advanced Mathematics Unit 2 Limits and Continuity

Advanced Mathematics Unit 2 Limits and Continuity

Convergence sums and the derivative of a sequence at

Learning Objectives for Math 166

Solving Systems of Linear Equations. Classification by Number of Solutions

Math 473: Practice Problems for Test 1, Fall 2011, SOLUTIONS

Math 10850, Honors Calculus 1

Chapter 5: Limits, Continuity, and Differentiability

Induction, sequences, limits and continuity

Asymptotic Expansions

1 Question related to polynomials

d. What are the steps for finding the y intercepts algebraically?(hint: what is equal to 0?)

LECTURE NOTES ELEMENTARY NUMERICAL METHODS. Eusebius Doedel

FIXED POINT ITERATION

INFINITE SEQUENCES AND SERIES

Advanced Number Theory Note #8: Dirichlet's theorem on primes in arithmetic progressions 29 August 2012 at 19:01

Chapter 11. Taylor Series. Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 1 / 27

Transcription:

Introduction to Numerical Analysis Grady B. Wright Boise State University

Introduction Numerical Analysis: Concerned with the design, analysis, and implementation of numerical methods for obtaining approximate solutions and extracting useful information from problems that have no tractable analytical solution. Some fields where numerical analysis is used o Biology, chemistry, physics, geosciences, material science, mechanical/bio/electrical/computer/aerospace/civil engineering, finance, economics, medicine, operations research, number theory, topology, probability and statistics Recognized as a genuine field of the mathematical sciences.

Scientific process Why is numerical analysis important? Consider the following simplified model of the scientific process: Physical system Observe and collect data Conceptual interpretation Make predictions (get rich) Success Refine based on results Apply physical laws Interpret results and compare to experimental data Solve the model Mathematical model Numerical analysis fits in the solution phase, and often in the interpretation phase.

Scientific process Why is computational mathematics important? Consider the following simplified model of the scientific process: Physical system Observe and collect data Conceptual interpretation Make predictions (get rich) Success Refine based on results Model for fluid dynamics: Apply physical laws Interpret results and compare to experimental data Solve the model Mathematical model Why: The resulting models can essentially never be solved completely using analytical (pencil and paper) methods.

Simple example with no analytical solution Consider the function (called the error function): Suppose some set of measurements follow a normal distribution with mean zero and standard deviation σ. Then the probability that the error of a measurement is within ±ε is given by The definite integral defining f cannot be determined in terms of elementary functions for a general x. One must result to numerical approximation!

Simple example with no analytical solution Consider the function (called the error function): One idea: Taylor series Questions: 1. For what values of x is the series valid? 2. How many terms must be summed to get a good answer? 3. What is the error in the truncated sum? 4. How does the summation behave when done in finite precision arithmetic? 5. Is there a better approximation? These are the questions the numerical analysis addresses.

Much more complicated examples

Side bar on computational science Computational and applied math Computer Science Science and engineering = Computational Science Computational science now constitutes what many call the third pillar of the scientific enterprise, a peer alongside theory and physical experimentation. Report to the President : Computational Science : Ensuring America s Competitiveness, June 2005. Numerical analysis is one of the central components of computational science.

Algorithms Algorithms are the main product of numerical analysis. A mathematical algorithm is a formal procedure describing an ordered sequence of operations to be performed a finite number of times. Algorithms are like recipes with the basic building blocks of addition, subtraction, multiplication, and division, as well as programming constructs like for, while, and if. Simple Example: Compute the (N+1)-term Taylor series approximation to e x NX e x x k k! Algorithm written in pseudo code Input: x, N>0 Output: (N + 1)-term Taylor series approximation to e x taylor=1; factorial=1; xpowk=1; for k =1toN do factorial = factorial k xpowk = xpowk x taylor = taylor + xpowk/factorial end for k=0

Algorithms Three primary concerns for algorithms: Accuracy: How good is the algorithm at approximating the underlying quantity. Stability: Is the output of the algorithm sensitive to small changes in the input data. Efficiency: How much time does it take the algorithm to obtain a reasonable approximation. We will discuss these for the algorithms considered in this course. Some other important concerns include robustness, storage, and parallelization. o These will be considered to a lesser extent

Algorithms Algorithms can be classified into two types: Direct methods: Obtain the solution in a finite number of steps, assuming no rounding errors. Example: Solving a linear system with Gaussian elimination Iterative methods: Generate a sequence of approximation that converge to the solution as the number of steps approaches infinity. Example:

Errors Major sources of errors in numerical analysis: Truncation errors: Result from the premature termination of an infinite computation. Example: These are the primary concern of computational math. Round-off errors: Result from using floating point arithmetic. Less significant than truncation errors, but nevertheless can result in catastrophic problems (see course webpage for examples). Other errors that must be accounted for: Human errors, modeling errors, and measurement errors.

Measuring errors This course is about approximation. How do we measure errors in these approximations? Let p be an approximation to p *, then we have two ways of measuring the error: Absolute error: Relative error: Relative error is typically the best, but it depends on the problem. To illustrate this point consider the following simple example Example: What are the absolute and relative errors in these cases? Which value makes the most sense to use?

10-16 10-20 10-15 10-10 10-5 10 0 Example of truncation and round-off error Simple approximation of the derivative of a function: f 0 (x 0 ) f(x 0 + h) f(x 0 ) h As h! 0 the approximation should get better and better. Example: f(x) =sin(x), x 0 = /4 10 0 10-2 Round-o error 10-4 f 0 (x 0 ) f(x 0 + h) f(x 0 ) h 10-6 10-8 10-10 10-12 10-14 Theoretical truncation error

Convergence Some algorithms result in a sequence of approximations. We often want to know if these sequences converge and how fast. Convergence/divergence: Example:

Convergence rate and order We measure the speed of convergence of a sequence by the rate of convergence or the order of convergence. Big-O notation for understanding asymptotic behavior of functions and sequences: We say f(x) =O(g(x)) as x!1if there exists a constant M>0such that f(x) applem g(x) for all x x 0. We say a n = O(b n ) as n!1if there exists a constant C>0 such that a n applec b n for all n N. We say e(h) =O(h q ) as h! 0 if there exists positive constants q and C such that e(h) applech q Definition: Rate of convergence Example: Suppose lim p n = p and p n = O( n )with lim n!1 n!1 n = p. Then {p n } is said to converge to p with rate of convergence n. Let p n = 1 2 n 2 n 3 + 5 n 7 and n = 1 n 2.Then{p n} converges to p =0 as n!1with a rate of convergence 1 1 n 2, or p n = O n 2.

Convergence rate and order Rate of convergence looks at rate at which individual terms in the sequence approach the limit whereas order of convergence looks at how the successive difference between iterates and the limit are reduced. Definition: Order of convergence What constant does this appear to be converging to?

Useful theorems from calculus