16.7 IntegrateMathIntegrate
Description
Integration tool performs numerical integration on the active data plot using the trapezoidal rule. You can choose to calculate the Mathematical Area (the algebraic sum of trapezoids) or an Absolute Area (the sum of absolute trapezoid values). Missing values are ignored.
To Use Integration Tool
 Create a new worksheet with input data.
 Highlight the selected data.
 Select Analysis: Mathematics: Integrate from the Origin menu to open the Integ1 dialog box.
The XFunction Integ1 is called to perform the calculation. The user has the option to specify that the area, peak location, peak width, and peak height (maximum deflection from the X axis), are written to the Result Log. In addition, you can choose to integrate using a simple baseline defined by a straight line connecting the end points of the curve and to create a plot of the integral curve.
 Note: This tool uses pure, mathbased integration which may produce unexpectedly negative results for area when the X values used in the integration are in descending order. This is normal behavior due to the nature of the integration calculations.

Dialog Options
Results Log Output

Select to output area, peak location, peak width, and peak height to the Results Log.

Recalculate

Controls recalculation of analysis results
For more information, see: Recalculating Analysis Results

Input

Specify the input data to be integrated.
For help with range controls, see: Specifying Your Input Data

Use End Points Straight Line as Baseline

Specify whether to create a straight line that crosses the end points and use it as the baseline for the integration.

Area Type

Specify the integral area type. Please see the Algorithm section below, for more details.
 Mathematical Area
 The area is the algebraic sum of trapezoids.
 Absolute Area
 The area is sum of absolute trapezoid values.

Output Quantities

Specify the quantities to be outputted when the Integration Result box is checked (see below).
 Dataset Identifier
 Choose a dataset identifier for use when the Integration Result box is checked.
 Beginning Row Index
 Specify whether to output the beginning row index.
 Ending Row Index
 Specify whether to output the ending row index.
 Beginning X
 Specify whether to output the beginning X value.
 Ending X
 Specify whether to output the ending X value.
 Max Height
 Specify whether to output the maximum height, as computed from the baseline.
 X at Max Height
 Specify whether to output the X value that corresponds to the maximum height.
 Area
 Specify whether to output the integration area.
 FWHM
 Specify whether to output the peak width at half height of the source curve.
Note: The beginning and ending X values and the integrated area are output to the Comments row of the integration results column, regardless of whether the Output Quantities Beginning X, Ending X and Area are enabled.

Integral Curve Data

Specify the range to output the cumulative result.

Integration Result

Specify whether output the intergration result in a report sheet.

Plot Integral Curve

Specify whether to plot the integral curve, and where to plot the integral curve.
 None
 Do not plot the integral curve.
 New Graph
 Plot the integral to a new graph.
 Source Graph
 Plot the integral in the source graph. This option is available when a graph window is the active window.

Rescale Source Graph

Rescale the source graph when the integral is plotted into it. This checkbox is available when the Plot Integral Curve is Source Graph.

Algorithm
Numerical integration involves calculating a definite integral by an approximate function:
Since the original data are discrete, we use a pair of adjacent values to form a trapezoid for approximating the area beneath the segment of the curve defined by the two points:
As illustrated above, the curve is divided into pieces and we calculate the sum of each trapezoid to estimate the integral by:
 Difference between Mathematical Area and Absolute Area
Given a baseline , the mathematical area of can be calculated by
If the sum of each trapezoid's area absolute value is computed, we can get the absolute area:
As illustrated above, the baseline is and the curve is divided into five trapezoids (or triangles). The area of each trapezoid (or triangle) is calculated by
From the expression, we determine that , and , which are above the baseline, are positive, but and , which are beneath the baseline, are negative.
So the mathematical area of this curve should be and the absolute area of this curve should be .
