Numerical Methods School of Mechanical Engineering Chung-Ang University

Similar documents
18 Numerical Integration of Functions

Numerical Integration of Functions

Numerical Methods School of Mechanical Engineering Chung-Ang University

F O R SOCI AL WORK RESE ARCH

T i t l e o f t h e w o r k : L a M a r e a Y o k o h a m a. A r t i s t : M a r i a n o P e n s o t t i ( P l a y w r i g h t, D i r e c t o r )

Chapter 5: Numerical Integration and Differentiation

Numerical Integra/on

Optimal Variable-Structure Control Tracking of Spacecraft Maneuvers

Numerical Integra/on

Survey Sampling. 1 Design-based Inference. Kosuke Imai Department of Politics, Princeton University. February 19, 2013

ELEC E7210: Communication Theory. Lecture 4: Equalization

AN INTRODUCTION TO NUMERICAL METHODS USING MATHCAD. Mathcad Release 14. Khyruddin Akbar Ansari, Ph.D., P.E.

Mathcad Lecture #5 In-class Worksheet Plotting and Calculus

CONTROL CHARTS FOR VARIABLES

Numerical Methods School of Mechanical Engineering Chung-Ang University

Linear First-Order Equations

Numerical Methods School of Mechanical Engineering Chung-Ang University

Computing Exact Confidence Coefficients of Simultaneous Confidence Intervals for Multinomial Proportions and their Functions

Exponential Tracking Control of Nonlinear Systems with Actuator Nonlinearity

AN INTRODUCTION TO NUMERICAL METHODS USING MATHCAD. Mathcad Release 13. Khyruddin Akbar Ansari, Ph.D., P.E.

This module is part of the. Memobust Handbook. on Methodology of Modern Business Statistics

CE2253- APPLIED HYDRAULIC ENGINEERING (FOR IV SEMESTER)

Stopping-Set Enumerator Approximations for Finite-Length Protograph LDPC Codes

Numerical Integration

Math 1B, lecture 8: Integration by parts

Adjustable Fractional-Delay Filters Utilizing the Farrow Structure and Multirate Techniques

CS 450 Numerical Analysis. Chapter 8: Numerical Integration and Differentiation

Cascaded redundancy reduction

Lectures - Week 10 Introduction to Ordinary Differential Equations (ODES) First Order Linear ODEs

Outline. 1 Numerical Integration. 2 Numerical Differentiation. 3 Richardson Extrapolation

Numerical integration and differentiation. Unit IV. Numerical Integration and Differentiation. Plan of attack. Numerical integration.

More from Lesson 6 The Limit Definition of the Derivative and Rules for Finding Derivatives.

DIFFERENTIAL GEOMETRY OF CURVES AND SURFACES 7. Geodesics and the Theorem of Gauss-Bonnet

A Weak First Digit Law for a Class of Sequences

Review. Numerical Methods Lecture 22. Prof. Jinbo Bi CSE, UConn

Final Exam Study Guide and Practice Problems Solutions

Monte Carlo Methods with Reduced Error

arxiv: v1 [hep-ex] 4 Sep 2018 Simone Ragoni, for the ALICE Collaboration

ELEC3114 Control Systems 1

Measuring Inconsistency of Pair-wise Comparison Matrix with Fuzzy Elements

Lecture 6: Control of Three-Phase Inverters

Constraint Reformulation and a Lagrangian Relaxation based Solution Algorithm for a Least Expected Time Path Problem Abstract 1.

Angles-Only Orbit Determination Copyright 2006 Michel Santos Page 1

Neural Network Training By Gradient Descent Algorithms: Application on the Solar Cell

Sliding mode approach to congestion control in connection-oriented communication networks

Hyperbolic Systems of Equations Posed on Erroneous Curved Domains

Equations of lines in

ECE 422 Power System Operations & Planning 7 Transient Stability

IE 400 Principles of Engineering Management. Graphical Solution of 2-variable LP Problems

A Modification of the Jarque-Bera Test. for Normality

NOTES ON EULER-BOOLE SUMMATION (1) f (l 1) (n) f (l 1) (m) + ( 1)k 1 k! B k (y) f (k) (y) dy,

Nonlinear Adaptive Ship Course Tracking Control Based on Backstepping and Nussbaum Gain

Examining Geometric Integration for Propagating Orbit Trajectories with Non-Conservative Forcing

