34  Totaling the little bits

Many students wonder how it is possible to reconstruct a function F(x) from its derivative f(x). The point of this short chapter is to help you develop some intuition about anti-differentiation.

You already know the notation meaning “F(x) is the anti-derivative of f(x)”: f(x)dx . In drawing a graph of F(x), we will of course want to use coordinate axes where the quantity x is represented on the horizontal axis and the quantity of the output F(x) is on the vertical axis:

Figure 34.1: The graphics frame in which we want to draw the graph of F(x). A small region of the domain is labeled dx. Within that domain, F(x), whatever it is, will be a sloping segment. The gray segment shows what this might look like.

It is premature to have drawn a segment of F(x) because we haven’t yet undertaken to compute F(x)=f(x)dx. At this point in the process, all we know is f(x), not F(x). Still, since we know f(x), we do know the slope of the little segment of F(x). We just don’t know where that segment should be located vertically in each of the dx regions that make up the whole domain.

We cannot draw f(x) in the ordinary way as a curve wending its way across the domain of the graph. Why not? Because the vertical axis of the graphics frame represents F(x) and has a different dimension than the output of f(x).

But we can draw f(x) as the slope of a short segment of horizontal extent dx, so long as we accept that the vertical position of that segment means nothing: f(x) gives information only about the slope of the segment. At this point, the best we can do is graph f(x) in terms of sloping segments, as in .

Figure 34.2: Graphing f(x) as a series of sloped segments. The slope is the value of f(x). But the vertical position of the segment is not information provided by f(x), so we’ve drawn all of them at the same vertical level.

Each of the segments in has the same horizontal extent, namely dx. When we draw a sloping segment over the tiny bit dx of the domain, the vertical extent of the segment will be the product of the width dx and the slope f(x). That is, the vertical extent will be the product f(x)dx.

Whenever we know a function f(x) and have chosen a size for dx we can draw a graph of f(x) in the form shown in . We are drawing it in this unusual way because we want the graphics frame to be all ready for drawing the graph of F(x) in the normal fashion after we have figured out what F(x) results from accumulating/summing-up all the little f(x)dx segments. When we write in the notation f(x)dx we mean, “sum up all the f(x)dx segments.”

Let’s now consider how to “sum up all the segments.” we will start in with an example where we already know F(x). That way, we can see of our sum of the f(x)dx segments really does reconstruct F(x).

Figure 34.3: Top: A function F(x) for demonstration purposes. Bottom: Slicing F(x) into piecewise domains of width dx=2 and anchoring the left-most point of each slice vertically at 0.

Now imagine that we sliced up F(x) over small sub-domains of x, as in (bottom). That is, we approximated F() piecewise locally. But we’ve broken the continuity of F(x) by moving each slice up or down so that the left-most point has value 0.

Can you reconstruct F(x) from the local segments?

Start by reading off the function value from the last point in the left-most segment. That is been marked in with a blue dot. The function value at that dot is 7.072.

Now take the second segment. The idea is to move that segment upward until it joins the first segment at the blue dot. You can do that by adding 7.072 to the second segment. The result is shown in (top).

Figure 34.4: Reconstructing the original function F(x) by moving each segment upward to meet its left neighbor. Top: The first two segments are connected. Bottom: The third segment is connected to the first two.

Now read off the new value at the end of the second segment, it is 4.198. Add this amount to the third segment as in (bottom).

Continue this process until you have reconstructed F(x) from the local segments.

You may object: “Of course you can reconstruct F(x) from the local segments, but this isn’t the same as reconstructing F(x) from its derivative xF(x).” My answer: “That depends on how many segments you use.”

When we make the segment width h smaller and smaller, the individual segments become more and more like straight lines. shows the segments for smaller and smaller h.

Figure 34.5: Using small segments gives each segment a simple shape. In the segments had width dx=2.0 and were discernable curvy. Top of this figure: At width dx=0.25 a few of the segments look curved. Middle: This graph zooms in on the subdomain 1leqxleq1 in the top panel, where there is a notably curved segment in the top graph. Setting dx=0.1 breaks up such curved segment into components better approximated by a straight line. Bottom: Using dx=0.01 further improves the approximation of each segment to a straight line.

Notice that many of the segments are straight lines. That is understandable, since any function looks like a straight line over a small enough domain.

Each of those straight-line segments is drawn over a domain xi<x<xi+dx that has width dx. For dx small enough, the segment is well approximated by a straight line with slope xF(xi). Multiplying slope by width dx gives the segment height: [xF(xi)] dx. Of course, remember that xF(x)=f(x) helps us see that each of the little segments is f(xi) dx.

Lets review. The standard notation for anti-differentiation can be interpreted as putting together segments, or, in the words of Prof. Thompson in Calculus Made Easy, “totaling up all the little bits.” (See .)

  1. We start with the function that we already know: f(x). Remember that f(x), at each value of x will be the slope of F(x). Why? Because F(x) is the anti-derivative of f(x), so f(x) is the derivative of F(x).

  2. Now divide the domain x into many little bits. Each of these sub-domains is dx, a little chunk of x.

  3. On each of the little chunks, draw in f(x). Since f(x) is the slope of F(x), we will draw f(x) for any given chunk as a short line segment of that slope over the chunk, as in . We will write these little bits, each of which is very nearly a straight-line, as f(x)dx.

  4. Assemble together all the f(x)dx segments from (3) to get F(x). This instruction to assemble is denoted

Altogether, we have:

assemblef(x)slope of F(x)  dxbits of xthe slope segmentsgiving F(x)+C altogether.

Returning to the example with which we started the chapter, here are the little segments of the slope function shown in assembled together to produce the anti-derivative function.

Figure 34.6: f(x)dx means to assemble the straight-line pieces f(x)dx in the manner described in the previous section.