A function is a rule of correspondence that associates with each element in some set, called the domain, a single value from a second set, called the codomain. In the following, we consider functions of the form , where the domain of is a subset of .
Let be a subset of and let . The graph of the function is the subset of .
Let’s take , which is the largest subset of on which is defined. Then , so the graph of the function is .
In general, how do we go about sketching the graph of a function by hand? First of all, we look for any obvious roots of : we might calculate the values of and , say. This is just to get some idea for the position of the graph in relation to the axes. In order to get an idea of the shape of the curve, we look for turning points.
Turning points
Turning points are special types of stationary points:
A stationary point of a function is a point for which .
Important point: A necessary part of the definition of a stationary point is that be defined, i.e. that be differentiable at .
Let be a function. A point is a local minimum if for all sufficiently close to , . Similarly, is a local maximum if for all sufficiently close to , .
A global minimum (resp. maximum) of is a value such that (resp. ) for all .
Let . Then , and
For small (positive or negative), . Thus for sufficiently close to 1. Hence is a local minimum of at . On the other hand, as , so is certainly not a global minimum.
A stationary point may be a local maximum, a local minimum or a saddle point (which is neither local minimum nor local maximum). A stationary point which is a local maximum or a local minimum is called a turning point. There are a few different ways to determine which type of stationary point is.
Let’s sketch some curves to see the different things that might happen.
The above graphs are a visual justification of the rule you probably already know for determining whether a point is a local minimum, a local maximum or a point of inflection:
Case 1. If then is a local maximum;
Case 2. If then is a local minimum;
Case 3. If then may be a local maximum or minimum, or it could be a saddle point. In this case we need to look at values of for just greater than or just less than to determine what type of point is.
Examples 2.6. a) Suppose . Then , which is zero exactly when . Now so . Hence we are in Case 3. For small and negative, is also small and negative. For small and positive, is also small and positive. So is a saddle point.
b) Suppose . Then once again is the only solution to ; and . However, if is small and negative or positive then is greater than zero. So is a local minimum.
Example 2.7 It isn’t always necessary to check the value of to determine whether is a local minimum or maximum. Let . Then , so if and only if . Note that for large and negative, dominates all other terms in and is large and negative, so: as , . Similarly, as , .
We now calculate the values of and . Let’s plot these points on the graph, bearing in mind that as and as . We may as well calculate too.
We can see that must be a local maximum and must be a local minimum. Finally, we may wish to calculate some further values , etc. in order to estimate where the curve crosses the -axis, i.e. where the roots of are. We have and , so there is (at least) one root of for , there is at least one root for and at least one more root for . Since a cubic polynomial can have at most three real roots, we see that has exactly one root in each of the intervals , and .
The above discussion gives us a general approach to sketching the graph of a function:
- first calculate some values of at key points,
- then look for turning points,
- finally, determine what happens as .
A note of caution: All of the above discussion assumes that is differentiable. If it isn’t, then there may be local (or even global) extrema for which doesn’t exist.
The minimum value of is , but is not differentiable at .