06.03.2017 Views

Mathematics for Computer Science

e9ck2Ar

e9ck2Ar

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

“mcs” — 2017/3/3 — 11:21 — page 557 — #565<br />

14.3. Approximating Sums 557<br />

f.n/<br />

f.n1/<br />

<br />

f.3/<br />

f.2/<br />

f.1/<br />

0 1 2 3 <br />

n2 n1 n<br />

P<br />

Figure 14.1<br />

n<br />

iD1 f .i/.<br />

The area of the ith rectangle is f .i/. The shaded region has area<br />

For example, 2 x and p x are strictly increasing functions, while maxfx; 2g and<br />

dxe are weakly increasing functions. The functions 1=x and 2 x are strictly decreasing,<br />

while minf1=x; 1=2g and b1=xc are weakly decreasing.<br />

Theorem 14.3.2. Let f W R C ! R C be a weakly increasing function. Define<br />

and<br />

Then<br />

S WWD<br />

I WWD<br />

Z n<br />

Similarly, if f is weakly decreasing, then<br />

1<br />

nX<br />

f .i/ (14.15)<br />

iD1<br />

f .x/ dx:<br />

I C f .1/ S I C f .n/: (14.16)<br />

I C f .n/ S I C f .1/:<br />

Proof. Suppose f W R C ! R C is weakly increasing. The value of the sum S<br />

in (14.15) is the sum of the areas of n unit-width rectangles of heights f .1/; f .2/; : : : ; f .n/.<br />

This area of these rectangles is shown shaded in Figure 14.1.<br />

The value of<br />

I D<br />

Z n<br />

1<br />

f .x/ dx<br />

is the shaded area under the curve of f .x/ from 1 to n shown in Figure 14.2.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!