Introduction to Numerical Integration Part II

Similar documents
Chapter Newton-Raphson Method of Solving a Nonlinear Equation

Rank One Update And the Google Matrix by Al Bernstein Signal Science, LLC

Lecture 36. Finite Element Methods

DCDM BUSINESS SCHOOL NUMERICAL METHODS (COS 233-8) Solutions to Assignment 3. x f(x)

Chapter Newton-Raphson Method of Solving a Nonlinear Equation

COSC 3361 Numerical Analysis I Numerical Integration and Differentiation (III) - Gauss Quadrature and Adaptive Quadrature

INTERPOLATION(1) ELM1222 Numerical Analysis. ELM1222 Numerical Analysis Dr Muharrem Mercimek

6 Roots of Equations: Open Methods

International Journal of Pure and Applied Sciences and Technology

ORDINARY DIFFERENTIAL EQUATIONS

Model Fitting and Robust Regression Methods

Partially Observable Systems. 1 Partially Observable Markov Decision Process (POMDP) Formalism

Jens Siebel (University of Applied Sciences Kaiserslautern) An Interactive Introduction to Complex Numbers

Lecture 4: Piecewise Cubic Interpolation

INTRODUCTION TO COMPLEX NUMBERS

Lecture 6: Singular Integrals, Open Quadrature rules, and Gauss Quadrature

In Calculus I you learned an approximation method using a Riemann sum. Recall that the Riemann sum is

Orthogonal Polynomials

ENGI 3424 Engineering Mathematics Five Tutorial Examples of Partial Fractions

Chapter 3 Differentiation and Integration

Least squares. Václav Hlaváč. Czech Technical University in Prague

Suppose we want to find the area under the parabola and above the x axis, between the lines x = 2 and x = -2.

Applied Statistics Qualifier Examination

Remember: Project Proposals are due April 11.

1 The Lagrange interpolation formula

An Ising model on 2-D image

The Schur-Cohn Algorithm

ITERATIVE METHODS FOR SOLVING SYSTEMS OF LINEAR ALGEBRAIC EQUATIONS

12 Iterative Methods. Linear Systems: Gauss-Seidel Nonlinear Systems Case Study: Chemical Reactions

8. INVERSE Z-TRANSFORM

Theoretical foundations of Gaussian quadrature

Section 6.1 Definite Integral

Lecture 14 Numerical integration: advanced topics

GAUSS ELIMINATION. Consider the following system of algebraic linear equations

Name: SID: Discussion Session:

MTH 146 Class 7 Notes

INSTITUTE OF AERONAUTICAL ENGINEERING Dundigal, Hyderabad

Chapter Runge-Kutta 2nd Order Method for Ordinary Differential Equations

Numerical Differentiation and Integration

The practical version

Point-based methods for estimating the length of a parametric curve

CS 373, Spring Solutions to Mock midterm 1 (Based on first midterm in CS 273, Fall 2008.)

Quiz: Experimental Physics Lab-I

5.2 Exponent Properties Involving Quotients

Advanced Machine Learning. An Ising model on 2-D image

September 13 Homework Solutions

Lecture 20: Numerical Integration III

Pyramid Algorithms for Barycentric Rational Interpolation

along the vector 5 a) Find the plane s coordinate after 1 hour. b) Find the plane s coordinate after 2 hours. c) Find the plane s coordinate

Monte Carlo method in solving numerical integration and differential equation

Chapter 3 Single Random Variables and Probability Distributions (Part 2)

I1 = I2 I1 = I2 + I3 I1 + I2 = I3 + I4 I 3

Principle Component Analysis

Numerical Integration

Before we can begin Ch. 3 on Radicals, we need to be familiar with perfect squares, cubes, etc. Try and do as many as you can without a calculator!!!

Lesson 1: Quadratic Equations

CISE 301: Numerical Methods Lecture 5, Topic 4 Least Squares, Curve Fitting

Numerical Analysis. 10th ed. R L Burden, J D Faires, and A M Burden

UNIVERSITY OF IOANNINA DEPARTMENT OF ECONOMICS. M.Sc. in Economics MICROECONOMIC THEORY I. Problem Set II

CS 331 DESIGN AND ANALYSIS OF ALGORITHMS DYNAMIC PROGRAMMING. Dr. Daisy Tang

Review of linear algebra. Nuno Vasconcelos UCSD

OPTIMISATION. Introduction Single Variable Unconstrained Optimisation Multivariable Unconstrained Optimisation Linear Programming

Chapter 1: Logarithmic functions and indices

90 S.S. Drgomr nd (t b)du(t) =u()(b ) u(t)dt: If we dd the bove two equltes, we get (.) u()(b ) u(t)dt = p(; t)du(t) where p(; t) := for ll ; t [; b]:

