Why Approximate a Definite Integral?
A definite integral can describe accumulated change over an interval. Sometimes the integrand has an antiderivative that makes the integral straightforward to evaluate exactly. In other problems, an elementary antiderivative is unavailable or an exact value is not needed. A graphing calculator can then estimate the definite integral numerically.
The calculator’s output is useful, but it must be interpreted. A definite integral measures signed accumulation: values of the function above the horizontal axis contribute positively, and values below it contribute negatively. The sign and size of the result depend on both the function and the order of the bounds.
Using a Calculator’s Numerical Integral Tool
Graphing calculators commonly provide a numerical integration command or menu tool. The exact key sequence varies by calculator, but the mathematical input has the same parts: the integrand, the variable of integration, a lower bound, and an upper bound.
To estimate this value, enter \(f(x)\), \(a\), and \(b\) into the calculator’s definite-integral tool. Check each entry before evaluating. In particular, make sure the variable is the intended one, the bounds are in the correct order, and the calculator is in the appropriate angle mode if the function involves trigonometry.
A displayed decimal is an approximation, not automatically an exact value. If the calculator shows \(1.718282\), for example, that generally means the result has been rounded to the displayed digits. Retain sufficient precision while working and round only when giving the final result. If an exact value is available, use it to check the approximation.
Signed Accumulation and the Sign of the Output
For a continuous function \(f\), the definite integral \(\int_a^b f(x)\,dx\) is the net, or signed, accumulation of \(f\) from \(a\) to \(b\). Where \(f(x)>0\), the contribution is positive; where \(f(x)<0\), it is negative. Contributions on different parts of the interval can partly or completely cancel.
This is different from total geometric area. Total area counts every part as positive, whereas the definite integral preserves the sign of the function. A negative calculator output is not necessarily an error: it can correctly indicate that the negative contributions have greater magnitude than the positive contributions.
Worked Example: Approximating an Integral and Checking It
Worked Example: Approximating \(\int_0^1 e^x\,dx\)
Use a calculator’s numerical integral tool to estimate \(\int_0^1 e^x\,dx\). Then check the result exactly.
Step 1: Enter the integral. Use \(e^x\) as the integrand, \(0\) as the lower bound, and \(1\) as the upper bound. The calculator gives approximately \(1.718282\) to six decimal places.
Step 2: Check the sign. Since \(e^x>0\) throughout \([0,1]\), the integral must be positive. The displayed result has the expected sign.
Step 3: Check using an antiderivative. An antiderivative of \(e^x\) is \(e^x\), so the exact value is
The exact expression \(e-1\) agrees with the calculator’s approximation. The numerical result is reasonable and, to six decimal places, is \(1.718282\).
Bounds Determine the Interval and the Sign
The lower and upper bounds specify which part of the function is being accumulated. Changing either bound generally changes the value. Reversing the two bounds changes the sign of the integral.
For a continuous function \(f\) with antiderivative \(F\), the Fundamental Theorem of Calculus gives \(\int_a^b f(x)\,dx=F(b)-F(a)\). Reversing the bounds therefore gives
This proves the sign rule: reversing the bounds negates the integral. It does not take the absolute value, and it does not preserve the original sign unless the integral is zero.
The same reasoning explains how a changed bound affects the result. For \(a<c<b\),
Indeed, using an antiderivative, the right-hand side is \((F(c)-F(a))+(F(b)-F(c))=F(b)-F(a)\), which is the left-hand side. This additivity provides a useful way to check results when an interval is split or one bound is moved.
Worked Example: A Negative Integral from Signed Accumulation
Worked Example: Interpreting \(\int_0^3 (x-1)\,dx\)
Estimate \(\int_0^3(x-1)\,dx\) with a calculator and explain why the output is positive even though the function is negative on part of the interval.
Step 1: Locate where the sign changes. Solving \(x-1=0\) gives \(x=1\). The integrand is negative on \([0,1)\) and positive on \((1,3]\).
Step 2: Evaluate with the calculator. Enter \(x-1\), lower bound \(0\), and upper bound \(3\). The numerical tool returns \(1.5\).
Step 3: Check the signed contributions. An antiderivative is \(\frac{x^2}{2}-x\). The negative contribution from \(0\) to \(1\) is
The positive contribution from \(1\) to \(3\) is
Adding the signed contributions gives \(-\frac12+2=\frac32=1.5\), matching the calculator. The positive part outweighs the negative part. The total geometric area, in contrast, would be \(\frac12+2=2.5\), because it counts the portion below the axis as positive.
Worked Example: Changing and Reversing the Bounds
Worked Example: Comparing \(\int_1^4\frac{1}{x}\,dx\) and \(\int_4^1\frac{1}{x}\,dx\)
Use a calculator to approximate the integral from \(1\) to \(4\), then reverse the bounds and compare the results. Also check the effect of splitting the interval at \(2\).
Step 1: Evaluate from \(1\) to \(4\). Enter \(1/x\), lower bound \(1\), and upper bound \(4\). The calculator gives approximately \(1.386294\) to six decimal places.
Step 2: Reverse the bounds. Enter the same integrand with lower bound \(4\) and upper bound \(1\). The output is approximately \(-1.386294\). The sign changes, while the magnitude remains the same.
Step 3: Check by an antiderivative. On this positive interval, an antiderivative is \(\ln x\), so
and
Step 4: Check a changed bound by splitting the interval. The calculator gives \(\int_1^2(1/x)\,dx\approx0.693147\) and \(\int_2^4(1/x)\,dx\approx0.693147\). Their sum is \(0.693147+0.693147=1.386294\), matching the result from \(1\) to \(4\). The interval from \(2\) to \(4\) contributes the second part of the accumulation; it is not interchangeable with the full interval.
A Common Bounds Mistake
A common error is to reverse the bounds but keep the original positive output. For example, if a calculator reports \(\int_1^4(1/x)\,dx\approx1.386294\), it is incorrect to claim that \(\int_4^1(1/x)\,dx\approx1.386294\) just because the same two endpoints appear.
The correction follows from the order-reversal rule: switching the bounds multiplies the value by \(-1\). If you manually switch the bounds in an expression, include that negative sign. A calculator that accepts bounds in either order will generally apply the sign automatically.
How to Make the Numerical Result Useful
A calculator provides a numerical estimate, but interpretation still requires mathematical judgment. Before reporting the result, consider these checks:
- Check the integrand and bounds. Confirm that the calculator evaluated the function on the intended interval.
- Check the sign. Compare the output with the sign pattern of the integrand and with the meaning of signed accumulation.
- Check the bound order. Reversing the bounds should reverse the sign, not leave the value unchanged.
- Check against exact information when available. An antiderivative, known symmetry, or interval-additivity calculation can help verify the decimal.
- Report an approximation honestly. Include an approximation symbol when appropriate, retain adequate calculator precision during the work, and round the final answer to the requested number of decimal places.
These checks do not turn a calculator output into a proof of a general statement. They do help identify entry errors, incorrect signs, and misunderstandings about what the integral represents. In an application, the integral may also carry units: if \(f\) is a rate measured in units per hour and \(x\) is measured in hours, the accumulated integral has units of the original quantity.
Check Your Understanding
Answer each question using the meaning of a definite integral and the behavior of its bounds.
- A calculator gives \(\int_2^5 f(x)\,dx\approx-3.4\). What should the calculator give for \(\int_5^2 f(x)\,dx\), assuming the same numerical accuracy?
- If \(f(x)\) is positive on the entire interval \([a,b]\), what sign should \(\int_a^b f(x)\,dx\) have when \(a<b\)?
- Why can \(\int_a^b f(x)\,dx\) differ from the total geometric area between the graph and the horizontal axis?
- If \(a<c<b\), how are \(\int_a^b f(x)\,dx\), \(\int_a^c f(x)\,dx\), and \(\int_c^b f(x)\,dx\) related?
- A calculator output is negative, but the graph is above the horizontal axis throughout the entered interval. Name one part of the calculator entry or interpretation you should check.