Hybrid Symbolic-Numeric Integration in Multiple Dimensions via Tensor-Product Series
Orlando A. Carvajal
Frederick W. Chapman
Keith O. Geddes
Symbolic Computation Group, School of Computer Science
University of Waterloo, Waterloo, ON, N2L 3G1, Canada
Abstract
We present a new hybrid symbolic-numeric method for the fast and accurate evaluation of definite integrals in multiple dimensions. This method is well-suited for two classes of problems: (1) analytic integrands over general regions in two dimensions, and (2) families of analytic integrands with special algebraic structure over hyperrectangular regions in higher dimensions.
The algebraic theory of multivariate interpolation via natural tensor-product series was developed in the doctoral thesis by Chapman, who named this broad new scheme of bilinear series expansions ”Geddes series” in honour of his thesis supervisor. This paper describes an efficient adaptive algorithm for generating bilinear series of Geddes-Newton type and explores applications of this algorithm to multiple integration. We will present test results demonstrating that our new adaptive integration algorithm is effective both in high dimensions and with high accuracy. For example, our Maple implementation of the algorithm has successfully computed nontrivial integrals with hundreds of dimensions to 10-digit accuracy, each in under 3 minutes on a desktop computer.
Current numerical multiple integration methods either become very slow or yield only low accuracy in high dimensions, due to the necessity to sample the integrand at a very large number of points. Our approach overcomes this difficulty by using a Geddes-Newton series with a modest number of terms to construct an accurate tensor-product approximation of the integrand. The partial separation of variables achieved in this way reduces the original integral to a manageable bilinear combination of integrals of essentially half the original dimension. We continue halving the dimensions recursively until obtaining one-dimensional integrals, which are then computed by standard numeric or symbolic techniques.
Introduction
The hybrid symbolic-numeric method presented in this paper is well-suited for two classes of integration problems:
- . analytic integrands over general regions in two dimensions, and
- . families of analytic integrands with special algebraic structure over hyperrectangular regions in higher dimensions.
Summary of the Method
- The method is based on recursive dimension-halving via separation of variables.
- Multidimensional integrals are reduced to one-dimensional integrals using Geddes-Newton series expansions to generate accurate tensor-product approximations of the integrand.
- Test results show that our new adaptive integration algorithm is effective both with high accuracy and in high dimensions.
Tensor-Product Series
Tensor Products
- A tensor product is a finite sum of terms where each term is a product of univariate functions:
- There are many examples in mathematics:
- The rank of a tensor product is the minimum number of terms among all the equivalent representations.
- It is a natural tensor product when the factors of each term can be derived from the original function by a finite linear combination of linear functionals.
The Splitting Operator
- For a bivariate function
and a point
where
, the splitting operator
is defined by
.
- The point
is called a splitting point.
- Note:
splits
into a rank-one tensor product.
interpolates
on the lines
and
, which means that
and
.
- These properties allow us to generate a natural tensor-product series simply by iterating the splitting operator while varying the choice of splitting point.
Geddes-Newton Series Expansions
- Not every bivariate function
can be expressed as a tensor product of finite rank.
- For an approximation in
where
is continuous, we can uniformly approximate
by a rank-
tensor product:
- Define the
remainder :
.
- The following simple algorithm generates a natural tensor-product series expansion
of a given function
on
.
Algorithm NTPS
- . Set
and initialize
.
- . While
, iterate the following:
- ) Choose
with
.
- ) Let
and
.
- . Let
and return
to approximate
with uniform error
on
.
- Refining terminology introduced by Chapman in his doctoral thesis, we call
the Geddes-Newton series expansion of
to
terms with respect to the splitting points
.
Example 1
Consider the following function on
:
The Geddes-Newton series to 3 terms is as follows, where the splitting points are
for
:
where
 = exp(.379870*x^2)*cos(x+.616336)-.356576*exp(x^2)*cos(x+1)-.623342*cos(x)](images/MultiInt_58.gif)
 = exp(.379870*x^2)*cos(x+.616336)-.356576*exp(x^2)*cos(x+1)-.623342*cos(x)](images/MultiInt_59.gif)
 = exp(.379870*y^2)*cos(y+.616336)-.356576*exp(y^2)*cos(y+1)-.623342*cos(y)](images/MultiInt_61.gif)
 = exp(.379870*y^2)*cos(y+.616336)-.356576*exp(y^2)*cos(y+1)-.623342*cos(y)](images/MultiInt_62.gif)