ALLEN. Pre Nurture & Career Foundation Division For Class 6th to 10th, NTSE & Olympiads. å 7 3 REGIONAL MATHEMATICAL OLYMPIAD-2017 SOLUTION

A New Backstepping Sliding Mode Guidance Law Considering Control Loop Dynamics

Math 1272 Solutions for Spring 2005 Final Exam. asked to find the limit of the sequence. This is equivalent to evaluating lim. lim.

P(x) = 1 + x n. (20.11) n n φ n(x) = exp(x) = lim φ (x) (20.8) Our first task for the chain rule is to find the derivative of the exponential

Extrapolation in Numerical Integration. Romberg Integration

Construction of the Electronic Radial Wave Functions and Probability Distributions of Hydrogen-like Systems

ensembles When working with density operators, we can use this connection to define a generalized Bloch vector: v x Tr x, v y Tr y

The Principle of Least Action and Designing Fiber Optics

THE ACCURATE ELEMENT METHOD: A NEW PARADIGM FOR NUMERICAL SOLUTION OF ORDINARY DIFFERENTIAL EQUATIONS

Differentiation ( , 9.5)

Edexcel GCE A Level Maths Further Maths 3 Matrices.

A Course in Machine Learning

Numerical Integration (Quadrature) Another application for our interpolation tools!

sampling, resulting in iscrete-time, iscrete-frequency functions, before they can be implemente in any igital system an be of practical use. A consier

Research Article Finite-Time Composite Position Control for a Disturbed Pneumatic Servo System

Schrödinger s equation.

Review Topic 4: Cubic polynomials

Parameter estimation: A new approach to weighting a priori information

Balance laws on domains with moving interfaces. The enthalpy method for the ice melting problem.

Romberg Rule of Integration

MATH2231-Differentiation (2)

EXPERIMENTS IN ON-LINE LEARNING NEURO-CONTROL

Development of the Vortex Mass Flowmeter with Wall Pressure Measurement

A Note on Exact Solutions to Linear Differential Equations by the Matrix Exponential

Optimal CDMA Signatures: A Finite-Step Approach

Different Levels of Detail Display for Exposure Fusion Using Local Laplacian Filtering

Lecture 2 Lagrangian formulation of classical mechanics Mechanics

Lab 2 Iterative methods and eigenvalue problems. Introduction. Iterative solution of the soap film problem. Beräkningsvetenskap II/NV2, HT (6)

Calculus I Sec 2 Practice Test Problems for Chapter 4 Page 1 of 10

Finding the maximum and minimum magnitude responses (gains) of third-order filters without calculus

CHAPTER 3 Describing Relationships

Torque OBJECTIVE INTRODUCTION APPARATUS THEORY

Numerical Analysis Solution of Algebraic Equation (non-linear equation) 1- Trial and Error. 2- Fixed point

A Review of Multiple Try MCMC algorithms for Signal Processing

CONTROL AND PERFORMANCE OF A NINE PHASE SYNCHRONOUS RELUCTANCE DRIVE

COURSE Numerical integration of functions (continuation) 3.3. The Romberg s iterative generation method

LATTICE-BASED D-OPTIMUM DESIGN FOR FOURIER REGRESSION

Continuous observer design for nonlinear systems with sampled and delayed output measurements

Research Article When Inflation Causes No Increase in Claim Amounts

Power Generation and Distribution via Distributed Coordination Control

EE 370L Controls Laboratory. Laboratory Exercise #7 Root Locus. Department of Electrical and Computer Engineering University of Nevada, at Las Vegas

Q( t) = T C T =! " t 3,t 2,t,1# Q( t) T = C T T T. Announcements. Bezier Curves and Splines. Review: Third Order Curves. Review: Cubic Examples

Simulation of Angle Beam Ultrasonic Testing with a Personal Computer

Q Scheme Marks AOs. Notes. Ignore any extra columns with 0 probability. Otherwise 1 for each. If 4, 5 or 6 missing B0B0.

Switching Time Optimization in Discretized Hybrid Dynamical Systems

An Analytical Expression of the Probability of Error for Relaying with Decode-and-forward

Minimum-time constrained velocity planning

Transcription:

Part 5 Chapter 8 Numerical Integration of Functions Prof. Hae-Jin Choi hjchoi@cau.ac.kr Numerical Methos 00-

