A graphing tool draws a smooth looking curve in a fraction of a second, and it is tempting to read answers straight off the screen. But the screen only shows a few hundred computed points, each one rounded, joined by straight segments inside a rectangle someone chose. That picture is a superb guide and a poor judge. This lesson pairs the theorems that describe a graph’s shape with the ways a computed graph can mislead you.
Key terms
Extrema and how a graph shows them
Definition Let be defined on a set and let . The value is the absolute maximum of on if for every , and the absolute minimum if for every . It is a local maximum if there is an open interval containing such that for every , and a local minimum if the same holds with in place of . By Fermat’s theorem, if has a local extremum at a point in the interior of and exists, then
So the absolute extrema of a continuous function on a closed interval occur at the endpoints or at critical numbers in , the points where or does not exist.
In plain words Peaks and valleys on a graph tell you roughly where to look. The derivative and the endpoint values tell you exactly where they are and how high or low they go.
Example Take on . A plot shows a hump near and a dip near . Since , the critical numbers are exactly . Compare the candidates.
At the critical numbers there is a local maximum at and a local minimum at . On the absolute maximum is at , and the absolute minimum is reached twice, at and at .
Extreme value theorem
Definition If is continuous on a closed, bounded interval , then there are numbers and in with
That is, attains an absolute minimum and an absolute maximum on . Both hypotheses matter. On the half-open interval the continuous function has no maximum, and a function with a jump can miss its highest value.
In plain words A continuous curve drawn over a closed interval has a highest point and a lowest point. The theorem guarantees they exist, and the candidate list above finds them.
Example Consider on . Its only critical number is , with . The endpoints give and . So the absolute minimum is and the absolute maximum is , exactly as the theorem promises.
Rolle’s theorem
Definition Suppose is continuous on , differentiable on , and . Then there is at least one number in with
In plain words If a smooth curve starts and ends at the same height, somewhere in between it has a flat tangent.
Example For on we have , and is a polynomial, so the hypotheses hold. Solving gives , which lies in .
Mean value theorem
Definition Suppose is continuous on and differentiable on . Then there is at least one number in with
In plain words Somewhere along the way the tangent line is parallel to the secant line joining the endpoints. If your average speed on a trip was 80, at some instant the speedometer read exactly 80.
Example For on the secant slope is
Solving gives , which lies in .
Monotonicity
Definition A function is increasing on an interval if whenever are points of , and decreasing on if whenever are points of . The increasing and decreasing test says that if is continuous on and at every interior point of , then is increasing on . If instead at every interior point, then is decreasing on . The test follows from the mean value theorem.
In plain words The sign of the derivative tells you whether the graph rises or falls, and it does so for every point of the interval, not just the ones that were plotted.
Example For the derivative factors as . It is positive for and and negative for . So is increasing on and on , and decreasing on .
Concavity
Definition Let be differentiable on an open interval . The graph of is concave up on if is increasing on , and concave down on if is decreasing on . The concavity test says that if for all in , the graph is concave up on , and if for all in , it is concave down on . A point of the graph is an inflection point if is continuous at and the graph changes from concave up to concave down, or from concave down to concave up, at .
In plain words Concave up bends like a cup, concave down bends like a cap. The second derivative says which one you have.
Example For the second derivative is . The graph is concave down on and concave up on , so is an inflection point.
Window selection
Definition The viewing window of a plot is the rectangle of the plane that is drawn on the screen. Features smaller than about one pixel in either direction, or outside the rectangle, cannot be seen.
In plain words The window is a choice, and a bad choice can hide the most interesting part of the graph. Zoom in and out before you believe a shape.
Example The cubic looks like a plain increasing curve in the window . Yet vanishes at , and
are a local maximum and a local minimum. The bumps rise and fall by in a window units tall, about ten thousand times smaller, so only a window like shows them.
Sampling
Definition A plotter evaluates at finitely many sample points in the window and joins consecutive points with line segments. The drawn curve agrees with only at the samples. What does strictly between two samples is not computed at all.
In plain words The computer connects the dots. If the function wiggles faster than the dots are spaced, the picture can be completely wrong.
Example Plot on with the 51 equally spaced samples . Every sample gives
so the screen shows a flat line on the axis. The true graph oscillates between and fifty times on that interval.
Roundoff
Definition A computer stores real numbers in floating point form with a fixed number of binary digits. In standard double precision with rounding to nearest, each real number in the normal range is stored as
and each arithmetic operation returns the exact result rounded the same way. Roundoff error is the difference between a computed value and the exact value that comes from these roundings.
In plain words The machine keeps about 16 significant decimal digits. Usually that is plenty, but when two nearly equal numbers are subtracted, most of those digits cancel and what remains can be mostly noise.
Example The function
tends to as . In double precision , which is fine. But to many digits. The floating point number just below is , and lies less than halfway from to it, so it rounds to exactly . The numerator becomes and the computer returns , although the true value is about . A plot of very close to shows ragged noise and drops to zero, though the true graph is smooth.
Truncation
Definition Truncation error is the error made when an exact infinite or limiting process is replaced by a finite one, such as stopping a series after finitely many terms, using a difference quotient with a fixed instead of a limit, or replacing an integral by a finite sum. It is present even if every arithmetic step is done exactly.
In plain words Roundoff comes from storing numbers. Truncation comes from stopping early. Both affect every computed graph and table.
Example Start from the series
and stop after the term with . That gives
while . The truncation error is about , and no amount of extra precision in the arithmetic would remove it.
Graph evidence versus proof
Definition A computed graph is the picture of finitely many rounded values of in one window. It is evidence and can suggest a conjecture, but it is not a proof of any statement about all in an interval. A proof uses exact reasoning that covers every point, for example the intermediate value theorem, the extreme value theorem, the mean value theorem or the derivative tests above.
In plain words Use the graph to guess, then use calculus to be sure. A statement such as “these curves meet only twice” needs an argument, not a screenshot.
Example In the window the curves and appear to meet only at and . They meet a third time. Let , which is continuous. Since
the intermediate value theorem gives a root in . Bisection places it near .
Check yourself
- Verify that satisfies the hypotheses of Rolle’s theorem on and find the number it promises.
Show the answer
The function is a polynomial, so it is continuous on and differentiable on , and . Solving gives , which lies in .
- A plot of on uses the 11 samples . What does the screen show, and why?
Show the answer
Every sample gives , so the screen shows the horizontal line . The true graph oscillates between and ten times, and all of that happens between samples.
- A plot suggests that is increasing everywhere. Prove it.
Show the answer
The derivative satisfies for every real , and is continuous, so by the increasing and decreasing test is increasing on .