Numerical Differentiation and Integration

Size: px
Start display at page:

Download "Numerical Differentiation and Integration"

Transcription

1 Numerical Differentiation and Integration Numerical Differentiation Finite Differences Interpolating Polynomials Taylor Series Expansion Richardson Extrapolation Numerical Integration Basic Numerical Integration Improved Numerical Integration Trapezoidal, Simpson s Rules Rhomberg Integration ITCS 4133/5133: Numerical Comp. Methods 1 Numerical Differentiation and Integration

2 Numerical Differentiation and Integration Many engineering applications require numerical estimates of derivatives of functions Especially true, when analytical solutions are not possible Differentiation: Use finite differences Integration (definite integrals): Weighted sum of function values at specified points (area under the curve). ITCS 4133/5133: Numerical Comp. Methods 2 Numerical Differentiation and Integration

3 Application:Integral of a Normal Distribution Represented as a Gaussian, a scaled form of f(x) = e x2, very important function in statistics Not easy to determine indefinite integral - use numerical techniques A = b e x2 a ITCS 4133/5133: Numerical Comp. Methods 3 Numerical Differentiation and Integration

4 Application:Integral of a Sinc f(x) = sin(x) x ITCS 4133/5133: Numerical Comp. Methods 4 Numerical Differentiation and Integration

5 Numerical Differentiation:Approach Evaluate the function at two consecutive points, separated by x, of the independent variable, and taking their difference: df(x) dx f(x + x) f(x) x Fit a function to a set of points that define the relationship between the independent and dependent variables, such as an nth order polynomial; then differentiate the polynomial ITCS 4133/5133: Numerical Comp. Methods 5 Numerical Differentiation and Integration

6 Finite Differences Forward Difference Backward Difference df(x) dx df(x) dx f(x + x) f(x) = x f(x) f(x x) = x Two Step Method, Central Difference df(x) dx f(x + x) f(x x) = 2 x ITCS 4133/5133: Numerical Comp. Methods 6 Numerical Differentiation and Integration

7 Finite Differences: Example ITCS 4133/5133: Numerical Comp. Methods 7 Numerical Differentiation and Integration

8 Forward Differences: Derivation Finite difference formulas can be derived from the Taylor series. For h = x i+1 x i, where x i < η < x i+1. f(x + h) = f(x) + hf (x) + h2 2 f (η), f (x i ) = f(x i+1) f(x i ) h h 2 f (η), ITCS 4133/5133: Numerical Comp. Methods 8 Numerical Differentiation and Integration

9 Backward Differences: Derivation For h = x i 1 x i, f(x + h) = f(x) + hf (x) + h2 2 f f(η), f(x i + h) = f(x i + x i 1 x i ) = f(x i 1 ) = f(x i ) + hf (x i ) + h2 2 f f(η) f (x i ) = f(x i 1) f(x i ) h h 2 f (η) where x i 1 < η < x i. ITCS 4133/5133: Numerical Comp. Methods 9 Numerical Differentiation and Integration

10 Central Differences: Derivation Use the next higher order Taylor polynomial, f(x i+1 ) = f(x i ) + hf (x i ) + h2 2 f (x i ) + h3 6 f (η 1 ), f(x i 1 ) = f(x i ) hf (x i ) + h2 2 f (x i ) h3 6 f (η 2 ) with x < η 1 < x + h, x h < η 2 < x Thus, or, f(x i+1 ) f(x i 1 ) = 2hf (x i ) + h3 6 [f (η 1 ) + f (η 2 )] f (x i ) = f(x i+1) f(x i 1 ) 2h h2 6 f (η), x i 1 < η < xi + 1 ITCS 4133/5133: Numerical Comp. Methods 10 Numerical Differentiation and Integration

11 Second Derivatives Thus f(x + h) = f(x) + hf (x) + h2 2 f (x) + h3 3! f (x) + h4 4! f (4) (x)(η 1 ) f(x h) = f(x) hf (x) + h2 2 f (x) h3 3! f (x) + h4 4! f (4) (x)(η 2 ) f(x + h) + f(x h) = 2f(x) + h 2 f (x) + h4 4! [f (4) (x)(η 1 ) + f (4) (x)(η 2 )] f (x) 1 h2[f(x + h) 2f(x) + f(x h)] with truncation error of the O(h 4 ) ITCS 4133/5133: Numerical Comp. Methods 11 Numerical Differentiation and Integration

12 Partial Derivatives Generally, interested in partial derivatives of functions of 2 variables, (x i, y j ), based on a mesh of points. Subscripts denote partial derivatives. ITCS 4133/5133: Numerical Comp. Methods 12 Numerical Differentiation and Integration

13 Partial Derivatives (contd) Laplacian operator: 2 u = u xx + u yy Biharmonic Operator: 4 u = u xxxx + u xxyy + u yyyy ITCS 4133/5133: Numerical Comp. Methods 13 Numerical Differentiation and Integration

14 Using Interpolating Polynomials Given a function in discrete form, the data can be interpolated to fit an nth order polynomial For those functions that are in analytical form, but difficult to differentiate, the function can be discretized and fitted by a polynomial. whose derivative is f(x) = b n x n + b n 1 x n b 1 x + b 0 df(x) dx = nb nx n 1 + (n 1)b n 2 x n b 1 ITCS 4133/5133: Numerical Comp. Methods 14 Numerical Differentiation and Integration

15 Power Series Type Interpolating Polynomial Consider the nth order polynomial passing through (n+1) points; the (n+ 1) coefficients can be uniquely determined. Example f(x) = a 0 + a 1 x + a 2 x 2 Consider f(x i ), f(x i + h), f(x i + 2h) f(x i ) = a 0 + a 1 x i + a 2 x 2 i f(x i + h) = a 0 + a 1 (x i + h) + a 2 (x i + h) 2 f(x i + 2h) = a 0 + a 1 (x i + 2h) + a 2 (x i + 2h) 2 ITCS 4133/5133: Numerical Comp. Methods 15 Numerical Differentiation and Integration

