Lecture 1: Numerical Integration The Trapezoidal and Simpson s Rule

Similar documents
4.1 The Uniform Distribution Def n: A c.r.v. X has a continuous uniform distribution on [a, b] when its pdf is = 1 a x b

Boyce/DiPrima 9 th ed, Ch 2.1: Linear Equations; Method of Integrating Factors

Elementary Differential Equations and Boundary Value Problems

Applied Statistics and Probability for Engineers, 6 th edition October 17, 2016

Institute of Actuaries of India

5. An object moving along an x-coordinate axis with its scale measured in meters has a velocity of 6t

UNIT #5 EXPONENTIAL AND LOGARITHMIC FUNCTIONS

SOLUTIONS. 1. Consider two continuous random variables X and Y with joint p.d.f. f ( x, y ) = = = 15. Stepanov Dalpiaz

AR(1) Process. The first-order autoregressive process, AR(1) is. where e t is WN(0, σ 2 )

Let s look again at the first order linear differential equation we are attempting to solve, in its standard form:

Microscopic Flow Characteristics Time Headway - Distribution

CSE 245: Computer Aided Circuit Simulation and Verification

Discussion 06 Solutions

CPSC 211 Data Structures & Implementations (c) Texas A&M University [ 259] B-Trees

EXERCISE - 01 CHECK YOUR GRASP

Phys463.nb Conductivity. Another equivalent definition of the Fermi velocity is

fiziks Institute for NET/JRF, GATE, IIT JAM, JEST, TIFR and GRE in PHYSICAL SCIENCES MATEMATICAL PHYSICS SOLUTIONS are

3(8 ) (8 x x ) 3x x (8 )

Midterm exam 2, April 7, 2009 (solutions)

The transition:transversion rate ratio vs. the T-ratio.

DEPARTMENT OF ELECTRICAL &ELECTRONICS ENGINEERING SIGNALS AND SYSTEMS. Assoc. Prof. Dr. Burak Kelleci. Spring 2018

The Variance-Covariance Matrix

On the Derivatives of Bessel and Modified Bessel Functions with Respect to the Order and the Argument

2.1. Differential Equations and Solutions #3, 4, 17, 20, 24, 35

EE 350 Signals and Systems Spring 2005 Sample Exam #2 - Solutions

S.Y. B.Sc. (IT) : Sem. III. Applied Mathematics. Q.1 Attempt the following (any THREE) [15]

First Lecture of Machine Learning. Hung-yi Lee

Chapter 12 Introduction To The Laplace Transform

Chap.3 Laplace Transform

Decline Curves. Exponential decline (constant fractional decline) Harmonic decline, and Hyperbolic decline.

Poisson process Markov process

Chapter 5 The Laplace Transform. x(t) input y(t) output Dynamic System

1973 AP Calculus BC: Section I

u x v x dx u x v x v x u x dx d u x v x u x v x dx u x v x dx Integration by Parts Formula

Propositional Logic. Combinatorial Problem Solving (CPS) Albert Oliveras Enric Rodríguez-Carbonell. May 17, 2018

H is equal to the surface current J S

Function Spaces. a x 3. (Letting x = 1 =)) a(0) + b + c (1) = 0. Row reducing the matrix. b 1. e 4 3. e 9. >: (x = 1 =)) a(0) + b + c (1) = 0

ERROR ANALYSIS A.J. Pintar and D. Caspary Department of Chemical Engineering Michigan Technological University Houghton, MI September, 2012

Copyright 2012 Pearson Education, Inc. Publishing as Prentice Hall.

4.3 Design of Sections for Flexure (Part II)

Circuits and Systems I

Lecture 4: Laplace Transforms

Spring 2006 Process Dynamics, Operations, and Control Lesson 2: Mathematics Review

Double Slits in Space and Time

Chapter 3: Fourier Representation of Signals and LTI Systems. Chih-Wei Liu

Lecture 2: Current in RC circuit D.K.Pandey

SECTION where P (cos θ, sin θ) and Q(cos θ, sin θ) are polynomials in cos θ and sin θ, provided Q is never equal to zero.

Chapter 17 Handout: Autocorrelation (Serial Correlation)

Mathematics 1110H Calculus I: Limits, derivatives, and Integrals Trent University, Summer 2018 Solutions to the Actual Final Examination

LaPlace Transform in Circuit Analysis

Section 6.1. Question: 2. Let H be a subgroup of a group G. Then H operates on G by left multiplication. Describe the orbits for this operation.

