Numerical Differentiation and Integration

  • First Online: 01 January 2022

Cite this chapter

numerical differentiation solved examples pdf

  • Haksun Li, PhD 2  

1919 Accesses

Numerical differentiation and integration is a technique to use when we do not know the function a priori , when we treat the function as a black box, or when analytical (or symbolic or closed-form) differentiation and integration of the function is not possible. The technique approximates a function by many linear functions, each on a tiny interval of the function domain. In fact, piecewise linear approximation of a function is the very foundation of calculus. When the intervals are small enough or when we zoom in the function enough, the function looks like a straight line in each of them (this is differentiation). When we put these “lines” together and sum up the block areas (typically rectangles or trapezoids) underneath, we have integration. This concept is taken to the limit when we make the interval length go infinitesimally small. On a computer, however, we cannot make the length be arbitrarily small. We are satisfied with a good enough approximation or small enough intervals, which is the reason we use numerical differentiation and integration.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and affiliations.

Hong Kong, China

Haksun Li, PhD

You can also search for this author in PubMed   Google Scholar

Rights and permissions

Reprints and permissions

Copyright information

© 2022 Haksun Li, PhD

About this chapter

Li, PhD, H. (2022). Numerical Differentiation and Integration. In: Numerical Methods Using Java. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-6797-4_6

Download citation

DOI : https://doi.org/10.1007/978-1-4842-6797-4_6

Published : 01 January 2022

Publisher Name : Apress, Berkeley, CA

Print ISBN : 978-1-4842-6796-7

Online ISBN : 978-1-4842-6797-4

eBook Packages : Professional and Applied Computing Apress Access Books Professional and Applied Computing (R0)

Share this chapter

Anyone you share the following link with will be able to read this content:

Sorry, a shareable link is not currently available for this article.

Provided by the Springer Nature SharedIt content-sharing initiative

  • Publish with us

Policies and ethics

  • Find a journal
  • Track your research

