Homework: RTD: Determine The Following
Homework: RTD: Determine The Following
The concentration readings in the table below represent a continuous response to a pulse
input into a closed vessel which is to be used as a chemical reactor.
In the absence of POLYMATH software, we can still find the area under a curve. We can
use midpoint formula, Simpsons Rule, or we can use EXCEL:
Midpoint Formula:
Assume that f(x) is a continuous function on the interval [a,b]. Let n be a positive integer
b-a
and Δx = .
n
If [a,b] is divided into n subintervals, each of length Dx, and mi is the midpoint of the ith
subinterval, then:
n
Area = å f(m ) × Δx
i=1
i
We divide the interval into n subintervals of equal width, [a,b], into n subintervals of
equal width,
We can easily find the area for each of these rectangles and so for a general n we get
that,
Simpsons Rule:
For Simpsons Rule we again divide the interval [a,b] into n subintervals. The number of
subintervals, n, MUST be even. The width of each subinterval is:
b-a
Δx =
n
Area » Dx/3 [y0 + 4y1 +2y2 + 4y3 + . . . . + 4yn-1 + yn]
= Dx/3 [y0 +4(y1 + y3 +y5 + …..) + 2(y2 + y4 + y6 + ….) + yn]
Δx
= [first + 4(sum of odds) + 2(sum of evens) + last]
3
For the above curve,
Δx
Area » [f(x0) +4(f(x1) +f(x3) +f(x5)) +2(f(x2) + f(x4)) +f(x6)]
3
Example question: Find the area under curve in Excel for the graph below, from x = 1 to
x = 6.
Step 1: Choose a data points on the x-axis under the curve and list these values in
Column A in sequence, starting from Row 1. In this example from the graph on the left,
your x-values are 1, 2, 3, 4, 5 and 6. Ensure that the first and last data points chosen on
the curve are its starting and ending points respectively.
Step 2: List the corresponding y-axis data points in Column B, aligning them row-wise
with the values in Column A. In other words, where the values lie based on the graph,
use y = 1, 0.5, 0.33, 0.225, 0.2 and 0.19.
Step 3: Type the following formula into cell C1
=(B1+B2)/2*(A2-A1)
and copy this for all Column C cells till the second-last row of data. To copy, click cell
C1 and then click and drag the little black box in the right hand corner. In this example,
you have 6 data points so you would drag the formula to cell C5.
Step 4: Calculate the sum of the totals in Column C. In this example, click cell C6 and
then click the summation sign “Σ” on the ribbon. The solution will appear in cell C6.
Step 5: Delete the last row in column C (not the total!—see the image below). The
correct approximation will not show in the summation cell.
For this example, the solution is 1.85.