(a) To evaluate the definite integral ∫
4
0
(r − c)dt, we use the instruction int as before, except that we
now specify the limits, 0 and 4. We type
>int(r-c,t=0..4);
which gives the answer
68
(b) Similarly, the second integral is evaluated by editing the instruction as:
>int(r-c,t=4..9);
which gives
–78.125
(2) To plot both r and c on the same diagram, type
>plot({r,c},t=0..12);
The result is sketched in Figure 6.8.
Now, r(t) represents the rate of change of revenue with respect to time, so the revenue itself is the area
under the graph of r(t). Similarly, the area under the graph of c(t) determines the total cost. Hence the
area between the two curves gives the predicted profit during that time period. Figure 6.8 shows that
between t = 0 and t = 4 revenue exceeds costs, so the firm is likely to make a positive profit of $68 000.
On the other hand, between t = 4 and t = 9 the graph of c(t) lies above that of r(t), which explains why
the value of the integral is negative. During this period the firm is expected to make a loss of $78 125.
6.2 • Definite integration
447
6.2.4 Discounting
In Chapter 3 the formula
P = Se
−rt / 100
was used to calculate the present value, P, when a single future value, S, is discounted at r%
interest continuously for t years. We also discussed the idea of an annuity. This is a fund that
provides a series of discrete regular payments and we showed how to calculate the original
lump sum needed to secure these payments for a prescribed number of years. This amount is
Figure 6.8
MFE_C06b.qxd 16/12/2005 11:21 Page 447