Lecture 2e Orthogonal Complement (pages )

NUMERICAL INTEGRATION. The inverse process to differentiation in calculus is integration. Mathematically, integration is represented by.

ESCI 342 Atmospheric Dynamics I Lesson 1 Vectors and Vector Calculus

4. Eccentric axial loading, cross-section core

Variable time amplitude amplification and quantum algorithms for linear algebra. Andris Ambainis University of Latvia

Review of Gaussian Quadrature method

Intermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4

Construction of Gauss Quadrature Rules

8 factors of x. For our second example, let s raise a power to a power:

Lecture 14: Quadrature

Goals: Determine how to calculate the area described by a function. Define the definite integral. Explore the relationship between the definite

CIS587 - Artificial Intelligence. Uncertainty CIS587 - AI. KB for medical diagnosis. Example.

A REVIEW OF CALCULUS CONCEPTS FOR JDEP 384H. Thomas Shores Department of Mathematics University of Nebraska Spring 2007

5: The Definite Integral

and that at t = 0 the object is at position 5. Find the position of the object at t = 2.

p-adic Egyptian Fractions

1B40 Practical Skills

Chapter 6 Notes, Larson/Hostetler 3e

Mathematically, integration is just finding the area under a curve from one point to another. It is b

Chapter 9 Definite Integrals

v v at 1 2 d vit at v v 2a d

Chapter Gauss-Seidel Method

1. Gauss-Jacobi quadrature and Legendre polynomials. p(t)w(t)dt, p {p(x 0 ),...p(x n )} p(t)w(t)dt = w k p(x k ),

COT4501 Spring Homework VII

Lecture 17. Integration: Gauss Quadrature. David Semeraro. University of Illinois at Urbana-Champaign. March 20, 2014

Improper Integrals. Introduction. Type 1: Improper Integrals on Infinite Intervals. When we defined the definite integral.

Numerical quadrature based on interpolating functions: A MATLAB implementation

Fall 2012 Analysis of Experimental Measurements B. Eisenstein/rev. S. Errede

Work and Energy (Work Done by a Varying Force)

Summary with Examples for Root finding Methods -Bisection -Newton Raphson -Secant

Mathematics Number: Logarithms

Demand. Demand and Comparative Statics. Graphically. Marshallian Demand. ECON 370: Microeconomic Theory Summer 2004 Rice University Stanley Gilbert

Numerical Solution of Fredholm Integral Equations of the Second Kind by using 2-Point Explicit Group Successive Over-Relaxation Iterative Method

Polynomial Approximations for the Natural Logarithm and Arctangent Functions. Math 230

SOLVING SYSTEMS OF EQUATIONS, ITERATIVE METHODS

The graphs of Rational Functions

Transcription:

Introducton to umercl Integrton Prt II CS 75/Mth 75 Brn T. Smth, UM, CS Dept. Sprng, 998 4/9/998 qud_ Intro to Gussn Qudrture s eore, the generl tretment chnges the ntegrton prolem to ndng the ntegrl w d The uncton w s ntroduced to hndle nnte ntervls, nd unctons tht hve sngulrtes n the ntervl o ntegrton. 4/9/998 qud_

Intro to Gussn Qud. Cont. gn suppose we know t dstnct ponts {,,, } nd consder the nterpoltng polynoml tht ppromtes t these ponts the nterpoltng polynoml s never ormed eplctly ut ntegrls o the Lgrnge polynomls re determned nd yeld vrous rules Smpson s, trpezodl, mdpont, w d L w d L w d 4/9/998 qud_ Intro to Gussn Qud Cont. The re clled the weghts The ormul s clled the qudrture rule ll the rules so r hve ths structure The rule ntegrte ectly ll polynomls up to certn degree, sy o degree d d s clled the degree o precson o the rule 4/9/998 qud_ 4

Intro to Gussn Qudrture Hence our ntegrton rule cn e wrtten s w d E Lst tme, we sw tht the or ed, the method o undetermned coecents llowed us to pck the weghts so tht the rule correctly ntegrted polynomls up to degree d-. 4/9/998 qud_ 5 Intro to Gussn Qudrture In the method o undetermned coecents, only the weghts re treted s unknowns. Demndng tht polynomls o degree - or less e ntegrted ectly gves use equtons we cn use to solve or the weghts. Cn we do etter, we choose the s well? 4/9/998 qud_ 6

4 4/9/998 qud_ 7 Intro to Gussn Qudrture The nswer s yes! Creully choosng the s well llows the rule to ntegrte polynomls o up to degree -. These re the Gussn qudrture rules. Guss 84, Jco86, nd Chrstoel 877 derved generl ormuls or the nd or mny choces o w. 4/9/998 qud_ 8 Emple - Gussn Qudrture s eore, t s eser to work on stndrd ntervl -, nd then trnsorm to,. d d d c d t dene w c d gves vrles chngng ξ ξ

