Extrema and concavity

A look at first and second derivative tests.

Contents

Higher derivatives

Derivative functions can also be differentiated. The second-derivative of ff is

d2dx2f(x)=d2fdx2=ddxf(x)=f(x)\frac{\d ^2}{\d x^2} f(x) = \frac{\d ^2f}{\d x^2} = \frac{\d }{\d x} f^\prime(x) = f^{\prime\prime}(x)

At HL, there is also the notation

dndxnf(x)=f(n)(x)\frac{\d ^n}{\d x^n} f(x) = f^{(n)}(x)

for the nnth derivative.

Purpose

In this course, the purposes of identifying extrema are primarily

  1. Curve sketching
  2. Identifying intervals of increasing and decreasing
  3. Optimization problems
  4. Kinetics problems

The purpose of identifying concavity is mainly curve sketching-related.

So extrema and concavity are not only goals, but also tools.

Stationary points

A stationary point is where f(x)=0f^\prime(x) = 0. It is either a local extremum or a horizontal point of inflexion. There are of course other extrema or points of inflexion outside of stationary points.

IB excludes stationary points from intervals of increasing or decreasing.

Extrema

If the function is not defined over all reals, then these endpoints are automatically local extrema, provided that the function is defined on these endpoints.

Otherwise, x=x0x = x_0 is a critical point, or candidate for a local maximum or local minimum if

  1. f(x0)=0f^\prime(x_0) = 0, OR
  2. f(x0)f(x_0) is defined, but f(x0)f^\prime(x_0) is undefined (not differentiable).

Both tests are applicable when f(x0)=0f^\prime(x_0) = 0. When f(x0)f^\prime(x_0) is undefined you should evaluate function at x0x_0 and nearby values. It is rare for question to include when f(x0)f^\prime(x_0) is undefined.

Passing either the first or second derivative test means an extremum on x=x0x = x_0. Failing either test (as long as it is applicable) means there is no extremum on x=x0x = x_0.

The global maximum (minimum) is the greatest (least) of the local maxima (minima).

Concavity

Informally, a portion of the graph looking like \cup is concave up, while ones looking like \cap is concave down. The point where a graph changes concavity is known as the point of inflexion.

First derivative test

With critical point x=x0x = x_0, pick aa and bb such that a<x0<ba < x_0 < b. There cannot be other critical points in [a,b][a, b]. Try to make the algebra easy, if applying first derivative test by hand.

caseresult
f(a)>0>f(b){f^\prime(a) > 0 > f^\prime(b)}local maximum; \cap concave down; or  concave up
f(a)<0<f(b){f^\prime(a) < 0 < f^\prime(b)}local minimum; \cup concave up; or  concave down
no sign change, f(x0)=0f^\prime(x_0) = 0horizontal (stationary) point of inflexion (eg (0,0)(0,0) on xx3x \mapsto x^3)
no sign change, f(x0)f^\prime(x_0) is undefinednot extremum or POI

Second derivative test

The second derivative test requires the first derivative to be defined (and continuous).

Find f(x)f^{\prime\prime}(x), and evaluate f(x0)f^{\prime\prime}(x_0).

caseresult
f(x0)<0{f^{\prime\prime}(x_0) < 0}local maximum; \cap concave down
f(x0)>0{f^{\prime\prime}(x_0) > 0}local minimum; \cup concave up
f(x0)=0{f^{\prime\prime}(x_0) = 0}horizontal (stationary) point of inflexion (eg (0,0)(0, 0) on xx3x \mapsto x^3)

Global extrema

Global max and min can be determined by comparing all the yy-values of the endpoints and critical points, using f(x)f(x).

Example: Consider

f(x)=sin3x,    π2x<3π2f(x) = \sin^3x,\;\; -\frac\pi2 \leq x < \frac{3\pi}2

find the xx-coordinates of all extrema, and classify each extremum as a minimum or a maximum.


0=f(x)=3(sin2x)cosx\begin{align*} 0 &= f^\prime(x) \\ &= 3 \left(\sin^2x\right)\cdot\cos x \end{align*}

Either

sin2x=0    x=0,π\sin^2 x = 0 \implies x = 0, \pi

or

cosx=0    x=π2,π2\cos x = 0 \implies x = -\frac{\pi}{2}, \frac{\pi}{2}

There are no points in the interval where the derivative is undefined.

