Section 5: Applications of DerivativesKCT logo

© 1997 by Karl Hahn

5.2 Squigglies, Wormtails, and Pointed Little Heads

Wilbur and Wilma (apologies to any of you whose name matches one of these) are worms. Perhaps you have somebody like them in your life, but that has little to do with the matter at hand. Wilbur the Worm and Wilma the Worm both live in a garden patch planted on a gently sloping hillside. Wilbur has long pined for Wilma's affections, but alas, he is shy and can't bring himself to do more than show off from afar in the wistful hope that she might be watching.

When it comes to showing off, there are advantages to being a worm. Your lithe and slender body can flex in ever so many ways. And one of these just might be the key to Wilma's heart.

It seems that on one particular morning, Wilbur learned that Wilma wears bifocals. And for this reason she sees more clearly what is higher on the sloping garden than what is lower -- at least from a distance.

Wilbur, wishing to show himself in the best way possible, looks at himself and says, "My middle section is looking especially trim today." So he lies on the slope with a bend in his body so that his middle is higher than either his head or tail.

It is on this day that, at last, he catches Wilma's eye. You must understand that she is somewhat bookish, if you'll excuse the suggested pun, and has been busying herself lately with the study of calculus.

"Will you look at that," she says to herself. "The way that handsome Wilbur Shows Off worm is lying on the slope, his middle forms a maximum of height. If I follow his length beginning at his head, he slopes up to begin with. Then right at his maximum height he slopes not at all. Finally, from just behind his middle all the way to his tail, he slopes back down."

She thinks about what she has learned recently. "If l is the length along his lovely body as measured from his nose," she reasons, "then there is a function, h(l) that represents the height of any part of his body. h'(l) would then represent how steeply he increases or decreases in height as I follow his length toward his tail. And just as I've learned, h'(l) is exactly zero at the point on his middle where he is highest."

"But what about where he is lowest? I can't quite make out whether his head is lower than his tail, or vice versa, but at neither of them is h'(l) equal to zero. Yet one of those two is his minimum height. How can that be?"

But then Wilma remembers what she learned about exceptions to the rule. "Yes, I recall. A maximum or minimum can be at a stationary point, where h'(l) is zero, but it can also be at an endpoint where h'(l) need not be zero. Both his head and tail are endpoints so either could be a maximum or minimum. In this case, they are both local minimums, and either one or the other is a global minimum."

At that moment, Wilbur looks up to see Wilma gazing his way. He is at once startled, nervous, and happier than he has been these many long months. Of course his change of mood is accompanied by a change of shape. Wilbur Looks Up

"Oh dear," says Wilma. "His middle is no longer a maximum, nor is it a minimum, local or global. Yet h'(l) is still zero at his middle. So there's a stationary point that is neither a local maximum nor a local minimum. How can that be?"

Wilbur overhears her talking to herself. With great effort, he overcomes his shyness and speaks. "My form never slopes up as you procede from my head to my tail," he assures her. "At my head, it is sloping sharply down. But as you get close to my middle, there is less downward (that is negative) slope. So h'(l) is increasing (that is becoming less negative). That means that h"(l) must be positive near my head. But at my tail, I am sloping down sharply again. That means that from my middle to my tail, my slope must be decreasing (that is growing more negative). So in that half of my body, h"(l) must be negative. But what is h"(l) right at my middle. It appears to be zero."

From Wilma's attentive expression, he gathers that she is fascinated with his explanation. "Stationary points that occur where the second derivative is negative," he continues, "are maximums, and stationary points that occur where the second derivative is positive are minimums. That is the rule. If the second derivative is exactly zero at the stationary point then (usually) the stationary point is neither a maximum nor a minimum [I'll cover the exception to this rule after the end of this story]. Such stationary points are said to be inflection points as well." [note that "inflection" is sometimes spelled "inflexion," which is the British spelling]

fig 5-5 "So pleasant to meet a gentleman who is well versed in a topic that interests me," she says. "Then you too dabble in calculus and hence must understand the subtlies of inflection points. Please tell me more."

