RL20 2022
RL20 2022
Revision Lecture # 20
Numerical Integration
the total change in a quantity given a table of rates of change of the same quantity.
2.) Evaluate the above approximations for the definite integral, using the shortcut1 buttons
and the M+ memory of the Casio FC-100V calculator.
3.) the relationship between the concepts of the area under the graph of a function and the
definite integral of the function.
APPM1004 — Revision Lectures 2
Revision Lecture # 20
Numerical Integration
Introduction
Many integrals can be very difficult, if not impossible, to find. Therefore numerical methods
provide a very useful tool for approximating the values of definite integrals without having
to find algebraic solutions for the integral itself.
Z b
If f (x) > 0 on [ a , b ], the definite integral, f (x) dx is equal to the area between
a
f (x) and the x−axis over the interval [ a , b ], therefore an approximation of the area
automatically gives an approximation of the definite integral.
The areas of the trapezia covering the area under the graph, are calculated geo-
metrically and added together.
Revision Lecture # 20
Numerical Integration
Z b
To approximate the value of the definite integral, f (x) dx,
a
apply the following three steps.
Step 1.
x1 = a ; x2 = a + 4x ; x3 = x2 + 4x ; . . . xn+1 = xn + 4x = b.
NB: There will always be n + 1 values of x when there are n sub-intervals.
Step 2.
◦ Substitute the x values from Step 1. into the given function f (x):
Step 3.
◦ Substitute the sequence of function values from Step 2. into the appropriate
formula.
Revision Lecture # 20
Numerical Integration
Example 1 Z 8
2
Approximate the definite integral e0,1x dx using,
3
2. Simpson’s rule
with n = 4.
Step 1.
Step 2.
Revision Lecture # 20
Numerical Integration
Step 3. Substitute the sequence of function values from Step 2. into the appropriate
formula.
≈ 530, 0745 . . .
−−−−−−−−−→
≈ 437, 810 . . .
−−−−−−−−→
5. Enter the x values one at a time, use the shortcut to calculate the function values
and then multiply by the appropriate coefficient as required by the rule used.
Revision Lecture # 20
Numerical Integration
Step3. Read off the function values that correspond to the above x values, from
the graph, and then substitute them into the required formula.
Step3. Read off the marginal values that correspond to the above x values, from
the table, and then substitute them into the required formula.
In both the above cases take care to enter the function values that correspond to
the x values into the formula and not just the x values. This is a common error.
APPM1004 — Revision Lectures 7
Revision Lecture # 20
Exercises
1 000
1. The marginal revenue when x units are sold is R0 (x) = rands per unit.
x2
Use the trapezium rule with n = 4 to approximate (rounded to the nearest
cent) the change in revenue if the number of units sold increases from five to
eight.
2. In the table below x represents the number of units of a product that are
produced and C 0 (x) is the marginal cost in rands per unit.
x 0 20 40 60 80 100 120
C 0 (x) 230 234 240 250 260 268 275
Use Simpson’s rule with n = 6 to estimate (rounded to the nearest cent) the
total cost of producing the first 120 units.
3. The graph below shows the rate of change of the number of units produced by
dp
a worker per day, , for the first twelve days that the worker was employed.
dt
Use the trapezium rule with n = 4 and Simpson’s rule with n = 6 to approx-
imate the total number of units that the worker produced in the first twelve
days that he was employed.
APPM1004 — Revision Lectures 8
Revision Lecture # 20
Using the Shortcut and M+ functions.
The explanation that follows gives the calculator steps in detail for the Trapez-
ium rule approximation. These steps can be adapted to the calculation using
Simpson’s rule.
.
◦ With the shortcut1 selected, press exe, twice, and then clear, .
◦ The formula is now stored in the shortcut1.
2. Calculate the function value for a given x value.
◦ Enter the first x value, ‘3’, and make it the ‘Ans’ by pressing ‘exe’.
,
The 3 must be in the bottom right hand corner of the display.
◦ Call up shortcut1 by pressing shortcut1, then the stored foru-
2
◦ Press exe to get the result = e(0,1·3 ) .
◦ Check this result manually to make sure your stored formula is correct.
◦ For the Trapezium Rule, this first result must be divided by 2.
Revision Lecture # 20
Using the Shortcut and M+ functions.
◦ Press shift, then sto% to get the memory list in the display.