Physics 160 Lecture 3. R. Johnson April 6, 2015

Calculus II (MAC )

Alpha and beta decay equation practice

Combinatorial Networks Week 1, March 11-12


The Science of Monetary Policy

Text: WMM, Chapter 5. Sections , ,

Consider a system of 2 simultaneous first order linear equations

Brief Introduction to Statistical Mechanics

That is, we start with a general matrix: And end with a simpler matrix:

Chapter 6 Differential Equations and Mathematical Modeling

General Notes About 2007 AP Physics Scoring Guidelines

Control System Engineering (EE301T) Assignment: 2

Logistic equation of Human population growth (generalization to the case of reactive environment).

1. Inverse Matrix 4[(3 7) (02)] 1[(0 7) (3 2)] Recall that the inverse of A is equal to:

7.4 QUANTUM MECHANICAL TREATMENT OF FLUCTUATIONS *

On General Solutions of First-Order Nonlinear Matrix and Scalar Ordinary Differential Equations

XV Exponential and Logarithmic Functions

Problem Set 6 Solutions

First derivative analysis

Transfer function and the Laplace transformation

Final Exam : Solutions

FIRST-ORDER SYSTEMS OF ORDINARY DIFFERENTIAL EQUATIONS I: Introduction and Linear Systems

I) Title: Rational Expectations and Adaptive Learning. II) Contents: Introduction to Adaptive Learning

Chapter 2 The Derivative Business Calculus 99

MA 262, Spring 2018, Final exam Version 01 (Green)

Pipe flow friction, small vs. big pipes

COHORT MBA. Exponential function. MATH review (part2) by Lucian Mitroiu. The LOG and EXP functions. Properties: e e. lim.

Thomas Whitham Sixth Form

Solution: APPM 1360 Final (150 pts) Spring (60 pts total) The following parts are not related, justify your answers:

ANSWERS TO EVEN NUMBERED EXERCISES IN CHAPTER 11

DE Dr. M. Sakalli

Voltage v(z) ~ E(z)D. We can actually get to this wave behavior by using circuit theory, w/o going into details of the EM fields!

Dealing with quantitative data and problem solving life is a story problem! Attacking Quantitative Problems

Math 34A. Final Review

( ) ( ) + = ( ) + ( )

Ch. 24 Molecular Reaction Dynamics 1. Collision Theory

The Matrix Exponential

A MATHEMATICAL MODEL FOR NATURAL COOLING OF A CUP OF TEA

Instructors Solution for Assignment 3 Chapter 3: Time Domain Analysis of LTIC Systems

ECE 344 Microwave Fundamentals

Thomas Whitham Sixth Form

Economics 201b Spring 2010 Solutions to Problem Set 3 John Zhu

The Matrix Exponential

