1 / 36

Chapter 7 Differentiation and Integration

Chapter 7 Differentiation and Integration. Finite-difference differentiation. Example: Evaporation Rates. Table: Saturation Vapor Pressure ( e s ) in mm Hg as a Function of Temperature ( T ) in °C. The slope of the saturation vapor pressure curve at 22 °C (3 methods) :

Download Presentation

Chapter 7 Differentiation and Integration

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 7 Differentiation and Integration • Finite-difference differentiation

  2. Example: Evaporation Rates Table: Saturation Vapor Pressure (es) in mm Hg as a Function of Temperature (T) in°C

  3. The slope of the saturation vapor pressure curve at 22°C (3 methods) : The true value is 1.20 mm Hg/°C, so the two-step method provides the most accurate estimate.

  4. Differentiation Using a Finite-difference Table Example: Finite-difference Table for Specific Enthalpy (h) in Btu/lb and Temperature (T) in ºF

  5. For example, at a temperature of 1200 ºF, the forward, backward, and two-step methods yield: • The rate of change of cp at T= 1200 ºF is

  6. Differentiating an Interpolating Polynomial The derivative: Gregory-Newton interpolation polynomial: It is more difficult to evaluate the derivative:

  7. Differentiation Using Taylor Series Expansion

  8. The second-order approximation: The second-order approximation of the first derivative with forward difference:

  9. The second-order approximation of the second derivative with forward difference: • The first-order and second-order approximation of the first derivative with backward difference:

  10. The first-order and second-order approximation of the second derivative with backward difference: • How to derive (for reference only)

  11. The first-order and second-order approximation of the first derivative with the two-step method: • The first-order and second-order approximation of second derivative with the two-step method:

  12. Example: Evaporation Rates Second-order with forward, backward, two-step: The true value at T = 22ºC is 1.2 mm Hg/ºC

  13. Numerical Integration • The area under the curve f(x) between x=a and x=b: • Example: the volume rate of flow (Q) of water in a channel or through a pipe is the integral of the velocity (V) and the incremental area (dA):

  14. Interpolation Formula Approach The Gregory-Newton interpolation polynomial:

  15. Trapezoidal Rule

  16. Another way to get the trapezoidal formula The linear polynomial passing the data points:

  17. The absolute value of the upper bound on the error for the Trapezoidal rule is:

  18. Example: Trapezoidal Rule for Integration • n = 4 • The trapezoidal rule provides

  19. Example: Flow Rate • The flow rate (Q) of an incompressible fluid is given by the integral. in which V is the velocity and A is the area. • For a circular pipe of radius r, the incremental area dA is equal to 2πrdr.

  20. Table 6: The Data for Estimating the Flow Rate of a Fluid in a Circular Piple

  21. For a pipe of diameter of 1 ft trapezoidal rule:

  22. Simpson’s Rule • Simpson’s rule: where • Simpson’s rule can only be applied when there are an even number of subintervals:

  23. Proof of Simpson’s Rule Using a second-order polynomial:

  24. Passing through the three data points: Then, we can obtain the Simpson’s formula.

  25. The absolute value of the upper bound on the error for the Simpson’s rule is estimated by

  26. Example: Flow Rate Problem • Applying Simpson’s rule to the data of Table.6

  27. Romberg Integration • Denoting the trapezoidal estimate as I01 where a and b are the start and end of an interval. • A second estimate I11:

  28. A third estimate I21 can be obtained using three equally spaced intermediate points m1, m2, and m3 and it can be rewritten as

  29. Continuing this subdividing of the interval leads to the following recursive relationship • The general extrapolation formula in recursive form is

  30. The values of Iij can be presented in the following upper-triangular matrix form:

  31. Example: Romberg Method for Integration • For the function f(u) = ueku, the integral is • Let k = 2, we want to calculate The true value of the integral is 2.097264 (seven significant digits).

  32. We have a=0, b=1.

  33. Table.7 Computations According to the Romberg Method

  34. Similarly for i = 5, I51=2.09899 • I02 is computed as following: • I03 is computed as following: • The Romberg method yields an exact value to six significant digits for the integral of 2.09726

More Related