16 Example (contd) For the 3 points, x i = 0, h, 2h, which has the solution, f i = a 0 f i+1 = a 0 + a 1 h + a 2 h 2 f i+2 = a 0 + 2a 1 h + 4a 2 h 2 a 0 a 1 a 2 = f i = f i+2 + 4f i+1 3f i 2h = f i+2 2f i+1 + f i 2h 2 ITCS 4133/5133: Numerical Comp. Methods 16 Numerical Differentiation and Integration

17 Example (contd) f(x) = a 0 + a 1 x + a 2 x 2 f (x i ) = f i = f (x i = 0) = a 1 + 2a 2 x i = a 1 = f i+2 + 4f i+1 3f i 2h Similarly, second derivatives can also be obtained. ITCS 4133/5133: Numerical Comp. Methods 17 Numerical Differentiation and Integration

18 Numerical Integration Integration can be thought of as considering some continuous function f(x) and the area A subtended by it; for instance, within a particular interval A = b a f(x)dx Numerical Integration is needed when f(x) does not have a known analytical solution, or, if f(x) is only defined at discrete points. There are two approaches to a numerical solution: Fitting polynomials to f(x) and integrating using analytical calculus, Area under f(x) can be approximated using geometric shapes defined by adjacent points. ITCS 4133/5133: Numerical Comp. Methods 18 Numerical Differentiation and Integration

19 Interpolation Approach We can derive an nth order polynomial (for instance, Gregory-Newton method), which has the general form as f(x) = b 1 x n + b 2 x n b n x + b n+1 After the b i s are determined, this can be integrated as f(x)dx = b 1x n+1 n b 2x n n + + b nx 2 + b n+1 x 2 which can be solved for, within the limits of the integration ITCS 4133/5133: Numerical Comp. Methods 19 Numerical Differentiation and Integration

20 Basic Numerical Integration (Newton-Cotes Closed Formulas) Trapezoid Rule: Approximates function by a straightline to compute area under curve. b a f(x)dx h 2 [f(x 0) + f(x 1 )] Solution is exact, for polynomials of degree 1, i.e. linear functions. ITCS 4133/5133: Numerical Comp. Methods 20 Numerical Differentiation and Integration