Observations
- The splitting points in Example 1 are all located on the diagonal
of the unit square, as illustrated in the following figure.
- Note:
agrees exactly with
at all points on the horizontal and vertical lines through the three splitting points!
- With this strong interpolating property, even with only three splitting points we find that the maximum error over the unit square satisfies:
.
- If we request a series accurate to 15 digits for the function
defined in Example 1, we find that only 12 terms are required (i.e., 12 splitting points). In other words,
.
- The distribution of the 12 splitting points for this particular function is illustrated in the following figure.
Convergence of the Series
- Note similarities with the case of univariate polynomial interpolation via the Newton interpolation series.
- In both cases, addition of a new term in the series corresponds to the addition of a new interpolation point.
- However, in the case of Geddes-Newton series, the interpolation property holds not only at the new point but at all points on two lines passing through that point.
- Intuitively, for any function
which is continuous in the unit square
, if the splitting points are dense along the diagonal then it is reasonable to expect that
might converge uniformly to
on
as
.
- In other words, by choosing well distributed splitting points on the diagonal, we can cover the whole unit square with small grid cells. Recall: The remainder
vanishes on the boundary of each cell .
- Formal convergence results will appear in a separate paper.
A Brief Glance at Proof Technique
- The easiest case is when
is analytic in a sufficiently large region.
- The convergence theorem and its proof are similar to the classical case where
is a function of a single complex variable and
denotes the interpolating polynomial.
- Recall the univariate case (Ref: P.J. Davis, Interpolation and Approximation), as summarized below.
- Basic tool: A contour integral representation of
.
- Let
be analytic on and suppose that the interpolation points satisfy .
- Let
be the polynomial interpolating at points .
, .
- Conclusion: If
then
.
|
|
- For our case, we consider a bivariate function
of two complex variables and
denotes the Geddes-Newton series expansion of
to
terms with respect to the splitting points
.
- We derive a contour integration formula for the remainder
: 



- Here,
and
.
- Then we can conclude that
where the constant
depends on the geometry, and
depends on separation constants (like before).
- If
and if the
boundary constant satisfies
as
then
.
Integration in Two Dimensions
- The given integration problem is
.
- Approximate the integrand
and then integrate:
.
- We replace the calculation of one integral in two dimensions by
integrals each in one dimension:

- The effectiveness of this scheme relies on the following facts:
- we have good methods to compute one-dimensional integrals, either in numerical mode or (advantageous in certain situations) symbolic mode
- the number of terms
is of modest size (for many integrands of interest) due to the power of this particular interpolation scheme
- we exploit symmetry and apply efficient linear algebra computations, as discussed next
Transformation to Canonical 2-D Integral
- An integral with non-constant limits can be converted to a new integral with constant limits via a change of variables.
using the change of variables:
;
- Therefore limit attention to integrals on the unit square.
- Making the integrand symmetric: For an integral on the unit square, we can always make the integrand symmetric, meaning
.
- Namely,
(symmetric part + anti-symmetric part) where
;
- Integral of
over the unit square is
, which gives us:
.
- Therefore we always have a symmetric integrand on the unit square.
Example 2
Consider the double integral
Applying the change of variables to transform to the unit square, and then applying symmetrization, yields the new problem:
where