"I'm sure your knowledge surpasses mine by as much as your beauty surpasses mine," Wilbur begins. "Recall that the second derivative of a function, f(x), is the dervative of its derivative. Recall also that a stationary point of f(x) is where f'(x) is zero. Well, an inflection point is where f'(x) has a stationary point and where f'(x) is either at a local maximum or a local minimum of its own. That means that at an inflection point, f"(x) must be zero. When an inflection point coincides with a stationary point, that stationary point becomes an exception to the rule. It can be neither a local maximum nor a local minimum."

"I see," says Wilma. "Inflection points of a function do not necessarily have to be at its stationary points. For example, the function,  f(x) = x3 + x  has no stationary points. That's because  f'(x) = 3x2 + 1  has no x-values where f'(x) is zero. But it has an inflection point at  x = 0.  That's because  f"(x) = 6x,  which is zero at  x = 0."

"But observe this," says Wilbur, drawing a graph of Wilma's functions in the sand. Notice that  f"(x) = 6x  is positive whenever x is positive. Everywhere f"(x) is positive, the graph of f(x) is concave facing up. But when x is negative,  f"(x) = 6x  is also negative. And everywhere f"(x) is negative, the graph of f(x) is concave pointing down. At the inflextion point, which is, as you correctly calculate, at  x = 0,  where  f"(x) = 0,  the graph of f(x) is neither concave up nor concave down. In fact, just at that point, it resembles a straight line. The inflection point is, if you will, the center of the squiggle."

"Sir!" replies Wilma. "All this wonderful talk of calculus and squiggles is making me feel so warm and flushed. You wouldn't be trying to take advantage of me, would you?"

Even a shy worm like Wilbur can recognize his cue when he hears it. With that, he slips off her bifocals, takes her in his non-arms, and kisses her. fig 5-6: Worms' First Kiss When their lips part and Wilma has caught her breath, she says, "How very strange. Look carefully at our maximum height when we kiss ..."

This time, she kisses him.

"Our height has a maximum," she says, "at the point we were joined. Yet there is no stationary point there. How can that be?"

"How can there be a stationary point where we join in passion?" says Wilbur. "You can't even define h'(l) at that point."

"Why not?" asks Wilma.

"From left to right, the slope is sharply up on your side and sharply down on my side. Our derivative is discontinuous where we joined. That is the last exception to the rules. A local maximum or minimum must be a stationary point (and one that is not also an inflection point), an endpoint, or a point at which the derivative is discontinuous. For the last case, the derivative must in fact pass through zero discontinuously. Some folks call points like that cusps. You can recognize cusps on a graph because the trace appears to turn a corner all at once there."

"This has cast light on ever so many questions I have had, sir," says Wilma. "Perhaps we can go some place cozy and discuss higher derivatives at greater length."


Higher Derivatives and When Is it an Inflection Point?

As promised, I will give you the true test for inflection points shortly. First, consider that we defined the second derivative of a function as the derivative of its derivative. Is there any reason we need to stop there? Can't the second derivative of a function also have a derivative of its own? And wouldn't the natural name for the derivative of the second derivative be the third derivative? In fact, couldn't you keep taking further derivatives and come up with the fourth, fifth, sixth derivatives -- or even the nth derivative for any positive integer n? For example, the function that interested Wilbur and Wilma was  f(x) = x3 + x.  Here are its derivatives:

   f'(x)  =  3x2 + 1

   f"(x)  =  6x

   f(3)(x)  =  6

   f(4)(x)  =  0

   f(5)(x)  =  0
Inflection Exception In fact all the derivatives, fourth and upward, are zero. Note the notation for derivatives of order higher than second. Some books use this notation, others use a superscripted Roman numeral (e.g. fiv(x) indicates fourth derivative). Both notations mean the same thing.

Now we can begin discussion of when something is an inflection point. The first rule is that in order for a to be an inflection point of f(x), it must be a stationary point of f'(x). That means, as we already know, that  f"(a) = 0.

Remember how Wilbur said that an inflection point is where a function's derivative has a maximum or a minimum. If f(x) is the function we are examining for inflextion points, then let  g(x) = f'(x).  For a to be an inflection point of f(x), a must also be either a maximum or a minimum of g(x). That means that  g'(a) = 0  and g"(a) is nonzero. But  g'(a) = f"(a)  and  g"(a) = f(3)(a).