21 Basic Numerical Integration (Newton-Cotes Closed Formulas) Simpson s Rule: Instead of a linear approximation, use a quadratic polynomial: h = b a 2, x 0 = a, x 1 = x 0 + h = b + a 2, x 2 = b Approximate integral is given by b a f(x)dx h 3 [f(x 0) + 4f(x 1 ) + f(x 2 ) ITCS 4133/5133: Numerical Comp. Methods 21 Numerical Differentiation and Integration

22 Basic Simpson s Rule: Examp1e 1 ITCS 4133/5133: Numerical Comp. Methods 22 Numerical Differentiation and Integration

23 Basic Simpson s Rule: Examp1e 2 ITCS 4133/5133: Numerical Comp. Methods 23 Numerical Differentiation and Integration

24 Improved Numerical Integration Improve the accuracy by applying lower order methods repeatedly on several subintervals. Known as composite integration Simpson, Trapezoid rules use equal subintervals; using unequal (adaptive) intervals leads to Gaussian Quadrature methods. ITCS 4133/5133: Numerical Comp. Methods 24 Numerical Differentiation and Integration

25 Composite Trapezoid Rule Approximates the area under the function f(x) by a set of discrete trapezoids fitted between each pair of points of the dependent variable (and the X axis) xn x 1 f(x)dx n 1 i=1 (x i+1 x i ) f(x i+1 + f(x i ) 2 f(x) f(x) x1 x2 x3 x4 If the intervals are the same, h = (b a)/n, we get xn x 1 f(x)dx b a 2n [f(a) + 2f(x 1) f(b)] ITCS 4133/5133: Numerical Comp. Methods 25 Numerical Differentiation and Integration x

26 Composite Trapezoid Rule:Example ITCS 4133/5133: Numerical Comp. Methods 26 Numerical Differentiation and Integration

27 Composite Trapezoid Rule:Algorithm ITCS 4133/5133: Numerical Comp. Methods 27 Numerical Differentiation and Integration

28 Composite Trapezoid Rule: Notes f(x i+1+f(x i ) 2 represents the average height of the trapezoid. Linear approximation between pairs of successive points used; error is proportional to the distance between sample points. Error Error in the trapezoidal can be approximated by Taylor s series x i+1 x i f (x) 2 where f (x) is evaluated at the value of x that maximizes the second derivative between the two sample points. ITCS 4133/5133: Numerical Comp. Methods 28 Numerical Differentiation and Integration

29 Composite Simpson s Rule Uses the same idea as the composite Trapezoid rule, by using multiple sub-intervals to improve the Simpson rule approximation. For 2 subintervals, Simpson s rule has the following form: b a f(x)dx = x2 a f(x)dx + b x 2 f(x)dx h 3 [f(a) + 4f(x 1) + f(x 2 )] + h 3 [f(x 2) + 4f(x 3 ) + f(b)] h 3 [f(a) + 4f(x 1) + 2f(x 2 ) + 4f(x 3 ) + f(b)]) Trapezoidal Rule f(x) f(x) Simpson s Rule ITCS 4133/5133: Numerical Comp. Methods 29 Numerical x a b Differentiation and Integration (a+b)/2

30 Composite Simpson s Rule (contd) For n (n must be even) subintervals, h = (b a)/n we get b a f(x)dx = h 3 [f(a) + 4f(x 1) + 2f(x 2 ) + 4f(x 3 ) + n must be even number of subintervals. 2f(x 4 ) f(x n 2 + 4f(x n 1 ) + f(b) Error Bound: Based on the 4th derivative: Error = (x i+1 x i ) 5 f (4) (x i ) 90 where f (4) (x i ) is evaluated at the value of x that maximizes the 4th derivative between the two sample points. ITCS 4133/5133: Numerical Comp. Methods 30 Numerical Differentiation and Integration

31 Composite Simpson s Rule:Example ITCS 4133/5133: Numerical Comp. Methods 31 Numerical Differentiation and Integration

32 Composite Simpson s Rule:Algorithm ITCS 4133/5133: Numerical Comp. Methods 32 Numerical Differentiation and Integration

33 Romberg Integration Simpson s rule improves on Trapezoid rule with additional evaluations of f(x), required to fit a more accurate polynomial More evaluations will further improve the integral, leading to the Romberg Integration I 01 = b a (f(a) + f(b)) 2 A second estimate can be obtained with subdividing the interval ab into 2 equal intervals is given by I 11 = b a ( f(a) + f(m) + 1 ) 2 f(b) = 1 [ ( I 01 + (b a)f a + b a )] 2 2 ITCS 4133/5133: Numerical Comp. Methods 33 Numerical Differentiation and Integration

34 Romberg Integration(contd.) A third estimate, I 21, using 3 intermediate points m 1, m 2, m 3 is given by I 21 = b a [ f(a) f(m 1) f(m 2) f(m 3) + 1 ] 4 f(b) [ = 1 I 11 + b a 3 ( f a + b a ) ] k k=1,k 2 This leads to the recursive relationship [ I i1 = 1 I i 1,1 + b a 2 i 1 ( f a + b a ) ] k, for i = 1, 2, i 1 2 i k=1,3,5 ITCS 4133/5133: Numerical Comp. Methods 34 Numerical Differentiation and Integration

35 I i1 = 1 2 [ Romberg Integration(contd.) I i 1,1 + b a 2 i 1 2 i 1 k=1,3,5 f ( a + b a ) ] k, for i = 1, 2,... 2 i We can combine these estimates using Richardson s formula, I ij = 4j 1 I i+1,j 1 I i,j 1 4 j 1 1 for i = 0, 1,..., N j + 1, j = 1, 2,... N. The estimates form an upper triangular matrix: I 01 I 02 I 03 I 04 I 0,N 1 I 0,N I 0,N+1 I 11 I 12 I 13. I 1,N 1 I 1,N I 21 I 22.. I 2,N 1 I I N 2,3. I N 1,2 I N1 ITCS 4133/5133: Numerical Comp. Methods 35 Numerical Differentiation and Integration

36 Romberg Integration(contd.) Algorithm (To solve for I 0N Determine I 01 (Trapezoid formula) Determine I i1, for i = 1, 2,... Determine I i2, I i3, etc., using Richardson s formula. ITCS 4133/5133: Numerical Comp. Methods 36 Numerical Differentiation and Integration

37 ITCS 4133/5133: Numerical Comp. Methods 37 Numerical Differentiation and Integration

Integration. Topic: Trapezoidal Rule. Major: General Engineering. Author: Autar Kaw, Charlie Barker. http://numericalmethods.eng.usf.

Integration. Topic: Trapezoidal Rule. Major: General Engineering. Author: Autar Kaw, Charlie Barker. http://numericalmethods.eng.usf. Integration Topic: Trapezoidal Rule Major: General Engineering Author: Autar Kaw, Charlie Barker 1 What is Integration Integration: The process of measuring the area under a function plotted on a graph.

More information

5 Numerical Differentiation

5 Numerical Differentiation D. Levy 5 Numerical Differentiation 5. Basic Concepts This chapter deals with numerical approximations of derivatives. The first questions that comes up to mind is: why do we need to approximate derivatives

More information

Lecture 21 Integration: Left, Right and Trapezoid Rules

Lecture 21 Integration: Left, Right and Trapezoid Rules Lecture 1 Integration: Left, Right and Trapezoid Rules The Left and Right point rules In this section, we wish to approximate a definite integral b a f(x)dx, where f(x) is a continuous function. In calculus

More information

November 16, 2015. Interpolation, Extrapolation & Polynomial Approximation

November 16, 2015. Interpolation, Extrapolation & Polynomial Approximation Interpolation, Extrapolation & Polynomial Approximation November 16, 2015 Introduction In many cases we know the values of a function f (x) at a set of points x 1, x 2,..., x N, but we don t have the analytic

More information

Taylor and Maclaurin Series

Taylor and Maclaurin Series Taylor and Maclaurin Series In the preceding section we were able to find power series representations for a certain restricted class of functions. Here we investigate more general problems: Which functions

More information

INTERPOLATION. Interpolation is a process of finding a formula (often a polynomial) whose graph will pass through a given set of points (x, y).

INTERPOLATION. Interpolation is a process of finding a formula (often a polynomial) whose graph will pass through a given set of points (x, y). INTERPOLATION Interpolation is a process of finding a formula (often a polynomial) whose graph will pass through a given set of points (x, y). As an example, consider defining and x 0 =0, x 1 = π 4, x

More information

Lesson 3. Numerical Integration

Lesson 3. Numerical Integration Lesson 3 Numerical Integration Last Week Defined the definite integral as limit of Riemann sums. The definite integral of f(t) from t = a to t = b. LHS: RHS: Last Time Estimate using left and right hand

More information

1 Review of Newton Polynomials

1 Review of Newton Polynomials cs: introduction to numerical analysis 0/0/0 Lecture 8: Polynomial Interpolation: Using Newton Polynomials and Error Analysis Instructor: Professor Amos Ron Scribes: Giordano Fusco, Mark Cowlishaw, Nathanael

More information

Numerical Analysis An Introduction

Numerical Analysis An Introduction Walter Gautschi Numerical Analysis An Introduction 1997 Birkhauser Boston Basel Berlin CONTENTS PREFACE xi CHAPTER 0. PROLOGUE 1 0.1. Overview 1 0.2. Numerical analysis software 3 0.3. Textbooks and monographs

More information

4.3 Lagrange Approximation

4.3 Lagrange Approximation 206 CHAP. 4 INTERPOLATION AND POLYNOMIAL APPROXIMATION Lagrange Polynomial Approximation 4.3 Lagrange Approximation Interpolation means to estimate a missing function value by taking a weighted average

More information

AN INTRODUCTION TO NUMERICAL METHODS AND ANALYSIS

AN INTRODUCTION TO NUMERICAL METHODS AND ANALYSIS AN INTRODUCTION TO NUMERICAL METHODS AND ANALYSIS Revised Edition James Epperson Mathematical Reviews BICENTENNIAL 0, 1 8 0 7 z ewiley wu 2007 r71 BICENTENNIAL WILEY-INTERSCIENCE A John Wiley & Sons, Inc.,

More information

Homework 2 Solutions

Homework 2 Solutions Homework Solutions Igor Yanovsky Math 5B TA Section 5.3, Problem b: Use Taylor s method of order two to approximate the solution for the following initial-value problem: y = + t y, t 3, y =, with h = 0.5.

More information

www.mathsbox.org.uk ab = c a If the coefficients a,b and c are real then either α and β are real or α and β are complex conjugates

www.mathsbox.org.uk ab = c a If the coefficients a,b and c are real then either α and β are real or α and β are complex conjugates Further Pure Summary Notes. Roots of Quadratic Equations For a quadratic equation ax + bx + c = 0 with roots α and β Sum of the roots Product of roots a + b = b a ab = c a If the coefficients a,b and c

More information

GEC320 COURSE COMPACT. Four hours per week for 15 weeks (60 hours)

GEC320 COURSE COMPACT. Four hours per week for 15 weeks (60 hours) GEC320 COURSE COMPACT Course Course code: GEC 320 Course title: Course status: Course Duration Numerical Methods (2 units) Compulsory Four hours per week for 15 weeks (60 hours) Lecturer Data Name: Engr.

More information

MATH 132: CALCULUS II SYLLABUS

MATH 132: CALCULUS II SYLLABUS MATH 32: CALCULUS II SYLLABUS Prerequisites: Successful completion of Math 3 (or its equivalent elsewhere). Math 27 is normally not a sufficient prerequisite for Math 32. Required Text: Calculus: Early

More information

Chapter 7 Numerical Differentiation and Integration

Chapter 7 Numerical Differentiation and Integration 45 We ave a abit in writing articles publised in scientiþc journals to make te work as Þnised as possible, to cover up all te tracks, to not worry about te blind alleys or describe ow you ad te wrong idea

More information

Nonlinear Algebraic Equations. Lectures INF2320 p. 1/88

Nonlinear Algebraic Equations. Lectures INF2320 p. 1/88 Nonlinear Algebraic Equations Lectures INF2320 p. 1/88 Lectures INF2320 p. 2/88 Nonlinear algebraic equations When solving the system u (t) = g(u), u(0) = u 0, (1) with an implicit Euler scheme we have

More information

1 Cubic Hermite Spline Interpolation

1 Cubic Hermite Spline Interpolation cs412: introduction to numerical analysis 10/26/10 Lecture 13: Cubic Hermite Spline Interpolation II Instructor: Professor Amos Ron Scribes: Yunpeng Li, Mark Cowlishaw, Nathanael Fillmore 1 Cubic Hermite

More information

Numerical Methods with Excel/VBA:

Numerical Methods with Excel/VBA: Numerical Methods with Excel/VBA: Many problems in Mathematics, Physics, Economics, etc can only be solved in very idealized situations in an exact analytical fashion. Even solvable problems can often

More information

Estimating the Average Value of a Function

Estimating the Average Value of a Function Estimating the Average Value of a Function Problem: Determine the average value of the function f(x) over the interval [a, b]. Strategy: Choose sample points a = x 0 < x 1 < x 2 < < x n 1 < x n = b and

More information

Derivative Approximation by Finite Differences

Derivative Approximation by Finite Differences Derivative Approximation by Finite Differences David Eberly Geometric Tools, LLC http://wwwgeometrictoolscom/ Copyright c 998-26 All Rights Reserved Created: May 3, 2 Last Modified: April 25, 25 Contents

More information

Limits and Continuity

Limits and Continuity Math 20C Multivariable Calculus Lecture Limits and Continuity Slide Review of Limit. Side limits and squeeze theorem. Continuous functions of 2,3 variables. Review: Limits Slide 2 Definition Given a function

More information

Zeros of Polynomial Functions

Zeros of Polynomial Functions Zeros of Polynomial Functions The Rational Zero Theorem If f (x) = a n x n + a n-1 x n-1 + + a 1 x + a 0 has integer coefficients and p/q (where p/q is reduced) is a rational zero, then p is a factor of

More information

Numerical integration of a function known only through data points

Numerical integration of a function known only through data points Numerical integration of a function known only through data points Suppose you are working on a project to determine the total amount of some quantity based on measurements of a rate. For example, you

More information

Numerical Methods with Excel/VBA:

Numerical Methods with Excel/VBA: Numerical Methods with Excel/VBA: Many problems in Mathematics, Physics, Economics, etc can only be solved in very idealized situations in an exact analytical fashion. Even solvable problems can often

More information

The degree of a polynomial function is equal to the highest exponent found on the independent variables.

The degree of a polynomial function is equal to the highest exponent found on the independent variables. DETAILED SOLUTIONS AND CONCEPTS - POLYNOMIAL FUNCTIONS Prepared by Ingrid Stewart, Ph.D., College of Southern Nevada Please Send Questions and Comments to ingrid.stewart@csn.edu. Thank you! PLEASE NOTE

More information

Inner Product Spaces

Inner Product Spaces Math 571 Inner Product Spaces 1. Preliminaries An inner product space is a vector space V along with a function, called an inner product which associates each pair of vectors u, v with a scalar u, v, and

More information

Computational Geometry Lab: FEM BASIS FUNCTIONS FOR A TETRAHEDRON

Computational Geometry Lab: FEM BASIS FUNCTIONS FOR A TETRAHEDRON Computational Geometry Lab: FEM BASIS FUNCTIONS FOR A TETRAHEDRON John Burkardt Information Technology Department Virginia Tech http://people.sc.fsu.edu/ jburkardt/presentations/cg lab fem basis tetrahedron.pdf

More information

SOLVING LINEAR SYSTEMS

SOLVING LINEAR SYSTEMS SOLVING LINEAR SYSTEMS Linear systems Ax = b occur widely in applied mathematics They occur as direct formulations of real world problems; but more often, they occur as a part of the numerical analysis

More information

Chapter. Numerical Calculations

Chapter. Numerical Calculations Chapter 3 Numerical Calculations 3-1 Before Performing a Calculation 3-2 Differential Calculations 3-3 Quadratic Differential Calculations 3-4 Integration Calculations 3-5 Maximum/Minimum Value Calculations

More information

2.5 ZEROS OF POLYNOMIAL FUNCTIONS. Copyright Cengage Learning. All rights reserved.

2.5 ZEROS OF POLYNOMIAL FUNCTIONS. Copyright Cengage Learning. All rights reserved. 2.5 ZEROS OF POLYNOMIAL FUNCTIONS Copyright Cengage Learning. All rights reserved. What You Should Learn Use the Fundamental Theorem of Algebra to determine the number of zeros of polynomial functions.

More information

Introduction to the Finite Element Method (FEM)

Introduction to the Finite Element Method (FEM) Introduction to the Finite Element Method (FEM) ecture First and Second Order One Dimensional Shape Functions Dr. J. Dean Discretisation Consider the temperature distribution along the one-dimensional

More information

G.A. Pavliotis. Department of Mathematics. Imperial College London

G.A. Pavliotis. Department of Mathematics. Imperial College London EE1 MATHEMATICS NUMERICAL METHODS G.A. Pavliotis Department of Mathematics Imperial College London 1. Numerical solution of nonlinear equations (iterative processes). 2. Numerical evaluation of integrals.

More information

Linear and quadratic Taylor polynomials for functions of several variables.

Linear and quadratic Taylor polynomials for functions of several variables. ams/econ 11b supplementary notes ucsc Linear quadratic Taylor polynomials for functions of several variables. c 010, Yonatan Katznelson Finding the extreme (minimum or maximum) values of a function, is

More information

Høgskolen i Narvik Sivilingeniørutdanningen STE6237 ELEMENTMETODER. Oppgaver

Høgskolen i Narvik Sivilingeniørutdanningen STE6237 ELEMENTMETODER. Oppgaver Høgskolen i Narvik Sivilingeniørutdanningen STE637 ELEMENTMETODER Oppgaver Klasse: 4.ID, 4.IT Ekstern Professor: Gregory A. Chechkin e-mail: chechkin@mech.math.msu.su Narvik 6 PART I Task. Consider two-point

More information

7.6 Approximation Errors and Simpson's Rule

7.6 Approximation Errors and Simpson's Rule WileyPLUS: Home Help Contact us Logout Hughes-Hallett, Calculus: Single and Multivariable, 4/e Calculus I, II, and Vector Calculus Reading content Integration 7.1. Integration by Substitution 7.2. Integration

More information

Numerical Methods for Engineers

Numerical Methods for Engineers Steven C. Chapra Berger Chair in Computing and Engineering Tufts University RaymondP. Canale Professor Emeritus of Civil Engineering University of Michigan Numerical Methods for Engineers With Software

More information

Two Fundamental Theorems about the Definite Integral

Two Fundamental Theorems about the Definite Integral Two Fundamental Theorems about the Definite Integral These lecture notes develop the theorem Stewart calls The Fundamental Theorem of Calculus in section 5.3. The approach I use is slightly different than

More information

3. Interpolation. Closing the Gaps of Discretization... Beyond Polynomials

3. Interpolation. Closing the Gaps of Discretization... Beyond Polynomials 3. Interpolation Closing the Gaps of Discretization... Beyond Polynomials Closing the Gaps of Discretization... Beyond Polynomials, December 19, 2012 1 3.3. Polynomial Splines Idea of Polynomial Splines

More information

Representation of functions as power series

Representation of functions as power series Representation of functions as power series Dr. Philippe B. Laval Kennesaw State University November 9, 008 Abstract This document is a summary of the theory and techniques used to represent functions

More information

(b)using the left hand end points of the subintervals ( lower sums ) we get the aprroximation

(b)using the left hand end points of the subintervals ( lower sums ) we get the aprroximation (1) Consider the function y = f(x) =e x on the interval [, 1]. (a) Find the area under the graph of this function over this interval using the Fundamental Theorem of Calculus. (b) Subdivide the interval

More information

Vector and Matrix Norms

Vector and Matrix Norms Chapter 1 Vector and Matrix Norms 11 Vector Spaces Let F be a field (such as the real numbers, R, or complex numbers, C) with elements called scalars A Vector Space, V, over the field F is a non-empty

More information

Microeconomic Theory: Basic Math Concepts

Microeconomic Theory: Basic Math Concepts Microeconomic Theory: Basic Math Concepts Matt Van Essen University of Alabama Van Essen (U of A) Basic Math Concepts 1 / 66 Basic Math Concepts In this lecture we will review some basic mathematical concepts

More information

Lectures 5-6: Taylor Series

Lectures 5-6: Taylor Series Math 1d Instructor: Padraic Bartlett Lectures 5-: Taylor Series Weeks 5- Caltech 213 1 Taylor Polynomials and Series As we saw in week 4, power series are remarkably nice objects to work with. In particular,

More information

Discrete Optimization

Discrete Optimization Discrete Optimization [Chen, Batson, Dang: Applied integer Programming] Chapter 3 and 4.1-4.3 by Johan Högdahl and Victoria Svedberg Seminar 2, 2015-03-31 Todays presentation Chapter 3 Transforms using

More information

Sequences and Series

Sequences and Series Sequences and Series Consider the following sum: 2 + 4 + 8 + 6 + + 2 i + The dots at the end indicate that the sum goes on forever. Does this make sense? Can we assign a numerical value to an infinite

More information

NUMERICAL ANALYSIS PROGRAMS

NUMERICAL ANALYSIS PROGRAMS NUMERICAL ANALYSIS PROGRAMS I. About the Program Disk This disk included with Numerical Analysis, Seventh Edition by Burden and Faires contains a C, FORTRAN, Maple, Mathematica, MATLAB, and Pascal program

More information

MATHEMATICS FOR ENGINEERING INTEGRATION TUTORIAL 3 - NUMERICAL INTEGRATION METHODS

MATHEMATICS FOR ENGINEERING INTEGRATION TUTORIAL 3 - NUMERICAL INTEGRATION METHODS MATHEMATICS FOR ENGINEERING INTEGRATION TUTORIAL - NUMERICAL INTEGRATION METHODS This tutorial is essential pre-requisite material for anyone studying mechanical engineering. This tutorial uses the principle

More information

Partitioning and Divide and Conquer Strategies

Partitioning and Divide and Conquer Strategies and Divide and Conquer Strategies Lecture 4 and Strategies Strategies Data partitioning aka domain decomposition Functional decomposition Lecture 4 and Strategies Quiz 4.1 For nuclear reactor simulation,

More information

Chebyshev Expansions

Chebyshev Expansions Chapter 3 Chebyshev Expansions The best is the cheapest. Benjamin Franklin 3.1 Introduction In Chapter, approximations were considered consisting of expansions around a specific value of the variable (finite

More information

Section 3.7. Rolle s Theorem and the Mean Value Theorem. Difference Equations to Differential Equations

Section 3.7. Rolle s Theorem and the Mean Value Theorem. Difference Equations to Differential Equations Difference Equations to Differential Equations Section.7 Rolle s Theorem and the Mean Value Theorem The two theorems which are at the heart of this section draw connections between the instantaneous rate

More information

correct-choice plot f(x) and draw an approximate tangent line at x = a and use geometry to estimate its slope comment The choices were:

correct-choice plot f(x) and draw an approximate tangent line at x = a and use geometry to estimate its slope comment The choices were: Topic 1 2.1 mode MultipleSelection text How can we approximate the slope of the tangent line to f(x) at a point x = a? This is a Multiple selection question, so you need to check all of the answers that

More information

Zeros of Polynomial Functions

Zeros of Polynomial Functions Zeros of Polynomial Functions Objectives: 1.Use the Fundamental Theorem of Algebra to determine the number of zeros of polynomial functions 2.Find rational zeros of polynomial functions 3.Find conjugate

More information

4.5 Chebyshev Polynomials

4.5 Chebyshev Polynomials 230 CHAP. 4 INTERPOLATION AND POLYNOMIAL APPROXIMATION 4.5 Chebyshev Polynomials We now turn our attention to polynomial interpolation for f (x) over [ 1, 1] based on the nodes 1 x 0 < x 1 < < x N 1. Both

More information

Polynomials. Dr. philippe B. laval Kennesaw State University. April 3, 2005

Polynomials. Dr. philippe B. laval Kennesaw State University. April 3, 2005 Polynomials Dr. philippe B. laval Kennesaw State University April 3, 2005 Abstract Handout on polynomials. The following topics are covered: Polynomial Functions End behavior Extrema Polynomial Division

More information

Section 6.4: Work. We illustrate with an example.

Section 6.4: Work. We illustrate with an example. Section 6.4: Work 1. Work Performed by a Constant Force Riemann sums are useful in many aspects of mathematics and the physical sciences than just geometry. To illustrate one of its major uses in physics,

More information

Verifying Numerical Convergence Rates

Verifying Numerical Convergence Rates 1 Order of accuracy Verifying Numerical Convergence Rates We consider a numerical approximation of an exact value u. Te approximation depends on a small parameter, suc as te grid size or time step, and

More information

Factoring Trinomials: The ac Method

Factoring Trinomials: The ac Method 6.7 Factoring Trinomials: The ac Method 6.7 OBJECTIVES 1. Use the ac test to determine whether a trinomial is factorable over the integers 2. Use the results of the ac test to factor a trinomial 3. For

More information

Applied Linear Algebra I Review page 1

Applied Linear Algebra I Review page 1 Applied Linear Algebra Review 1 I. Determinants A. Definition of a determinant 1. Using sum a. Permutations i. Sign of a permutation ii. Cycle 2. Uniqueness of the determinant function in terms of properties

More information

An important theme in this book is to give constructive definitions of mathematical objects. Thus, for instance, if you needed to evaluate.

An important theme in this book is to give constructive definitions of mathematical objects. Thus, for instance, if you needed to evaluate. Chapter 10 Series and Approximations An important theme in this book is to give constructive definitions of mathematical objects. Thus, for instance, if you needed to evaluate 1 0 e x2 dx, you could set

More information

Information Theory and Coding Prof. S. N. Merchant Department of Electrical Engineering Indian Institute of Technology, Bombay

Information Theory and Coding Prof. S. N. Merchant Department of Electrical Engineering Indian Institute of Technology, Bombay Information Theory and Coding Prof. S. N. Merchant Department of Electrical Engineering Indian Institute of Technology, Bombay Lecture - 17 Shannon-Fano-Elias Coding and Introduction to Arithmetic Coding

More information

Chapter 3 RANDOM VARIATE GENERATION

Chapter 3 RANDOM VARIATE GENERATION Chapter 3 RANDOM VARIATE GENERATION In order to do a Monte Carlo simulation either by hand or by computer, techniques must be developed for generating values of random variables having known distributions.

More information

Finite Elements for 2 D Problems

Finite Elements for 2 D Problems Finite Elements for 2 D Problems General Formula for the Stiffness Matrix Displacements (u, v) in a plane element are interpolated from nodal displacements (ui, vi) using shape functions Ni as follows,

More information

Approximating functions by Taylor Polynomials.

Approximating functions by Taylor Polynomials. Chapter 4 Approximating functions by Taylor Polynomials. 4.1 Linear Approximations We have already seen how to approximate a function using its tangent line. This was the key idea in Euler s method. If

More information

This page intentionally left blank

This page intentionally left blank This page intentionally left blank FUNDAMENTALS OF ENGINEERING NUMERICAL ANALYSIS SECOND EDITION Since the original publication of this book, available computer power has increased greatly. Today, scientific

More information

Discrete Convolution and the Discrete Fourier Transform

Discrete Convolution and the Discrete Fourier Transform Discrete Convolution and the Discrete Fourier Transform Discrete Convolution First of all we need to introduce what we might call the wraparound convention Because the complex numbers w j e i πj N have

More information

AP Calculus AB Syllabus

AP Calculus AB Syllabus Course Overview and Philosophy AP Calculus AB Syllabus The biggest idea in AP Calculus is the connections among the representations of the major concepts graphically, numerically, analytically, and verbally.

More information

Numerical Solution of Differential

Numerical Solution of Differential Chapter 13 Numerical Solution of Differential Equations We have considered numerical solution procedures for two kinds of equations: In chapter 10 the unknown was a real number; in chapter 6 the unknown

More information

Short Programs for functions on Curves

Short Programs for functions on Curves Short Programs for functions on Curves Victor S. Miller Exploratory Computer Science IBM, Thomas J. Watson Research Center Yorktown Heights, NY 10598 May 6, 1986 Abstract The problem of deducing a function

More information

Metric Spaces Joseph Muscat 2003 (Last revised May 2009)

Metric Spaces Joseph Muscat 2003 (Last revised May 2009) 1 Distance J Muscat 1 Metric Spaces Joseph Muscat 2003 (Last revised May 2009) (A revised and expanded version of these notes are now published by Springer.) 1 Distance A metric space can be thought of

More information

General Framework for an Iterative Solution of Ax b. Jacobi s Method

General Framework for an Iterative Solution of Ax b. Jacobi s Method 2.6 Iterative Solutions of Linear Systems 143 2.6 Iterative Solutions of Linear Systems Consistent linear systems in real life are solved in one of two ways: by direct calculation (using a matrix factorization,

More information

Continuity. DEFINITION 1: A function f is continuous at a number a if. lim

Continuity. DEFINITION 1: A function f is continuous at a number a if. lim Continuity DEFINITION : A function f is continuous at a number a if f(x) = f(a) REMARK: It follows from the definition that f is continuous at a if and only if. f(a) is defined. 2. f(x) and +f(x) exist.

More information

Review Solutions MAT V1102. 1. (a) If u = 4 x, then du = dx. Hence, substitution implies 1. dx = du = 2 u + C = 2 4 x + C.

Review Solutions MAT V1102. 1. (a) If u = 4 x, then du = dx. Hence, substitution implies 1. dx = du = 2 u + C = 2 4 x + C. Review Solutions MAT V. (a) If u 4 x, then du dx. Hence, substitution implies dx du u + C 4 x + C. 4 x u (b) If u e t + e t, then du (e t e t )dt. Thus, by substitution, we have e t e t dt e t + e t u

More information

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS Systems of Equations and Matrices Representation of a linear system The general system of m equations in n unknowns can be written a x + a 2 x 2 + + a n x n b a

More information

DIFFERENTIABILITY OF COMPLEX FUNCTIONS. Contents

DIFFERENTIABILITY OF COMPLEX FUNCTIONS. Contents DIFFERENTIABILITY OF COMPLEX FUNCTIONS Contents 1. Limit definition of a derivative 1 2. Holomorphic functions, the Cauchy-Riemann equations 3 3. Differentiability of real functions 5 4. A sufficient condition

More information

4/1/2017. PS. Sequences and Series FROM 9.2 AND 9.3 IN THE BOOK AS WELL AS FROM OTHER SOURCES. TODAY IS NATIONAL MANATEE APPRECIATION DAY

4/1/2017. PS. Sequences and Series FROM 9.2 AND 9.3 IN THE BOOK AS WELL AS FROM OTHER SOURCES. TODAY IS NATIONAL MANATEE APPRECIATION DAY PS. Sequences and Series FROM 9.2 AND 9.3 IN THE BOOK AS WELL AS FROM OTHER SOURCES. TODAY IS NATIONAL MANATEE APPRECIATION DAY 1 Oh the things you should learn How to recognize and write arithmetic sequences

More information

Core Maths C1. Revision Notes

Core Maths C1. Revision Notes Core Maths C Revision Notes November 0 Core Maths C Algebra... Indices... Rules of indices... Surds... 4 Simplifying surds... 4 Rationalising the denominator... 4 Quadratic functions... 4 Completing the

More information

1 if 1 x 0 1 if 0 x 1

1 if 1 x 0 1 if 0 x 1 Chapter 3 Continuity In this chapter we begin by defining the fundamental notion of continuity for real valued functions of a single real variable. When trying to decide whether a given function is or

More information

Numerical Methods for Solving Systems of Nonlinear Equations

Numerical Methods for Solving Systems of Nonlinear Equations Numerical Methods for Solving Systems of Nonlinear Equations by Courtney Remani A project submitted to the Department of Mathematical Sciences in conformity with the requirements for Math 4301 Honour s

More information

Notes on Continuous Random Variables

Notes on Continuous Random Variables Notes on Continuous Random Variables Continuous random variables are random quantities that are measured on a continuous scale. They can usually take on any value over some interval, which distinguishes

More information

The Characteristic Polynomial

The Characteristic Polynomial Physics 116A Winter 2011 The Characteristic Polynomial 1 Coefficients of the characteristic polynomial Consider the eigenvalue problem for an n n matrix A, A v = λ v, v 0 (1) The solution to this problem

More information

SMT 2014 Algebra Test Solutions February 15, 2014

SMT 2014 Algebra Test Solutions February 15, 2014 1. Alice and Bob are painting a house. If Alice and Bob do not take any breaks, they will finish painting the house in 20 hours. If, however, Bob stops painting once the house is half-finished, then the

More information

Zeros of Polynomial Functions

Zeros of Polynomial Functions Review: Synthetic Division Find (x 2-5x - 5x 3 + x 4 ) (5 + x). Factor Theorem Solve 2x 3-5x 2 + x + 2 =0 given that 2 is a zero of f(x) = 2x 3-5x 2 + x + 2. Zeros of Polynomial Functions Introduction

More information

TOPIC 4: DERIVATIVES

TOPIC 4: DERIVATIVES TOPIC 4: DERIVATIVES 1. The derivative of a function. Differentiation rules 1.1. The slope of a curve. The slope of a curve at a point P is a measure of the steepness of the curve. If Q is a point on the

More information

Examples of Functions

Examples of Functions Examples of Functions In this document is provided examples of a variety of functions. The purpose is to convince the beginning student that functions are something quite different than polynomial equations.

More information

Investigating Area Under a Curve

Investigating Area Under a Curve Mathematics Investigating Area Under a Curve About this Lesson This lesson is an introduction to areas bounded by functions and the x-axis on a given interval. Since the functions in the beginning of the

More information

In other words the graph of the polynomial should pass through the points

In other words the graph of the polynomial should pass through the points Capter 3 Interpolation Interpolation is te problem of fitting a smoot curve troug a given set of points, generally as te grap of a function. It is useful at least in data analysis (interpolation is a form

More information

Application. Outline. 3-1 Polynomial Functions 3-2 Finding Rational Zeros of. Polynomial. 3-3 Approximating Real Zeros of.

Application. Outline. 3-1 Polynomial Functions 3-2 Finding Rational Zeros of. Polynomial. 3-3 Approximating Real Zeros of. Polynomial and Rational Functions Outline 3-1 Polynomial Functions 3-2 Finding Rational Zeros of Polynomials 3-3 Approximating Real Zeros of Polynomials 3-4 Rational Functions Chapter 3 Group Activity:

More information

Average rate of change of y = f(x) with respect to x as x changes from a to a + h:

Average rate of change of y = f(x) with respect to x as x changes from a to a + h: L15-1 Lecture 15: Section 3.4 Definition of the Derivative Recall the following from Lecture 14: For function y = f(x), the average rate of change of y with respect to x as x changes from a to b (on [a,

More information

1 Error in Euler s Method

1 Error in Euler s Method 1 Error in Euler s Method Experience with Euler s 1 method raises some interesting questions about numerical approximations for the solutions of differential equations. 1. What determines the amount of

More information

1 Lecture: Integration of rational functions by decomposition

1 Lecture: Integration of rational functions by decomposition Lecture: Integration of rational functions by decomposition into partial fractions Recognize and integrate basic rational functions, except when the denominator is a power of an irreducible quadratic.

More information

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 2. x n. a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a 31 a 32 a 3n b 3. a m1 a m2 a mn b m

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 2. x n. a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a 31 a 32 a 3n b 3. a m1 a m2 a mn b m MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS 1. SYSTEMS OF EQUATIONS AND MATRICES 1.1. Representation of a linear system. The general system of m equations in n unknowns can be written a 11 x 1 + a 12 x 2 +

More information

10.2 Series and Convergence

10.2 Series and Convergence 10.2 Series and Convergence Write sums using sigma notation Find the partial sums of series and determine convergence or divergence of infinite series Find the N th partial sums of geometric series and

More information

MATH 304 Linear Algebra Lecture 20: Inner product spaces. Orthogonal sets.

MATH 304 Linear Algebra Lecture 20: Inner product spaces. Orthogonal sets. MATH 304 Linear Algebra Lecture 20: Inner product spaces. Orthogonal sets. Norm The notion of norm generalizes the notion of length of a vector in R n. Definition. Let V be a vector space. A function α

More information

m i: is the mass of each particle

m i: is the mass of each particle Center of Mass (CM): The center of mass is a point which locates the resultant mass of a system of particles or body. It can be within the object (like a human standing straight) or outside the object

More information

Stress Recovery 28 1

Stress Recovery 28 1 . 8 Stress Recovery 8 Chapter 8: STRESS RECOVERY 8 TABLE OF CONTENTS Page 8.. Introduction 8 8.. Calculation of Element Strains and Stresses 8 8.. Direct Stress Evaluation at Nodes 8 8.. Extrapolation

More information

x a x 2 (1 + x 2 ) n.

x a x 2 (1 + x 2 ) n. Limits and continuity Suppose that we have a function f : R R. Let a R. We say that f(x) tends to the limit l as x tends to a; lim f(x) = l ; x a if, given any real number ɛ > 0, there exists a real number

More information

Review of Fundamental Mathematics

Review of Fundamental Mathematics Review of Fundamental Mathematics As explained in the Preface and in Chapter 1 of your textbook, managerial economics applies microeconomic theory to business decision making. The decision-making tools

More information

Modeling, Computers, and Error Analysis Mathematical Modeling and Engineering Problem-Solving

Modeling, Computers, and Error Analysis Mathematical Modeling and Engineering Problem-Solving Next: Roots of Equations Up: Numerical Analysis for Chemical Previous: Contents Subsections Mathematical Modeling and Engineering Problem-Solving A Simple Mathematical Model Computers and Software The

More information

Comm. Korean Math. Soc. 13 (1998), No. 4, pp. 913{931 INVARIANT CUBATURE FORMULAS OVER A UNIT CUBE Kyoung Joong Kim and Man Suk Song Abstract. Using invariant theory, new invariant cubature formulas over

More information