Result of computation:
- Geddes-Newton series for
was computed to 3 terms
- The series was integrated (applying one-dimensional quadratures)
- Computed result: 0.385433
- Result is correct to 5 significant digits (with only 3 terms)
Linear Algebra Formulation
- An efficient implementation is achieved by exploiting symmetry.
- The series resulting from our algorithm has the algebraic form:
where
are real-valued constants, and
is the splitting point used in the
iteration.
- Note that
.
- Represent the series using matrices and vectors as
where
is the column vector of dimension
with elements ![f(x, a[i])](images/MultiInt_150.gif)
is an
diagonal matrix with elements ![c[i] = 1/r[i-1](a[i], b[i])](images/MultiInt_153.gif)
is a permutation matrix (identity matrix if splitting points all on diagonal)
is an
unit lower triangular matrix.
- Benefits of the matrix-vector representation:
- The cost of evaluating
and
is reduced from
to
evaluations of the original function
.
- The factors can be computed by exploiting efficient linear algebra operations for matrix-vector multiplication and inner product.
- We only need to perform
one-dimensional integrations of cross-sections of the original function:
for
.
- The net effect: Nearly all the processing time is spent evaluating the integrand, which is as desired.
Computational Results in 2-D
The results in the following table are for the 2-D integral:
Tol
|
Time
|
Result
|
Pts
|
RelErr
|
|
0.3
|
0.069551393139
|
15
|
|
|
3.7
|
0.06955139313890799
|
21
|
|
|
5.3
|
0.0695513931389079901727
|
26
|
|
|
7.2
|
0.069551393138907990172712980
|
33
|
|
|
14.2
|
0.06955139313890799017271297964487
|
38
|
|
- Tol = requested accuracy tolerance
- Time = CPU time in seconds
- Result = computed value of the integral (to the number of digits requested)
- Pts = number of splitting points
- RelErr = relative error, compared with an accurate reference value
Integration in High Dimensions
- We have adapted our two-dimensional method to the case of
-dimensional integrands
which fit either of the following function patterns:
.
- Can generate tensor-product approximations of such functions over the unit hypercube

- We call the method the Deconstruction / Approximation / Reconstruction Technique (DART).
The steps of DART
- . Deconstruction: Deconstruct
to obtain a bivariate function
or
.
- . Approximation: Approximate the symmetric function
by a rank-
tensor-product series
in two variables on the unit square
.
- . Reconstruction: By a change of variables, reconstruct the original function
from
and produce a
-variable tensor-product approximation
of
on
from the bivariate approximation
of
on
.
Computational Results in High Dimensions
The results below are for the following families of
-dimensional integrands:
Note:
and
contain coefficients
which were assigned non-zero integer values in the range
Here, the region of integration is the unit
-cube:
for all
, and the requested accuracy tolerance is fixed at
.
Fcn
|
Dim
|
Time
|
Result
|
RelErr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- Fcn = the integrand function
- Dim = the dimension
for that integrand;
was chosen based on the criterion that for the given integrand, dimension
would require > 3 min
- Time = CPU time in seconds
- Result = computed value of the integral (to the number of digits requested)
- RelErr = relative error, compared with an accurate reference value
References
O.A. Carvajal, A New Hybrid Symbolic-Numeric Method for Multiple Integration Based on Tensor-Product Series. Master's thesis, University of Waterloo, Waterloo, Ontario, Canada, 2004.
O.A. Carvajal, F.W. Chapman and K.O. Geddes, Hybrid symbolic-numeric integration in multiple dimensions via tensor-product series. Proceedings of ISSAC'05, Manuel Kauers (ed.), ACM Press, New York, 2005, pp. 84-91.
F.W. Chapman, Generalized Orthogonal Series for Natural Tensor Product Interpolation. Ph.D thesis, University of Waterloo, Waterloo, Ontario, Canada, 2003.
P.J. Davis, Interpolation and Approximation. Blaisdell, New York, 1963.
D.H. Thomas, A natural tensor product interpolation formula and the pseudoinverse of a matrix. Linear Algebra and Its Applications, 13 (3), 1976, pp. 239-250.