So, can a function have its second derivative be zero at some point yet not have an inflection point there? Figure 5-7 shows an example of just that. The blue trace is the function,  f(x) = 0.25x4.  We can see that its derivative,  f'(x) = x3,  has a zero at  x = 0.  In addition, its second derivative,  f"(x) = 3x2,  has a zero at  x = 0  as well. So at first blush, we expect f(x) to have an inflection point at  x = 0.  But when we examine the third derivative,  f(3)(x) = 6x,  we find that it also is zero at  x = 0.

If we let  g(x) = f'(x)  and look for where g(x) has a maximum or minimum, we find that  g'(x) = 3x 2 has a zero at  x = 0,  and hence a stationary point there. But  g"(x) = 6x  is also zero at  x = 0.  So by our rules, we cannot determine if the stationary point in g(x) is a maximum or a minimum. In fact, it is neither.

Here is the rule: If f(x) is a function that has higher derivatives, then if  f"(a) = 0,  then a may be an inflection point. If f(3)(a) is nonzero, then a is an inflection point.

But if f(3)(a) is zero, then what? It still might be an inflection point. To determine if it is, keep taking higher derivatives until you come up with one that is nonzero at  x = a.  If the derivative number of the first nonzero derivative is even, then it is not an inflection point. If the derivative number of the first nonzero derivative is odd, then it is an inflection point.

In the case we have been examining,  f(x) = 0.25x4,  the third derivative was zero at  x = 0.  But the fourth derivative,  f(4)(x) = 6,  is nonzero at  x = 0.  This is an even derivative, so by our rule,  x = 0  is not an inflection point.


Points to Remember

The exceptions to maximums and minimums being at stationary points are:

a) That a maximum or minimum can be at an end point. If you are only concerned with  p < x < q,  then p and q can each be a local maximum or local minimum on that interval.

b) That a function's maximum or minimum can be at a point where its derivative is discontinuous. We called such points cusps.

c) That a stationary point is not a maximum or minimum if it is also an inflection point. But if a stationary point is not also an inflection point, then it must be either a local maximum or local minimum.

d) If a function's second derivative is zero at some point, then you can use the odd-even rule of higher derivatives to determine whether or not that point is an inflection point. That leaves only one question. If you have a stationary point at  x = a,  and the second derivative is zero at that point, but the odd-even rule determines that it is not also an inflection point, then is it a maximum or a minimum?

In the case of  f(x) = 0.25x4,  the odd-even rule determined that  x = 0  was not an inflection point because the fourth derivative was nonzero at  x = 0,  and four is even. If you look at the value of that even derivative, it will tell you whether the point is a maximum or a minimum. If it is positive, then it is a minimum. If it is negative, then it is a maximum. In this case, what does the rule determine? Does that jibe with the blue trace on the graph (figure 5-7)?

Your curriculum may not cover the odd-even rule, but it will certainly cover all the rest that we have covered in this section. You should be prepared to answer an exam question phrased as: Find all the maximums, minimums, stationary points, and inflection points of the function  f(x) = expression  on such and such an interval. Some practice problems of this form follow here. Try hard to reach an answer before you go clicking on the solution. On these problems it might help to sketch a graph of the functions and their derivatives before doing your analysis.


1) Find local maximums and minimums for  f(x) = |x|  on the interval  -2 £ x £ 1. (click here to see solution)

2) Find local maximums and minimums for  f(x) = x2 - 4x + 4  on the interval  2 £ x £ 6. (click here to see solution)

3) Find local maximums and minimums for  f(x) = (|x - 2| - 2)2 + x - 5  on the interval  -4 £ x £ 8. (click here to see solution)

4) Find local maximums and minimums for  f(x) = (|x - 2| + 2)2 + x - 5  on the interval  -4 £ x £ 8. (click here to see solution)

5) Find local maximums and minimums for  f(x) = |x2 - 5x + 6|. Since I know that you are already comfortable doing endpoints, I won't include an interval on this one. (click here to see solution).

6) Find local maximums, minimums, and inflection points for

              4x
   f(x)  =        
            1 + x2
Note that you will need to use both the
quotient rule and the chain rule to do this problem. (click here to see solution).


Return to Table of Contents

Move on to 5.3 The Way to Shangrila

email me at hahn@netsrq.com