Numerical Differential & Integration. Introduction If a function f(x) is defined as an expression,...

22
Numerical Differential & Integration

Transcript of Numerical Differential & Integration. Introduction If a function f(x) is defined as an expression,...

Page 1: Numerical Differential & Integration. Introduction If a function f(x) is defined as an expression, its derivative or integral is determined using analytical.

Numerical Differential & Integration

Page 2: Numerical Differential & Integration. Introduction If a function f(x) is defined as an expression, its derivative or integral is determined using analytical.

Introduction• If a function f(x) is defined as an expression, its

derivative or integral is determined using analytical techniques.

• If f(x) is complicated or when it is given in a tabular form, numerical methods are used to determine the derivative or integral.

• The accuracy of these methods would depend on the given function & the order of the polynomial used. If the fitted polynomial is exact the error is likely to be zero.

• The numerical methods would be avoided if an alternative exists.

Page 3: Numerical Differential & Integration. Introduction If a function f(x) is defined as an expression, its derivative or integral is determined using analytical.

Numerical Differentiation

• Find a suitable interpolating polynomial to represent the function.

Page 4: Numerical Differential & Integration. Introduction If a function f(x) is defined as an expression, its derivative or integral is determined using analytical.

12

This provides the value of dy/dx at any which is not in the table

3

Page 5: Numerical Differential & Integration. Introduction If a function f(x) is defined as an expression, its derivative or integral is determined using analytical.

Putting x = a and u = 0 in 3

3

4

Page 6: Numerical Differential & Integration. Introduction If a function f(x) is defined as an expression, its derivative or integral is determined using analytical.

4

Page 7: Numerical Differential & Integration. Introduction If a function f(x) is defined as an expression, its derivative or integral is determined using analytical.
Page 8: Numerical Differential & Integration. Introduction If a function f(x) is defined as an expression, its derivative or integral is determined using analytical.
Page 9: Numerical Differential & Integration. Introduction If a function f(x) is defined as an expression, its derivative or integral is determined using analytical.

Maxima & Minima of Tabulated Functions

Maxima/Minima of a y=fx) can be found by equating dy / dx = 0

Differentiating it w. r. t u we get

Page 10: Numerical Differential & Integration. Introduction If a function f(x) is defined as an expression, its derivative or integral is determined using analytical.

For simplicity truncate terms after the third term and by solving this quadratic equation we get two values of u.

Page 11: Numerical Differential & Integration. Introduction If a function f(x) is defined as an expression, its derivative or integral is determined using analytical.
Page 12: Numerical Differential & Integration. Introduction If a function f(x) is defined as an expression, its derivative or integral is determined using analytical.
Page 13: Numerical Differential & Integration. Introduction If a function f(x) is defined as an expression, its derivative or integral is determined using analytical.

Reading Assignment

• Read on errors in numerical differntiation and write a comprehensive report.

Page 14: Numerical Differential & Integration. Introduction If a function f(x) is defined as an expression, its derivative or integral is determined using analytical.

Numerical Integration

Page 15: Numerical Differential & Integration. Introduction If a function f(x) is defined as an expression, its derivative or integral is determined using analytical.

Newton-Cote’s Quadrature Formula

Page 16: Numerical Differential & Integration. Introduction If a function f(x) is defined as an expression, its derivative or integral is determined using analytical.

This is a Newton-Cote’s Formula. Trapezoidal Rule, Simpson’s one-third and three-eigth rules, and Weddle’s rule all can be deduce from this by putting n=1,2,3 & 6.

Page 17: Numerical Differential & Integration. Introduction If a function f(x) is defined as an expression, its derivative or integral is determined using analytical.
Page 18: Numerical Differential & Integration. Introduction If a function f(x) is defined as an expression, its derivative or integral is determined using analytical.
Page 19: Numerical Differential & Integration. Introduction If a function f(x) is defined as an expression, its derivative or integral is determined using analytical.
Page 20: Numerical Differential & Integration. Introduction If a function f(x) is defined as an expression, its derivative or integral is determined using analytical.
Page 21: Numerical Differential & Integration. Introduction If a function f(x) is defined as an expression, its derivative or integral is determined using analytical.
Page 22: Numerical Differential & Integration. Introduction If a function f(x) is defined as an expression, its derivative or integral is determined using analytical.

Assignment No. 4