Hostname: page-component-74656f9884-6grmk Total loading time: 0 Render date: 2026-11-06T02:33:52.388Z Has data issue: false hasContentIssue false

Finite differences and the trapezoidal rule in the complex plane

Published online by Cambridge University Press:  15 June 2026

Bengt Fornberg*
Affiliation:
Department of Applied Mathematics, University of Colorado, Boulder, CO, USA
Rights & Permissions [Opens in a new window]

Abstract

With possible exceptions in quantum mechanics, measurable physical quantities do not involve complex numbers. However, most standard and special functions in the applied sciences are analytic functions. Focusing on exact mathematical techniques, a famous quote notes that ‘The shortest path between two truths in the real domain passes through the complex domain’. It therefore becomes natural to ask if this shortest path can benefit from finite difference formulas and numerical quadrature methods that are specifically designed for the complex plane. Several such opportunities have recently been found. While the concepts of complex variables and of analyticity do not readily generalize beyond 2-D, the new numerical methods that are described here can be adapted to harmonic functions in higher dimensions.

Information

Type
Research Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2026. Published by Cambridge University Press.
Figure 0

Table 1. Weights for centred FD approximations to the first derivative on a grid with spacing h (omitting the factor 1${/}$/h)1 long description.

Figure 1

Figure 1. A simple FD formula, serving when $h\rightarrow0$h→0 as a definition of the first derivative.

Figure 2

Table 2. Weights for centred FD approximations to the second derivative (omitting the factor $1{/}$1/h2)Table 2 long description.

Figure 3

Figure 2. Error comparison between 25-node FD stencils for approximating the $4^{\textrm{th}}$4th derivative, along the real line vs. in the complex plane.

Figure 4

Figure 3. Brief extract from the bottom of page 208 and the top of page 209 in [11], transcribing a letter from Gregory to Collins dated November 23, 1670. There is a mistake in the next-to-last denominator - should be 160 instead of 164.Figure 3 long description.

Figure 5

Table 3. The non-trivial Gregory weights up through order p $=10$=10 (for the left end of an interval, to be followed by ones). The middle entry for accuracy order p $=10$=10 shows the first occurrence of a negative weightTable 3 long description.

Figure 6

Figure 4. Illustration of the magnitudes of the weights in the $5\times5$5×5 case of TR end correction. Entries belonging to the TR formula are shown in red, to the correction stencil in green, and the overlapping entries in blue. Compared to the TR weights (1/2 at the end point(s), and 1 otherwise), the correction stencil weights are two (or more) orders of magnitude smaller. The exact correction weights in this $5\times5$5×5 stencil case are given in [2].

Figure 7

Table 4. Number of independent monomials without and with the constraint that Laplacian equals to zeroTable 4 long description.