5 4/9/998 qud_ 9 pont Gussn rule We look or rule o the orm We requre E0 or {,,, } E d 0 : : 0 : : 4/9/998 qud_ 0 pont Gussn rule cont. The lst equton ollows rom the nd, so These equtons gve : 0 : : 0.57750698966

Generl ormuls or Gussn Qudrture The modern theory o Gussn ntegrton or rtrry w, s lrgely due to Jco nd Chrstoel, who used the theory o orthogonl polynomls. They showed tht the or n -pont Gussn rule wth weght uncton w re the zeros o the th orthogonl polynoml determned y w nd the ntervl. 4/9/998 qud_ Mthemtcl nterlude... Orthogonl polynomls re dened y p pm dw p pm c δ, M c s then the polynomls re clled orthonorml. the p cn e constructed or w usng Grm-Schmdt orthogonlzton. 4/9/998 qud_ 6

Gussn Qudrture cont. The weghts,, correspondng to the hve nce representton n terms o the orthogonl polynomls, too. They re: p p p p 4/9/998 qud_ Gussn Qudrture cont. For severl common w, the polynomls, nd hence the qudrture rules re well known. E.g., Guss-Legendre, w, < <, p P Guss-Cheyshev, w, < <, p T α α Guss-Lguerre, w e,0 < <, p L Guss-Hermte, Guss-Jco 4/9/998 qud_ 4 7

Gussn Qudrture cont. One prolem wth usng sequences o Gussn rules s tht the chnge rom rule to rule. Hence, one cnnot reuse uncton vlues. Kronrod developed method o ddng ponts to the ponts o n th order Gussn rule to otn rule o degree. The weghts chnge, so must sve vlues. 4/9/998 qud_ 5 Constructng generl ntegrtor So r we hve tlked out ed ntegrton rules. I.e., s ed. ow we wnt to wrte generl purpose ntegrtor usng these ed-rules. Generl purpose ntegrtors cn e clssed s ether tertve or non-tertve dptve or non-dptve 4/9/998 qud_ 6 8

Generl purpose ntegrton Itertve schemes compute successve ppromtons to the ntegrl usng hgher order rules untl some sort o greement s reched. on-tertve schemes only do or ppromtons nd stop. dptve schemes choose the ponts t whch s evluted dependng on the ehvor o. on-dptve schemes choose ponts ndependent o. 4/9/998 qud_ 7 dptve Qudrture In n dptve scheme, the user nputs desred ccurcy reltve & solute error. ed ntegrton rule, or set o ed rules s then ppled to the ntegrton rnge. I more thn one ed rule s used, the ccurcy s tested y comprng the results o the rules. I the test ls, the ntegrton rnge s splt typclly n hl nd the rules ppled to ech pece. Ths process s repeted untl convergence. 4/9/998 qud_ 8 9

dptve Qudrture I only sngle ed rule s used, then the ntegrton rnge s splt nd the ed rule s ppled to ech pece. The ed rule s compred gnst the sum o the peces. I no greement s ound, then the peces re splt, etc. Typclly, the user lso enters tolernces or how smll the ntegrtor s llowed to dvde the rnges. 4/9/998 qud_ 9 dptve Qudrture Code n dptve ntegrtor sed on Guss-Kronrod scheme s presented n secton 5., pges 88-89. C nd F90 versons o the code re n ~smth/pulc_html/cs75/codes/c/dpt.c ~smth/pulc_html/cs75/codes/90/dpt.90 dvntges o G-K sed scheme: non-eqully spced ponts, no end ponts. reuse prevous uncton clls s much s possle. 4/9/998 qud_ 0 0

G-K sed dptve lgorthm Over th ntervl, compute ppromtons to the ntegrl Q, ˆ Q usng -pont G nd 7 pont G-K rules. Estmte error n ntervl s E Qˆ ow dvde th ntervl Q E > m ER, RER* 4/9/998 qud_ j Q j dptve lgorthm To strt the process, orm Q or [,] nd ts estmted error ERRESTE. I ERREST <TOL, SWERQ nd we stop. Otherwse, put {α,β,q,e} nto queue lnked lst nd strt the ollowng loop: 4/9/998 qud_

dptve lgorthm Loop Remove α,β,q,e rom the top o the queue compute χαβ/ compute QL or [α,χ] nd ts error EL compute QR or [χ,β] nd ts error ER SWERQLQR-Q ERRESTELER-E EL s too g, dd α,χ,ql,el to end o queue ER s too g, dd χ,β,qr,er to end o queue 4/9/998 qud_ dptve lgorthm The loop stops when The queue s empty ERREST <TOL The queue gets too lrge Too mny uncton evlutons re mde 4/9/998 qud_ 4