Chapter Objectives l Unerstaning how Richarson extrapolation provies a means to create a more accurate integral estimate by combining two less accurate estimates. l Unerstaning how Gauss quarature provies superior integral estimates by picking optimal abscissas at which to evaluate the function. l Knowing how to use MATLAB s built-in functions qua an qual to integrate functions. Numerical Methos 00-

Richarson Extrapolation(/ l Romberg Integration : A technique that is esigne to attain efficient numerical integrals of function l Richarson Extrapolation - Methos use two estimates of an integral to compute more accurate approximation. l Estimate an the error of the composite trapezoial rule I I( h + E( h l Two separate estimates using ifferent step size I h + E( h I( h + E( ( h l Error of composite trapezoial rule b - a E @ - h f Numerical Methos 00-

Richarson Extrapolation(/ l Ratio of the two errors E( h h æ @ h ö or E( h @ E( h E( h h ç è h ø æ h ö I( h - I( \ I( h + E( h ç I( h + E( h or E( h h - ( h è ø / h l If two O(h estimates I(h an I(h are calculate for an integral using step sizes of h an h, respectively, an improve O(h 4 estimate may be forme using: I I( h + E( h I I h + [ I( h - I( ] l For the special case where the interval is halve (h h /, this becomes: ( h ( h / h - I 4 I(h - I(h h Numerical Methos 00-4

Example 8. l Use Richarson extrapolation to evaluate the integral of the following function from a 0 to b 0.8. Exact solution is.6405. f ( x 0. +.5x - 00x + 675x - 900x + 400x 4 5 Results of single an composite integral using the trapezoial rule For n an Numerical Methos 00- I Segment n Step size h Integral e t 4 4 (.0688-0.8 0.4 0. (0.78.67467 E t.6405-.674670.7067 (e t 6.6% For n an 4 I 4 (.4848-5 0.78.0688.4848 (.0688.6467 89.5% 4.9% 9.5% E t.6405-.6467 0.07067 (e t.0%

Richarson Extrapolation(/ l For the cases where there are two O(h 4 estimates an the interval is halve (h m h l /, an improve O(h 6 estimate may be forme using: I 6 5 I m - 5 I l l For the cases where there are two O(h 6 estimates an the interval is halve (h m h l /, an improve O(h 8 estimate may be forme using: I 64 6 I m - 6 I l Numerical Methos 00-6 Where, I m more accurate estimate less accurate estimate I l

Example 8. l Q. In Ex. 8. we use Richarson extrapolation to compute two integral estimate of O(h4. To combine these two estimates to compute the integral with O(h6. Sol. I I 4 4 (.0688 - (.4848 - (0.78.67467 (.0688.6467 I 6 5 (.6467-5 (.67467.6405 à Which is the exact value of the integral. Numerical Methos 00-7

The Romberg Integration Algorithm l Note that the weighting factors for the Richarson extrapolation a up to an that as accuracy increases, the approximation using the smaller step size is given greater weight. l In general, I j,k 4 k- I j+,k- - I j,k- 4 k- - - I j+,k- an I j,k- : the more an less accurate integrals - I j,k : the new approximation. - k : the level of integration (k: original trapezoial rule, k: O(h4 estimates, k: O(h6 estimates - j is use to etermine which approximation is more accurate. 4I, - I, 4 I, I( h - I( h Numerical Methos 00-8

Romberg Algorithm Iterations l The chart below shows the process by which lower level integrations are combine to prouce more accurate estimates: Numerical Methos 00-9

MATLAB Coe for Romberg Numerical Methos 00-0

Gauss Quarature l Gauss quarature escribes a class of techniques for evaluating the area uner a straight line by joining any two points on a curve rather than simply choosing the enpoints. l The key is to choose the line that balances the positive an negative errors. I @ ( b - a f ( a + f ( b l The particular Gauss quarature formulas escribe in this section are calle Gauss- Legenre formulas Numerical Methos 00-

Gauss-Legenre Formulas l The metho of unetermine coefficients offers a thir approach (Gauss Quarature. I @ c0 f ( a + c f ( b l The trapezoial rule yiel exact results when the function being integrate is a constant or a straight line. Two simple equations are y an yx. c ( b + ò - a / 0 c -( b-a / c c b - a 0 + x b - a b - a - c0 + c b - a b - a - c + c Numerical Methos 00-0 ( b ò - a / -( b-a / 0 xx I b - a f ( a + b - a f ( b Equivalent to the trapezoial rule

Numerical Methos 00- Two point Gauss-Legenre I @ c0 f ( x0 + c f ( x Formulas x 0 an x are not fixe at the en points à four unknowns à four equations are require. It fits the integral of these functions y constant, y x, y x, y x 0 0 0 ( ( c + c ò x c x + c x 0 - ò xx - c0 x0 + cx ò x x ( c0 x0 + cx 0 - ò x x (4 - x x x - x ( Q x ¹ x c 0 0 0 0 c From ( & (4 (5 From (,(5,( From ( x0 - -0.57750K x 0.57750K - I f ( + f (

Two point Gauss-Legenre Numerical Methos 00-4 Formulas l The integration limits of previous two point Gauss-Legenre Formular are from - to. l A simple change of variable can be use to translate other limits of integration. x a ( x + a Lower limit x a à x Upper limit x b à x x a 0 0 b + a ( b + a + ( b - a x a a ( + a 0 - b a ( + a a x 0 b - a x b - a

Example 8. l Use two point Gauss-Legenre formula to evaluate the integral of the following function from x 0 an 0.8. The exact value is.6405. 4 5 f ( x 0. + 5x - 00x + 675x - 900x + 400x -Perform a change of variable so that the limits are from - to. x 0.4 + 0. 4x x 0. 4x ò 0.8 0 (0. + ò - [0. + 5x - 00x 5(0.4 + 0.4x - 900(0.4 + 0.4x + 675x 4-900x - 00(0.4 + 0.4x + 400(0.4 + 0.4x 4 + 400x 5 5 x + 675(0.4 + ]0.4x 0.4x ( f x x x - / f ( x - / 0.5674 Numerical Methos 00- / f ( x /.0587 5 I f ( x - / + f ( x /.8578

Numerical Methos 00- Higher-Point Formula I @ c 0 f ( x 0 + c f ( x +L+ c n- f x n- 6 ( <Weighting factors an functions use in Gauss-Legenre formulas> Points 4 5 6 Weighting factors c 0.0000000 c.0000000 c 0 0.5555556 c 0.8888889 c 0.5555556 c 0 0.478548 c 0.6545 c 0.6545 c 0.478548 c 0 0.6969 c 0.478687 c 0.5688889 c 0.478687 c 4 0.6969 c 0 0.745 c 0.60766 c 0.46799 c 0.46799 c 4 0.60766 c 5 0.745 Function arguments x 0 0.5775069 x 0.5775069 x 0 0.774596669 x 0.0 x 0.774596669 x 0 0.866 x 0.998044 x 0.998044 x 0.866 x 0 0.90679846 x 0.584690 x 0.0 x 0.584690 x 4 0.90679846 x 0 0.946954 x 0.660986 x 0.86986 x 0.86986 x 4 0.660986 x 5 0.946954 Truncation errors @ f (4 (x @ f (6 (x @ f (8 (x @ f (0 (x @ f ( (x

Example 8.4 l Q. Use the three point Gauss-Legenre formula to estimate the integral for the same function as in Ex. 8.. The exact value is.6405. 4 5 f ( x 0. + 5x - 00x + 675x - 900x + 400x I 0.5555556 f (-0.7745967 + 0.8888889 f (0 + 0.5555556 f (0.7745967 I 0.80 + 0.87444 + 0.4859876.6405 Because Gauss quarature requires function evaluations at nonuniformly space points within the integration interval, it is not appropriate for cases where the function is unknown. ànot suite for engineering problems that eal with tabulate ata. Where the function is known, its efficiency can have avantages. Numerical Methos 00-7

Aaptive Quarature l Methos such as Simpson s / rule has a isavantage in that it uses equally space points - if a function has regions of abrupt changes, small steps must be use over the entire omain to achieve a certain accuracy. l Aaptive quarature methos for integrating functions automatically ajust the step size so that small steps are taken in regions of sharp variations an larger steps are taken where the function changes graually. Numerical Methos 00-8

Aaptive Quarature in MATLAB MATLAB has two built-in functions for implementing aaptive quarature: qua: uses aaptive Simpson quarature; possibly more efficient for low accuracies or nonsmooth functions qual: uses Lobatto quarature; possibly more efficient for high accuracies an smooth functions q qua(fun, a, b, tol, trace, p, p, fun : function to be integrates a, b: integration bouns tol: esire absolute tolerance (efault: 0-6 trace: flag to isplay etails or not p, p, : extra parameters for fun qual has the same arguments Numerical Methos 00-9