Now we shall see how some of the things we have learned can help us to get a quick idea of the appearance of the graph of a function . In practice, we are usually concerned with functions which have as many derivatives as we wish (the second derivative f''(x) is simply the derivative of the derivative f'(x), and so on to higher derivatives) except at a few points whose exceptional behavior is fairly clear from the start.
To begin with, we must extend our definition of maximum and minimum to include relative maxima and minima. Let be defined in the interval . A point , is called a relative maximum of if there is a neighborhood of , that is, an interval such that and , with the property that is a maximum for in this interval. Relative minimum is similarly defined. If is continuous in and differentiable for , the same properties hold in any sub-interval ; our earlier considerations of maxima and minima then tell us that \boldsymbol{f'(x_0) = 0} whenever is a relative maximum or a relative minimum.
The converse is false, as is easily seen by considering the curve at . Here y' = 3x^2, so y'(0) = 0, but 0 is neither a relative maximum nor a relative minimum, as is evident from the graph.

Therefore once we have determined the points where y' = 0, we must determine whether they are relative maxima, relative minima, or neither of these.
Suppose f'(x_0) = 0, and suppose we also calculate f''(x_0) and find f''(x_0) > 0. Then for small ,
\frac{f'(x_0+h) - f'(x_0)}{h} = \frac{f'(x_0+h)}{h} > 0 .Thus if h > 0, f'(x_0+h) > 0; if h < 0, f'(x_0+h) < 0. Now consider an interval small enough so that for all such that 0 < h \le \delta, f'(x_0+h) > 0 and for all such that -\delta \le h < 0, f'(x_0+h) < 0. Then **is a minimum for in this interval.** For if is any point of the interval and , then f(x_1) - f(x_0) = f'(\xi)(x_1 - x_0), where or , with . Thus f'(\xi) > 0, and . In similar fashion we show that if is a point of the smaller interval and , then . This proves the assertion, and shows in addition that is the only minimum of in . We have now proved the following:
If f'(x_0) = 0 and if f''(x_0) > 0, then is a relative minimum for .
By the same type of reasoning, we can prove:
If f'(x_0) = 0 and if f''(x_0) < 0, then is a relative maximum for .
If f'(x_0) = 0 = f''(x_0), our information is still incomplete; we could have behavior like that of at 0, or a minimum as in the case of at 0, or a maximum as in the case of at 0. We could even have more complicated behavior; consider the following function at :
f(x) = \left\{ \begin{aligned} x^4 \sin \frac{1}{x}, \quad x \neq 0 \\ 0 \quad \text{if } x = 0 \end{aligned} \right\}is really impossible to sketch with any accuracy in a neighborhood of 0 because the breadth of the curves we actually draw will not allow us the space to represent very many of its fluctuations.
Now let us look a little more closely at f''(x). Suppose f''(x_1) > 0 at some point . Then for small , the difference quotient
\frac{f'(x_1+h) - f'(x_1)}{h}is positive; if h > 0, f'(x_1+h) > 0, and if h < 0, f'(x_1+h) < 0. But f'(x_1) is the slope of the tangent to the curve at , so this tangent is given by the equation y = f'(x_1)x + b, where is yet to be determined. But we must have on this line, or f(x_1) = x_1 f'(x_1) + b, and b = f(x_1) - x_1 f'(x_1). Thus the tangent line at is
y = x f'(x_1) + (f(x_1) - x_1 f'(x_1)) .Now let be in a neighborhood of so small that whenever is in this neighborhood,
\frac{f'(x_1+h) - f'(x_1)}{h} > 0 .Then f(x) - f(x_1) = f'(\xi)(x - x_1), where is between and , therefore is surely in this neighborhood of . If , then , and f'(\xi) > f'(x_1) as we have seen above. Therefore
f(x) - f(x_1) > f'(x_1)(x - x_1),or
f(x) > x f'(x_1) + (f(x_1) - x_1 f'(x_1)) .If , then f'(\xi) < f'(x_1), and
f(x_1) - f(x) < f'(x_1)(x_1 - x),or
f(x) > x f'(x_1) + (f(x_1) - x_1 f'(x_1)) .In either case, the value of the original function is greater than the value of the function describing the tangent line, or the curve lies above its tangent at (meaning, of course, in a neighborhood of ). In this case we say that the curve is concave upward at . Likewise, if f''(x_1) < 0, the curve lies below its tangent at , in a neighborhood of , and we call it concave downward at . Thus the second derivative is related to the curvature of the curve; for example, if f''(x_1) is large and positive, the curve bends sharply upward at ; if f''(x_1) is large and negative, the curve bends sharply downward at .
Suppose now that the graph of crosses its tangent at a point . Then is called a point of inflection of . We have seen that if f''(x_0) > 0, the curve lies above its tangent in a neighborhood of , and that if f''(x_0) < 0, it lies below the tangent. Therefore the only possible candidate for a point of inflection is a point where \boldsymbol{f''(x_0) = 0}. Once again, not all such points need be points of inflection, as is seen from .
If the tests we have mentioned fail to determine whether a point is a relative maximum or minimum, or a point of inflection, one should simply test that point by referring to the definitions of these terms. There are tests involving higher derivatives, but we shall not discuss them.
Now let us consider the general problem of tracing the graph of a function with some attention to its critical points and in a relatively economical manner. First of all, we should observe what the domain of the function is, i.e., for what values of it is defined. For instance, is defined for for all . We should also observe what its range is, i.e., what values can take on. For example, the range of is , while that of is all and that of is all numbers. Next we should determine a few points of the graph, and one usually finds those where it crosses the axes. It will of course cross the y-axis when . Sometimes finding where it crosses the x-axis, i.e., where , is considerably harder, and must be estimated. The totality of such points are called the intercepts of the graph.
Then one should determine the turning points, i.e., relative maxima and minima and points of inflection. By the location of the maxima and minima and by the behavior of for very far positive and very far negative, it is possible to see in what direction the curve crosses its tangent at the points of inflection. It is also useful to determine in what regions f''(x) > 0 and f''(x) < 0, to see in what direction the curve is concave. In this process, some points may occur where the first or second derivative does not exist. They should be plotted separately, and special attention should be paid to the behavior of the curve near them.
Finally, one should look for the asymptotes of the curve, which are, roughly speaking, lines approached by the curve. Vertical asymptotes will often occur at points where the function is undefined; for example, the line is a vertical asymptote to . Horizontal asymptotes will occur when approaches a constant as goes very far positive or very far negative. The line is, for instance, a horizontal asymptote to , here both for far negative and far positive. A suspected oblique asymptote can be treated by the test for horizontal asymptotes by taking its equation and subtracting from to get the new function . Then is an asymptote for if and only if is an asymptote for .
By these considerations, one can make a sketch which will reveal the shape of the curve, since the behavior between the critical points can be plotted smoothly with attention only to the concavity in these regions. As an example, let us consider . This is defined for all , becomes far negative as becomes positive, far positive as goes far negative, and takes on all values between. Thus its range is all numbers. We see that . Thus the intercepts are and . Now f'(x) = \frac{2}{3}x^{-1/3}(1 - x) - x^{2/3}, where this is defined. We see from the first term that f'(0) is undefined. But for either slightly positive or slightly negative, . Therefore is a relative minimum. In the remaining cases, setting f'(x) = 0 gives
\begin{aligned} 0 &= \frac{2}{3}x^{-1/3}(1 - x) - x^{2/3} \\ &= \frac{2}{3}x^{-1/3} - \frac{2}{3}x^{2/3} - x^{2/3} \\ &= \frac{2}{3}x^{-1/3} - \frac{5}{3}x^{2/3} \\ &= \frac{2}{3} - \frac{5}{3}x, \end{aligned}or is the only solution of f'(x) = 0. Now
\begin{aligned} f''(x) &= -\frac{2}{9}x^{-4/3}(1 - x) - \frac{2}{3}x^{-1/3} - \frac{2}{3}x^{-1/3} \\ &= -\frac{2}{9}x^{-4/3} - \frac{10}{9}x^{-1/3} \\ &= -\frac{2}{9}x^{-4/3}(1 + 5x), \quad x \neq 0 . \end{aligned}Thus f''(\frac{2}{5}) < 0, and is a relative maximum. If f''(x) = 0, then , and f''(x) > 0 for x < -\frac{1}{5}, f''(x) < 0 for . Since the curvature changes sign at is a point of inflection, the graph is concave upward for , and concave downward for . There are no apparent asymptotes. In the critical region, then, the curve looks like this:

An equation for the tangent to the graph of has been given above in the discussion of concavity. However, let us derive this in parametric form, as well as the equation of the normal, or perpendicular, to at a point. A vector parallel to the tangent line is found by taking any vector such that the ratio of its components is equal to the slope. At the point , this slope is f'(x_0), and we can take a_1 = 1, a_2 = f'(x_0). The point of the curve is , and so the parametric equation of the tangent line at is
(x, y) = (x_0, f(x_0)) + t(1, f'(x_0)) .Solving for gives ; now y = f(x_0) + t f'(x_0), or
\begin{aligned} y &= f(x_0) + (x - x_0)f'(x_0) \\ &= x f'(x_0) + (f(x_0) - x_0 f'(x_0)), \end{aligned}the equation we have used before.
A vector parallel to the normal line at must be perpendicular to (1, f'(x_0)). Let be such a vector. Then
b_1 + b_2 f'(x_0) = 0, \quad \text{or} \quad \frac{b_1}{b_2} = -f'(x_0) .In particular, we can choose b_2 = 1, b_1 = -f'(x_0). The normal line is then
(x, y) = (x_0, f(x_0)) + t(-f'(x_0), 1) .EXERCISES
Courant, p. 166, ex. 1-7, 14-18.
Oakley, p. 51, ex. 1-10.