Home page for accesible maths 2 Curves

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

2.1 Functions and their graphs

A function f is a rule of correspondence that associates with each element x in some set, called the domain, a single value f(x) from a second set, called the codomain. In the following, we consider functions of the form f:I, where the domain I of f is a subset of .

Definition 2.1

Let I be a subset of R and let f:IR. The graph of the function f(x) is the subset {(x,f(x))R2:xI} of R2.

Example 2.2. Let f(x)=x3/2. Since x3/2 is not defined for x<0, the domain cannot be all of .

Let’s take I={x:x0}, which is the largest subset of on which f is defined. Then f:I, so the graph of the function is {(x,x3/2)2:x0}.

In general, how do we go about sketching the graph of a function f(x) by hand? First of all, we look for any obvious roots of f(x)=0: we might calculate the values of f(0) and f(±1), 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:

Definition 2.3

A stationary point of a function f:IR is a point α for which f(α)=0.

Important point: A necessary part of the definition of a stationary point is that f(α) be defined, i.e. that f be differentiable at α.

Definition 2.4

Let f:IR be a function. A point αI is a local minimum if for all x sufficiently close to α, f(x)f(α). Similarly, α is a local maximum if for all x sufficiently close to α, f(x)f(α).

A global minimum (resp. maximum) of f is a value f(α) such that f(x)f(α) (resp. f(x)f(α)) for all xI.

Example 2.5

Let f(x)=x3-x2-x+1. Then f(1)=, and

f(1+δ)=                             

For δ small (positive or negative), δ2(δ+2)0. Thus f(x)f(1) for x sufficiently close to 1. Hence f(1)=0 is a local minimum of f(x) at 1. On the other hand, f(x)- as x-, so 0 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 (α,f(α)) 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 f′′(α)<0 then (α,f(α)) is a local maximum;

Case 2. If f′′(α)>0 then (α,f(α)) is a local minimum;

Case 3. If f′′(α)=0 then (α,f(α)) may be a local maximum or minimum, or it could be a saddle point. In this case we need to look at values of f(x) for x just greater than or just less than α to determine what type of point (α,f(α)) is.

Examples 2.6. a) Suppose f(x)=x3. Then f(x)=3x2, which is zero exactly when x=0. Now f′′(x)=6x so f′′(0)=0. Hence we are in Case 3. For x small and negative, x3 is also small and negative. For x small and positive, x3 is also small and positive. So (0,0) is a saddle point.

b) Suppose f(x)=x4. Then once again x=0 is the only solution to f(x)=0; and f′′(0)=0. However, if x is small and negative or positive then x4 is greater than zero. So (0,0) is a local minimum.

Example 2.7 It isn’t always necessary to check the value of f′′(α) to determine whether (α,f(α)) is a local minimum or maximum. Let f(x)=x3-3x-1. Then f(x)=3x2-3, so f(x)=0 if and only if x=         . Note that for x large and negative, x3 dominates all other terms in f(x) and is large and negative, so: as x-, f(x)-. Similarly, as x, f(x).

We now calculate the values of f(-1)=-1+3-1=1 and f(1)=1-3-1=-3. Let’s plot these points on the graph, bearing in mind that f(x)- as x- and f(x) as x. We may as well calculate f(0) too.

We can see that x=-1 must be a local maximum and x=1 must be a local minimum. Finally, we may wish to calculate some further values f(2), f(-2) etc. in order to estimate where the curve crosses the x-axis, i.e. where the roots of f(x)=0 are. We have f(2)=1 and f(-2)=-3, so there is (at least) one root of f(x)=0 for x(-2,-1), there is at least one root for x(-1,0) and at least one more root for x(1,2). Since a cubic polynomial can have at most three real roots, we see that f(x)=0 has exactly one root in each of the intervals (-2,-1), (-1,0) and (1,2).

The above discussion gives us a general approach to sketching the graph of a function:

- first calculate some values of f(x) at key points,

- then look for turning points,

- finally, determine what happens as x±.

A note of caution: All of the above discussion assumes that f(x) is differentiable. If it isn’t, then there may be local (or even global) extrema for which f(x) doesn’t exist.

Example 2.8

The minimum value of f(x)=|x| is f(0)=0, but f(x) is not differentiable at 0.