The endpoints of the domain, if any, should be considered. However, π2-\frac\pi2 is already a critical point from the first derivative being zero, and 3π2\frac{3\pi}{2} is outside the domain so it is ignored.

As the critical points have derivatives being zero, we can proceed with either the first derivative test or the second derivative test. Both are shown, but either alone works.

Method 1: First derivative test

Note that sin2x\sin^2 x does not change the sign of f(x)f^\prime(x), so we only care about the sign of cosx\cos x.

cosx\cos x is positive over π2<x<π2-\frac\pi2 < x < \frac\pi2, and negative over π2<x<3π2\frac\pi2 < x < \frac{3\pi}{2}. For some a<x0<ba < x_0 < b which contains only one critical point, namely x0x_0,

x0x_0f(a)f^\prime(a)f(b)f^\prime(b)
π2-\frac\pi2don’t care*++
00++++
π2\frac\pi2++-
π\pi--

If the first derivative changes signs from positive to negative, it is a local max. So a max at x=π2x = \frac\pi2 \qed

If the derivative does not change signs, it is a horizontal point of inflexion, such as at x=0,πx = 0, \pi.

At the endpoint of the domain, we just care about the the interval that is defined. So since the function increases after x=π2x = -\frac\pi2, it is a minimum \qed

Method 2: Second derivative test

f(x)=3cosx(2sinxcosx)3sin3x=3sinx(2cos2xsin2x)\begin{align*} f^{\prime\prime}(x) &= 3\cos x(2\sin x \cos x) - 3\sin^3 x \\ &= 3 \sin x (2\cos^2 x - \sin^2 x) \end{align*}

As the second derivative is zero at x=0,πx = 0, \pi, they are horizontal points of inflexion and not extrema.

f(π2)=3(1)(01)=3>0f^{\prime\prime}\left(-\frac\pi2\right) = 3(-1)(0 - 1) = 3 > 0
f(π2)=3(1)(01)=3<0f^{\prime\prime}\left(\frac\pi2\right) = 3(1)(0 - 1) = -3 < 0

ff is concave up at x=π2x = -\frac\pi2 so it is a min; ff is concave down at x=π2x = \frac\pi2 so it is a max \qed

The choice between first and second derivative tests depends on which method is easier for the specific function, and whether the question specifies a method. It is imperative that you are familiar with both methods.

Points of inflexion

A point of inflexion at x=x1x = x_1 requires

  • f(x1)f^\prime(x_1) is defined
  • f(x1)=0f^{\prime\prime}(x_1) = 0
  • no sign change around f(x1)f^\prime(x_1) or sign change around f(x1)f^{\prime\prime}(x_1).

Note that a POI is only a horizontal POI if the first derivative is also 00. A POI need not satisfy either the first or second derivative tests.

Example: Find all points of inflexion in

f(x)=cosx+2ex,πx2πf(x) = \frac{\cos x + 2}{\e^x},\,\, -\pi \leq x \leq 2\pi

0=f(x)=ddxex(sinx)(cosx+2)exe2x=ddxsinxcosx2ex=ex(cosx+sinx)+(sinx+cosx+2)exe2x=2sinx+2ex0=2(sinx+1)1=sinxx=π2,3π2\begin{align*} 0 &= f^{\prime\prime}(x) \\ &= \frac{\d}{\d x}\frac{\e^x(-\sin x) - (\cos x + 2)\e^x}{\e^{2x}} \\ &= \frac{\d}{\d x} \frac{- \sin x - \cos x - 2}{\e^x} \\ &= \frac{\e^x(-\cos x + \sin x) + (\sin x + \cos x + 2)\e^x}{\e^{2x}}\\ &= \frac{2\sin x + 2}{\e^x} \\ \\ 0 &= 2(\sin x + 1) \\ -1 &= \sin x \\ x &= -\frac\pi2, \frac{3\pi}2 \end{align*}

From our knowledge of trigonometric functions and their transformations, we have

2sinx+202\sin x + 2 \geq 0

Hence there is no sign change in the second derivative of either values, so ff does not have any points of inflexion \qed

Tips

  1. Does the question care about all extrema or just ones on an open or closed interval?
  2. Does question state that a max or min exist, or do you have to prove it’s a max or min?
  3. Did you check the endpoints? Do you need to check them?
  4. Does question want xx or yy or both?
  5. Is it easier to find the second derivative or evaluate at values near the critical point?