3+<6,&6([DP. September 29, SID (last 5 digits): --

Continuous probability distributions

SUMMER 17 EXAMINATION

Homework #2: CMPT-379 Distributed on Oct 2; due on Oct 16 Anoop Sarkar

Functions of Two Random Variables

Transcription:

Lcur : Numrical ngraion Th Trapzoidal and Simpson s Rul A problm Th probabiliy of a normally disribud (man µ and sandard dviaion σ ) vn occurring bwn h valus a and b is B A P( a x b) d () π whr a µ b - µ A and B σ σ For a disribuion wih man µ and sandard dviaion σ wha is h probabiliy of an vn occurring in h inrval 3 x. No his will giv valus of A and B.An answr can b radily obaind from a numbr of wb calculaors as P( 3 x, µ, σ ) π d 0.687 () i.., ~68% of h ara in a normal disribuion lis wihin on sandard dviaion of h man. Bu how do hs calculaors work. Th objciv in () is o calcula h ingral d s hr a known ingral for h funcion Look in vain in / x hp://n.wikipdia.org/wiki/lis_of_ingrals_of_irraional_funcions So l us rcord som valus of / in our ingral domain - -0.8-0.6-0.4-0. 0 0. 0.4 0.6 0.8 0.6065 0.76 0.8353 0.93 0.980.0000 0.980 0.93 0.8353 0.76 0.6065

And hn plo h funcion.00.000 0.800 0.600 0.400 0.00 0.000 -.5 - -0.5 0 0.5.5 From h dfiniion of an ingral w know ha d s h ara undr h curv. How can w sima his. A common numrical approach is o spli h problm up ino bis a discrizaion. To sar l us choos ara srips of widh 0.. Th firs wo srips of h rquirs ara will look lik his 0.900 f ( ) / 0.3 0.800 0.700 0.600 f ( ) / 0.8 0.500 0.400 f ( ) / 0.5 0.300 0.00 0.00 0.000 -. - -0.8-0.6-0.4-0. 0

Each srip looks lik a rapzoid his is no sricly ru sinc h op lin is no sraigh bu curvd. Nvr-h-lss i is rasonabl o assum ha h op lin is sraigh hn h ara of srip is 0.5 0.3 f ( s a r ) f ( ) srip widh avrag high 0. 0.337 A s a r And of srip 0.3 0.8 f ( s a r ) f ( ) 0. 0.56 A s a r And of srip i 0 f ( s a r ( i ) ) f ( s a r Ai i ) Hnc h oal ara of h n approximaing srips is n d sar n f ( ) d [ f ( s a r ( i ) ) f ( s a r i )] (3) i whr in h cas undr considraion f ( ) s a r nd nd / s a r n s a r n (4) n 0 0. NOTE on choosing h numbr of srips n (3) and (4) will approxima any gnral dfini ingral n d f ( ) d sar Th approximaion in (3) and (4) is calld h rapzoidal rul

A sprad sh calculaion for our xampl problm wih n 0 srips givs d.707 -valu - -0.8-0.6-0.4-0. 0 0. 0.4 0.6 0.8 f() 0.607 0.76 0.835 0.93 0.980.000 0.980 0.93 0.835 0.76 0.607 Ara 0.33 0.56 0.76 0.9 0.98 0.98 0.9 0.76 0.56 0.33 Sum 0.33 0.89 0.465 0.656 0.854.05.4.48.574.707 On noing ha by () P( a x b) 0.68 (5) π Th ral answr (o 4 placs of accuracy) is 0.687 so w hav only go o wo placs of accuracy. Why would you xpc h undrsima in (5)? How can w mak h answr mor accura? (Thr ar wo answrs) W could us mor srips: Ls mak a abl of rapzoidal calculaions wih n 4,8,6,3,64,.. srips n P 4 0.675 8 0.680 6 0.68 3 0.685 64 0.687 8 0.687 A lo of work bu w do g hr. Th alrnaiv is o us a br approximaion for h ara ha aks ino accoun h curvd ops. Wih rapzoids w usd a sraigh lin o us quadraic. l ( ) m c approximaion a br opion may b q a a a3

0.900 f ( ) / 0.3 0.800 0.700 0.600 f ( ) / 0.8 0.500 0.400 f ( ) / 0.5 0.300 0.00 0.00 0.000 -. - -0.8-0.6-0.4-0. 0 This has hr dgrs of frdom w can mak hr choics for h cofficins a L us considr h firs TWO srips A suiabl quadraic approximaion q () will b h on ha coincids wih h funcion f () a boundaris of h srips, i.., a h poins,, s a r s a r s a r This quadraic is ( q( ) s a r )( s a r ) f ( s a r ) ( s a r )( s a r ) f ( s a r ) (6) ( s a r )( s a r ) f ( s a r ) Thn for h firs wo srips ingraion undr his curv approximas h ral ingral undr h curv f (), i.., sar sar sar sar f ( ) d sar sar q( ) d 3 [ f ( ) 4 f ( ) f ( ) ] s a r s a r s a r Wih h quadraic in (6) w can ingra analyically (i aks a lo of algbra bu w do nd up wih h righ hand rsul shown. So imagin ha w spli h ara of our ingral ino an EVEN numbr of srips n

Thn h ara of h pair of srips bwn h i h h and i srip boundaris is sar ( i ) sar ( i ) i q( ) d s a r s a r s a r sar 3 sar i [ f ( i ) 4 f ( ( i ) ) f ( ( i ) ) ] Equaion (7) is rfrrd o as Simpson s Rul. n h sam way as h rapzoidal rul i can b usd o find h dfini ingral of a gnral funcion f () by choosing an qual numbr of srips and hn calculaing and summing h approxima aras in ach srip pair by (7). This is radily don on a spradsh for valus of n,4,8,6,.. n P 0.693 4 0.683 8 0.687 6 0.687 Rcall P / π, and NOTE ha h Simpson s Rul rquirs lss srips convrgs o 4 poin accuracy wih 8 Srips. Th Trapzoidal rquird 64. Mak sur ha you can calcula Simposn s rul and Trapzoidal rul By hand (wih a calculaor) undr xam condiions. (7)