Docsity

Numerical Differentiation and Integration - Numerical Methods - Lecture Slides, Slides of Mathematical Methods for Numerical Analysis and Optimization

Partial preview of the text

Download Numerical Differentiation and Integration - Numerical Methods - Lecture Slides and more Slides Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

Numerical Differentiation And Integration

Numerical Differentiation and Integration

  • Calculus is the mathematics of change.
  • Engineers must continuously deal with systems

and processes that change, making calculus an

essential tool of our profession.

  • At the heart of calculus are the related

mathematical concepts of differentiation and

integration.

∆ ( ) ( ) ∆

y x

f x x f x x = i^ +^ − i

f (^) ( xi)

f (^) ( x (^) i + ∆x)

∆y

∆x

f(x)

x

Integration

  • The inverse process of differentiation
  • Dictionary definition of integrate - “to bring

together, as parts, into a whole; to unite; to

indicate the total amount”

  • Mathematically, it is the total value or summation

of f(x)dx over a range of x. In fact the integration

symbol is actually a stylized capital S intended to

signify the connection between integration and

summation.

Mathematical Background

d dx x^

d dx e d dx x^

d dx a d dx x^

d dx x d dx x if u and v are functions of x d dx u^

d dx uv

x x n

n

sin?? cos?? tan?? ln?

udv u du a dx dx x e dx

n bx

ax

Mathematical Background

Overview

• Numerical Differentiation

  • High accuracy formulas
  • Richardson’s extrapolation
  • Unequal spaced data
  • Uncertain data

• Applied problems

Specific Study Objectives

• Understand the derivation of the Newton-

Cotes formulas

• Recognize that the trapezoidal and

Simpson’s 1/3 and 3/8 rules represent the

areas of 1st, 2nd, and 3rd order

polynomials

• Be able to choose the “best” among these

formulas for any particular problem

Specific Study Objectives

• Recognize why both Romberg integration

and Gauss quadrature have utility when

integrating equations (as opposed to

tabular or discrete data).

• Understand the application of high-

accuracy numerical-differentiation.

• Recognize data error on the processes of

integration and differentiation.

Newton-Cotes Integration

  • Common numerical integration scheme
  • Based on the strategy of replacing a complicated function or tabulated data with some approximating function that is easy to integrate

Newton-Cotes Integration

  • Common numerical integration scheme
  • Based on the strategy of replacing a complicated function or tabulated data with some approximating function that is easy to integrate

I f x dx f x dx f x a a x a x

a

b a n

b

n n n

0 1 ....^ f polynomial n(x)^ is an^ nth^ order

The approximation of an integral by the area under

  • a first order polynomial
  • a second order polynomial

We can also approximated the integral by using a series of polynomials applied piece wise.

0

1

2

3

4

5

(^0) x 5 1 0

f(x)

0

1

2

3

4

5

(^0) x 5 1 0

f(x)

Newton-Cotes Formulas

• Closed form - data is at the beginning and end

of the limits of integration

• Open form - integration limits extend beyond

the range of data.

0

1

2

3

4

5

(^0 1 2 3 4) x 5 6 7 8 9 1 0

f(x) 0

1

2

3

4

5

(^0 1 2 3 4) x 5 6 7 8 9 1 0

f(x)

Trapezoidal Rule

• First of the Newton-Cotes closed

integration formulas

• Corresponds to the case where the

polynomial is a first order

I f x dx f x dx f x a a x

a

b a

b

n

0 1