IMAGES

  1. Numerical Differentiation and Integration

    numerical differentiation solved examples pdf

  2. Differentiation techniques

    numerical differentiation solved examples pdf

  3. DOWNLOAD [PDF Numerical Calculus: Differentiation and Integration

    numerical differentiation solved examples pdf

  4. Numerical Differentiations Solved examples

    numerical differentiation solved examples pdf

  5. [PDF] Introduction to Numerical Methods in Differential Equations

    numerical differentiation solved examples pdf

  6. 04 Numerical differentiation. As in Example 8 in 4.8,

    numerical differentiation solved examples pdf

VIDEO

  1. 5. How To Solve Math : Numerical Differentiation

  2. Numerical Differentiation

  3. Numerical Differentiation & Numerical Integral using MATLAB

  4. Numerical Differentiation using Finite Difference Method

  5. Numerical Differentiation

  6. Numerical Differentiation Examples

COMMENTS

  1. PDF Chapter 9: Numerical Differentiation

    Chapter 9: Numerical Differentiation. Numerical Differentiation Formulation of equations for physical problems often involve derivatives (rate-of-change quantities, such as v elocity and acceleration). Numerical solution of such problems involves numerical evaluation of the derivatives. One method for numerically evaluating derivatives is to ...

  2. PDF 5 Numerical Differentiation

    example, a more accurate approximation for the first derivative that is based on the values of the function at the points f(x−h) and f(x+h) is the centered differencing formula f0(x) ≈ f(x+h)−f(x−h) 2h. (5.4) Let's verify that this is indeed a more accurate formula than (5.1). Taylor expansions of the terms on the right-hand-side of ...

  3. PDF Chapter 5: Numerical Integration and Differentiation

    Chapter 5: Numerical Integration and Differentiation PART I: Numerical Integration Newton-Cotes Integration Formulas The idea of Newton-Cotes formulas is to replace a complicated function or tabu-lated data with an approximating function that is easy to integrate. I = Z b a f(x)dx … Z b a fn(x)dx where fn(x) = a0 +a1x+a2x2 +:::+anxn. 1 The ...

  4. PDF Section 4.1 Numerical Differentiation

    Section 4.1 Numerical Differentiation . 2 . Motivation. • Consider to solve Black-Scholes equation . ... Example 4.4.1 Use forward difference formula with ℎ= 0.1 to approximate the derivative of 𝑟𝑟 (𝑥𝑥) = ln(𝑥𝑥) ...

  5. PDF Exercises for numerical differentiation

    We use our standard example f (x) ˘ex and a ˘1 to check the 3-point ap-proximation to the second derivative given in (??). For comparison recall that the exact second derivative to 20 digits is f 00(1) …2.7182818284590452354. a. Compute the approximation ¡ f (a¡h)¡2f (a)¯ f (a¯h) ¢ /h2 to f 00(1). Start with h ˘10¡3, and then ...

  6. PDF Chapter 8 Numerical Differentiation Integration

    8.2 Numerical Differentiation Numerical differentiation is the process of computing the value of the derivative of an explicitly unknown function, with given discrete set of points. To differentiate a function numerically, we first determine an interpolating polynomial and then compute the approximate derivative at the given point.

  7. PDF Numerical Differentiation

    Numerical Analysis (MCS 471) Numerical Differentiation L-24 18 October 2021 3 / 28. forward, backward, and central difference formulas Given a function f(x), we can approximate f0at x = a with 1 a forward difference formula:

  8. PDF ECE 3040 Lecture 21: Numerical Differentiation

    The differentiation of a function has many engineering applications, from finding slopes (rate of change) to solving optimization problems to differential equations that model electric circuits and mechanical systems. Given a function 𝑓( ), we denote its first derivative with respect to its independent variable by the symbol

  9. PDF NumericalDifferentiation andIntegration

    Let us first make it clear what numerical differentiation is. Problem 11.1 (Numerical differentiation). Let f be a given function that is only known at a number of isolated points. The problem of numerical differ-entiation is to compute an approximation to the derivative f 0 of f by suitable combinations of the known values of f.

  10. PDF Chapter 6 Numerical Differentiation and Integration

    1) D= diff(X) diff(X) calculates the difference between adjacent elements of a vector. 2). DP=polyder(P) polyder(P) calculates the derivative of the polynomial whose coefficients are given by the vector P. Example 6.3 Find the derivative of f(x)=5x3+4x2+7 by MATLAB function polyder().

  11. PDF Numerical Differentiation & Integration [0.125in]3.375in0.02in ...

    Numerical Differentiation Example 1: f(x) = lnx Use the forward-difference formula to approximate the derivative of f(x) = lnx at x0 = 1.8 using h = 0.1, h = 0.05, and h = 0.01, and determine bounds for the approximation errors. Numerical Analysis (Chapter 4) Numerical Differentiation I R L Burden & J D Faires 10 / 33

  12. PDF Numerical Analysis and Computing

    Numerical Differentiation Richardson's Extrapolation Numerical Integration (Quadrature) Ideas and Fundamental Tools Moving Along... Numerical Differentiation Definition (Derivative as a limit) The derivative of f at x 0 is f′(x 0) = lim h→0 f(x 0 +h)−f(x 0) h. The obvious approximation is to fix h "small" and compute f′(x 0 ...

  13. PDF NUMERICAL D NTEGRATION

    O Numerical integration O Quadrature formulae O Errors in quadrature formulae O Romberg's method O Euler-Maclaurin formula O Method of undetermined coefficients O Gaussian integration O Numerical double integration O Objective type of questions 8.1 Numerical Differentiation It is the process of calculating the value of the derivative of a

  14. PDF Numerical Integration and Differentiation

    It is not hard to formulate simple applications of numerical integration and differentiation given how often the tools of calculus appear in the basic formulae and techniques of physics, statistics, and other fields. Here we suggest a few less obvious places where integration and differentiation appear. Example 12.1 (Sampling from a distribution).

  15. PDF Math 541

    Numerical Di erentiation: The Big Picture. The goal of numerical di erentiation is to compute an accurate approximation to the derivative(s) of a function. Given measurements ffign of the underlying function f(x) at the. i=0. node values fxign i=0, our task is to estimate f0(x) (and, later, higher derivatives) in the same nodes.

  16. PDF Numerical Differentiation

    Let us first explain what we mean by numerical differentiation. Problem 11.1 (Numerical differentiation). Let f be a given function that is known at a number of isolated points. The problem of numerical differen-tiation is to compute an approximation to the derivative f 0 of f by suitable combinations of the known function values of f.

  17. PDF MATH 170C SPRING 2007 FINAL EXAM

    Problem 1: Numerical differentiation Use the three-point centered di erence formula for the second derivative to approximate f 00 (1), where f ( x ) = x 1, for h = 0 : 1, 0 : 01, and 0 : 001. Find the ... Now assume we solve the problem by the shooting method. orF a given parameter s , denote by Y s ( x ) ...

  18. PDF ME 310 Numerical Methods Differentiation

    •Numerical differentiation is considered if •the function can not be differentiated analytically •the function is known at discrete points only ... Exercise 33: Solve the previous example using the above formulas. Note that for t=0.0 and 0.1 forward differencing must be used. For t=0.4 and 0.5 backward differencing is suitable.

  19. PDF Numerical Differentiation and Integration

    278 By induction, if the (n − 1)-th order derivative of f(x) exists and is differentiable, then the n-th order derivative is defined as follows: fx˜˚nn fx˜˚ ˛ ˜˚ ˙˜˚ 1 ˜˚ ˝ If a function, f, is continuous, we say f ∈ C0.If f ′ exists and is continuous, we say f is a smooth function and f ∈ C1.If f can be differentiated indefinitely (and hence must be

  20. Numerical Differentiations Solved examples

    Numerical Differentiations Solved examples - Download as a PDF or view online for free. Numerical Differentiations Solved examples - Download as a PDF or view online for free ... Interpolation and polynomial Approximation, Numerical differentiation and integration, Initial value problems for ordinary differential equations, Direct methods for ...

  21. PDF Math 563 Lecture Notes Numerical integration (fundamentals)

    Numerical integration (fundamentals) Spring 2020 The point: Techniques for computing integrals are derived, using interpolation and piece- ... 1.3 Second example: midpoint rule Consider g(s) and s2[0;1] as before but take x 0 = 1=2 as the only node; note that the endpoints are not included. The interpolant is trivial (constant), and we have

  22. PDF differentiation practice i

    V = ( p − qt )2 , t ≥ 0 , where p and q are positive constants, and t is the time in seconds, measured after a certain instant. When t = 1 the volume of a soap bubble is 9 cm 3 and at that instant its volume is decreasing at the rate of 6 cm 3 per second. Determine the value of p and the value of q . p = 4, q = 1.

  23. PDF Chapter 5. Numerical Integration

    Chapter 5. Numerical Integration These are just summaries of the lecture notes, and few details are included. Most of what we include here is to be found in more detail in Anton. 5.1 Remark. There are two topics with similar names: • Reverse of differentiation Indefinite integral Z f(x)dx = most general antiderivative for f(x) • Definite ...