Chapter 6 · Application of Derivatives

6.3 Maxima and Minima: Local Extrema and Derivative Tests

Peaks and valleys of a graph happen where the graph stops rising and starts falling, or the reverse. Find the critical points, then let the sign of $f'$ — or the sign of $f''$ — tell you which is which.

The trek from the base village to the top of a Himalayan pass rarely climbs steadily: the trail rises to a ridge, dips to a stream, then climbs again. A trekker's altitude log has high points and low points along the way, and none of them need be the highest or lowest point of the whole trek — each is only the highest or lowest point nearby. The same happens with a company's quarterly profit, the water level of a river in a week of patchy rain, or the voltage in an electric circuit.

In this section we make "highest point nearby" precise as a local maximum (and "lowest point nearby" as a local minimum), show that for a smooth function such points can only occur where $f'(x)=0$, and learn two tests that classify each candidate: the first derivative test, which watches the sign of $f'$ change, and the second derivative test, which reads the sign of $f''$. Section 6.4 then hunts for the overall highest and lowest values.

Local Maxima, Local Minima and Critical Points

📘 Definition 6.5 — Local maximum and local minimum
Let $f$ be a real function and let $c$ be an interior point of its domain. Then
  • $c$ is a point of local maximum of $f$ if there is an $h\gt0$ such that $f(c)\ge f(x)$ for all $x$ in $(c-h,c+h)$; the value $f(c)$ is then a local maximum value of $f$;
  • $c$ is a point of local minimum of $f$ if there is an $h\gt0$ such that $f(c)\le f(x)$ for all $x$ in $(c-h,c+h)$; the value $f(c)$ is then a local minimum value of $f$.
Local maximum and minimum values together are called local extreme values (or local extrema) of $f$.

"Local" means we compare $f(c)$ only with values at points close to $c$. A function can have several local maxima of different heights, and a local maximum value can even be smaller than a local minimum value elsewhere (you will meet such an $f$ in the exercises).

Now picture a smooth graph at the top of a hill. Just before the top it is climbing ($f'\ge0$); just after, it is descending ($f'\le0$). At the very top the slope must be exactly zero. The next theorem makes this precise.

📐 Theorem 6.3 — A local extremum of a differentiable function has $f'(c)=0$
Let $f$ be defined on an open interval $I$ and let $c\in I$. If $f$ has a local maximum or a local minimum at $c$ and $f$ is differentiable at $c$, then $f'(c)=0$.

Proof (for a local maximum; a minimum is similar). For all small $h\ne0$, $f(c+h)\le f(c)$, i.e. $f(c+h)-f(c)\le0$. If $h\gt0$, then $\dfrac{f(c+h)-f(c)}{h}\le0$, so the right-hand limit gives $f'(c)\le0$. If $h\lt0$, dividing by the negative $h$ reverses the inequality: $\dfrac{f(c+h)-f(c)}{h}\ge0$, so the left-hand limit gives $f'(c)\ge0$. Both limits equal $f'(c)$, which is therefore $0$. $\square$

Two warnings are built into the hypotheses. The converse is false: $f(x)=x^3$ has $f'(0)=0$ but no extremum at $0$ (it is strictly increasing). And a function may have an extremum where it is not differentiable: $|x|$ has a local minimum at $0$, a sharp corner where $f'(0)$ does not exist. So the candidates are exactly the following points.

📘 Definition 6.6 — Critical point
A point $c$ in the domain of $f$ is a critical point of $f$ if either $f'(c)=0$ or $f$ is not differentiable at $c$. A critical point with $f'(c)=0$ is also called a stationary point.

By Theorem 6.3, every local extremum of $f$ at an interior point of its domain occurs at a critical point. But not every critical point is a local extremum — so we need tests.

✏️ Example 1 — Extreme values without derivatives
Find the local maximum and minimum values, if any, of (a) $f(x)=(x-1)^2+3$; (b) $g(x)=2-|x+1|$; (c) $h(x)=x^3+2$.
(a) $(x-1)^2\ge0$, so $f(x)\ge3=f(1)$ for every $x$: a local (indeed overall) minimum value $3$ at $x=1$. $f$ grows without bound, so it has no local maximum.
(b) $|x+1|\ge0$, so $g(x)\le2=g(-1)$: local maximum value $2$ at $x=-1$, no local minimum. Note that $g$ is not differentiable at $-1$ (a corner), so $x=-1$ is a critical point with no derivative — Theorem 6.3 does not apply, yet there is a maximum.
(c) $h$ is strictly increasing on $\mathbb R$ ($h'=3x^2$, an isolated zero), so near any $c$ there are smaller values to the left and larger to the right: no local extrema. Its only critical point is $x=0$, where $h'(0)=0$.

The First Derivative Test

Section 6.2 told us that the sign of $f'$ decides whether $f$ rises or falls. Rising then falling makes a peak; falling then rising makes a valley; rising then rising again (or falling then falling) makes neither.

📐 Theorem 6.4 — First derivative test
Let $f$ be continuous at a critical point $c$ and differentiable on an open interval around $c$, except possibly at $c$ itself. Then, for $x$ close to $c$:
  1. if $f'(x)\gt0$ to the left of $c$ and $f'(x)\lt0$ to the right of $c$ ($f'$ changes sign from $+$ to $-$), then $c$ is a point of local maximum;
  2. if $f'(x)\lt0$ to the left and $f'(x)\gt0$ to the right ($-$ to $+$), then $c$ is a point of local minimum;
  3. if $f'(x)$ has the same sign on both sides of $c$, then $c$ is neither a point of local maximum nor of local minimum. If moreover $f'(c)=0$, such a point is called a point of inflection.

Why. In case 1, Theorem 6.2 says $f$ is strictly increasing on an interval $(c-h,c]$ and strictly decreasing on $[c,c+h)$; so every $x$ near $c$ has $f(x)\lt f(c)$. Case 2 is the mirror image, and in case 3 $f$ is strictly monotonic through $c$, so there are smaller values on one side and larger on the other.

🧭 Problem-solving strategy — local extrema by the first derivative test
  1. Find $f'(x)$ and factorise it. List the critical points: solutions of $f'(x)=0$, and points of the domain where $f'$ does not exist.
  2. Make the sign chart of $f'$ (Section 6.2).
  3. At each critical point read the sign change: $+\to-$ local max; $-\to+$ local min; no change: neither.
  4. Find the local extreme values by substituting into $f$ (not into $f'$).
✏️ Example 2 — A cubic with a peak and a valley
Find all points of local maximum and local minimum of $f(x)=x^3-6x^2+9x+15$, and the local extreme values.
Critical points $f'(x)=3x^2-12x+9=3(x-1)(x-3)$, defined everywhere; $f'(x)=0$ at $x=1$ and $x=3$.
Sign chart $f'\gt0$ on $(-\infty,1)$, $f'\lt0$ on $(1,3)$, $f'\gt0$ on $(3,\infty)$.
Classify At $x=1$: $+\to-$, a local maximum, value $f(1)=1-6+9+15=19$. At $x=3$: $-\to+$, a local minimum, value $f(3)=27-54+27+15=15$.
Check $f(0.9)=18.969$ and $f(1.1)=18.971$ are both below $19$ ✓; $f(2.9)=15.029$, $f(3.1)=15.031$ are both above $15$ ✓.
✏️ Example 3 — A stationary point that is not an extremum
Find the local extrema of $f(x)=x^4-4x^3$ and classify every critical point.
Critical points $f'(x)=4x^3-12x^2=4x^2(x-3)$; critical points $x=0$ and $x=3$.
Signs The factor $4x^2$ is never negative, so the sign of $f'$ is the sign of $x-3$: negative for $x\lt3$ (except $f'(0)=0$), positive for $x\gt3$.
Classify At $x=0$: $-$ on both sides — no change of sign, so $x=0$ is neither a maximum nor a minimum; it is a point of inflection. At $x=3$: $-\to+$, a local minimum, value $f(3)=81-108=-27$.
Lesson $f'(0)=0$ alone proved nothing. A squared factor in $f'$ usually signals a point where the sign does not change.
Interactive 1 — Local Extrema Finder (First Derivative Test)

Drag the point along the curve (or press Play). The upper panel shows $f$ with its critical points marked; the lower panel shows $f'$. As the point passes a critical point, watch the slope: at a local maximum $f'$ crosses zero going down ($+\to-$), at a local minimum going up ($-\to+$), and at a point of inflection it only touches zero. The fourth function has a corner (a cusp) where $f'$ does not exist at all.

$x$—
$f'(x)$—
nearest critical point—
first derivative test—

The Second Derivative Test

Making a full sign chart can be slow, especially for trigonometric functions. There is a quicker test at a stationary point. At the bottom of a valley the slope goes from negative to positive, so the slope is increasing there — that is, $f''(c)\gt0$. At the top of a hill the slope is decreasing: $f''(c)\lt0$. Think of a cup ($f''\gt0$, holds water, bottom is a minimum) and a cap ($f''\lt0$, top is a maximum).

📐 Theorem 6.5 — Second derivative test
Let $f$ be defined on an open interval $I$, let $c\in I$, and let $f$ be twice differentiable at $c$. Suppose $f'(c)=0$.
  1. If $f''(c)\lt0$, then $c$ is a point of local maximum and $f(c)$ is a local maximum value.
  2. If $f''(c)\gt0$, then $c$ is a point of local minimum and $f(c)$ is a local minimum value.
  3. If $f''(c)=0$, the test fails: it gives no information, and we go back to the first derivative test.

Why. Suppose $f''(c)\gt0$. Since $f'(c)=0$, $$f''(c)=\lim_{h\to0}\frac{f'(c+h)-f'(c)}{h}=\lim_{h\to0}\frac{f'(c+h)}{h}\gt0.$$ So for small $h\ne0$ the quotient $\dfrac{f'(c+h)}{h}$ is positive: $f'(c+h)\lt0$ when $h\lt0$ and $f'(c+h)\gt0$ when $h\gt0$. That is the sign change $-\to+$, and Theorem 6.4 gives a local minimum. The case $f''(c)\lt0$ is the same with signs reversed.

Case 3 really does tell us nothing: $x^4$, $-x^4$ and $x^3$ all have $f'(0)=f''(0)=0$, yet $0$ is a local minimum of the first, a local maximum of the second, and neither for the third. Interactive 2 shows all three.

✏️ Example 4 — Using the second derivative test
Use the second derivative test to find the local maximum and minimum values of $f(x)=2x^3-3x^2-12x+5$.
Stationary points $f'(x)=6x^2-6x-12=6(x-2)(x+1)$, zero at $x=-1$ and $x=2$.
Second derivative $f''(x)=12x-6$. $f''(-1)=-18\lt0$: local maximum. $f''(2)=18\gt0$: local minimum.
Values Local maximum value $f(-1)=-2-3+12+5=12$; local minimum value $f(2)=16-12-24+5=-15$.
Check First derivative test agrees: $f'$ is $+$ on $(-\infty,-1)$, $-$ on $(-1,2)$, $+$ on $(2,\infty)$ ✓.
✏️ Example 5 — A trigonometric function
Find the local extrema of $f(x)=\sin2x-x$ on the open interval $\left(-\tfrac\pi2,\tfrac\pi2\right)$.
Stationary points $f'(x)=2\cos2x-1=0\iff\cos2x=\tfrac12$. With $2x\in(-\pi,\pi)$: $2x=\pm\tfrac\pi3$, so $x=\pm\tfrac\pi6$.
Second derivative $f''(x)=-4\sin2x$. $f''\left(\tfrac\pi6\right)=-4\cdot\tfrac{\sqrt3}2=-2\sqrt3\lt0$: local maximum. $f''\left(-\tfrac\pi6\right)=2\sqrt3\gt0$: local minimum.
Values Local maximum value $f\left(\tfrac\pi6\right)=\tfrac{\sqrt3}2-\tfrac\pi6\approx0.3424$; local minimum value $f\left(-\tfrac\pi6\right)=-\tfrac{\sqrt3}2+\tfrac\pi6\approx-0.3424$.
Why this test here A sign chart of $2\cos2x-1$ would need care with the cosine; one substitution into $f''$ settles each point.
✏️ Example 6 — Finding constants from the extrema
The function $f(x)=x^3+ax^2+bx+2$ has local extrema at $x=-1$ and $x=3$. Find $a$ and $b$, decide which point is the maximum, and find the local maximum value.
Equations $f$ is differentiable everywhere, so by Theorem 6.3, $f'(-1)=f'(3)=0$, where $f'(x)=3x^2+2ax+b$: $3-2a+b=0$ and $27+6a+b=0$.
Solve Subtracting: $24+8a=0$, so $a=-3$; then $b=2a-3=-9$.
Classify $f''(x)=6x-6$: $f''(-1)=-12\lt0$ (maximum), $f''(3)=12\gt0$ (minimum).
Value $f(x)=x^3-3x^2-9x+2$, so the local maximum value is $f(-1)=-1-3+9+2=7$. (The local minimum value is $f(3)=27-27-27+2=-25$.)
Interactive 2 — Cup or Cap? The Second Derivative Test

Choose a function; Play visits its stationary points one by one (or pick one). Near a stationary point $c$, the curve hugs the dashed parabola $y=f(c)+\tfrac12f''(c)(x-c)^2$: a cup when $f''(c)\gt0$ (local minimum), a cap when $f''(c)\lt0$ (local maximum). When $f''(c)=0$ the parabola is flat and tells you nothing — compare $x^4$, $-x^4$ and $x^3$, all with $f'(0)=f''(0)=0$.

$c$—
$f'(c)$—
$f''(c)$—
verdict—
⚠️ Common mistakes when studying alone

1. "$f'(c)=0$, so there is a maximum or minimum." Not necessarily — check the sign change ($x^3$ at $0$).

2. Concluding from $f''(c)=0$. When $f''(c)=0$ the second derivative test is silent. Do not write "point of inflection" or "neither" without the first derivative test.

3. Missing corners. Critical points include points where $f'$ does not exist, such as $x=-1$ for $2-|x+1|$. The second derivative test cannot be used there; the first derivative test can.

4. Reporting the point instead of the value. "The local maximum value" is $f(c)$; "the point of local maximum" is $c$. Read the question.

5. Mixing up the signs. $f''\lt0$ means maximum (a cap, $\frown$). If you forget, test on $f(x)=-x^2$: $f''=-2\lt0$ and $0$ is clearly a maximum.

Exercises

I
Find the points of local maximum and local minimum and the local extreme values, if any. Use the first derivative test (or the definition).
  • 1 $f(x)=(2x-1)^2+3$
  • 2 $f(x)=10-(x-1)^2$
  • 3 $f(x)=|x+2|-1$
  • 4 $f(x)=x^3+1$
  • 5 $f(x)=x^3-3x$
  • 6 $f(x)=x^4-4x^3+4x^2$
  • 7 $f(x)=xe^x$
  • 8 $f(x)=x^{2/3}(x-5)$
1 $(2x-1)^2\ge0$: local minimum value $3$ at $x=\tfrac12$; no maximum.
2 Local maximum value $10$ at $x=1$; no minimum.
3 $|x+2|\ge0$: local minimum value $-1$ at $x=-2$ (a corner, where $f'$ does not exist); no maximum.
4 $f'=3x^2\ge0$ with an isolated zero: strictly increasing, no local extrema ($x=0$ is a point of inflection).
5 $f'=3(x-1)(x+1)$: $+\to-$ at $-1$, local maximum value $f(-1)=2$; $-\to+$ at $1$, local minimum value $f(1)=-2$.
6 $f'=4x^3-12x^2+8x=4x(x-1)(x-2)$: signs $-,+,-,+$. Local minima at $x=0$ and $x=2$ (value $0$ at both), local maximum at $x=1$ (value $1$).
7 $f'=(1+x)e^x$: $-\to+$ at $x=-1$; local minimum value $-\tfrac1e\approx-0.3679$; no maximum.
8 $f=x^{5/3}-5x^{2/3}$, $f'=\tfrac53x^{2/3}-\tfrac{10}3x^{-1/3}=\dfrac{5(x-2)}{3x^{1/3}}$. Critical points: $x=2$ ($f'=0$) and $x=0$ ($f'$ does not exist). Signs: $+$ for $x\lt0$, $-$ on $(0,2)$, $+$ for $x\gt2$. Local maximum value $f(0)=0$; local minimum value $f(2)=-3\cdot2^{2/3}\approx-4.762$.
II
Use the second derivative test where it applies (and the first derivative test where it fails).
  • 1 $f(x)=x^3-12x+5$
  • 2 $f(x)=2x^3-21x^2+36x-20$
  • 3 $f(x)=x+\dfrac1x$, $x\ne0$
  • 4 $f(x)=\sin x+\cos x$, $0\lt x\lt\tfrac\pi2$
  • 5 $f(x)=x\sqrt{1-x}$, $x\lt1$
  • 6 $f(x)=x^2e^{-x}$
  • 7 $f(x)=\dfrac{\log x}{x}$, $x\gt0$
  • 8 $f(x)=x^5$
1 $f'=3x^2-12=0$ at $x=\pm2$; $f''=6x$. $f''(-2)=-12$: local max $f(-2)=21$. $f''(2)=12$: local min $f(2)=-11$.
2 $f'=6x^2-42x+36=6(x-1)(x-6)$, $f''=12x-42$. $f''(1)=-30$: local max $f(1)=-3$. $f''(6)=30$: local min $f(6)=-128$.
3 $f'=1-\dfrac1{x^2}=0$ at $x=\pm1$; $f''=\dfrac2{x^3}$. $f''(1)=2\gt0$: local min $f(1)=2$. $f''(-1)=-2\lt0$: local max $f(-1)=-2$. The local maximum value is less than the local minimum value — possible because they are on different branches of the graph.
4 $f'=\cos x-\sin x=0$ at $x=\tfrac\pi4$; $f''=-\sin x-\cos x$, $f''\left(\tfrac\pi4\right)=-\sqrt2\lt0$: local max value $\sqrt2$.
5 $f'=\sqrt{1-x}-\dfrac{x}{2\sqrt{1-x}}=\dfrac{2-3x}{2\sqrt{1-x}}$, zero at $x=\tfrac23$. $f'$ changes from $+$ to $-$ there (or $f''\left(\tfrac23\right)\approx-2.60\lt0$): local max value $\tfrac23\cdot\tfrac1{\sqrt3}=\dfrac{2\sqrt3}9\approx0.3849$.
6 $f'=(2x-x^2)e^{-x}=x(2-x)e^{-x}$; $f''=(x^2-4x+2)e^{-x}$. $f''(0)=2\gt0$: local min $0$. $f''(2)=-2e^{-2}\lt0$: local max $\dfrac4{e^2}\approx0.5413$.
7 $f'=\dfrac{1-\log x}{x^2}=0$ at $x=e$; the sign changes from $+$ to $-$ (or $f''(e)=-\dfrac1{e^3}\lt0$): local max value $\dfrac1e\approx0.3679$.
8 $f'=5x^4$, $f''=20x^3$: both $0$ at $x=0$, so the second derivative test fails. $f'\ge0$ on both sides — no sign change, so no extremum ($x=0$ is a point of inflection).
III
Constants and reasoning.
  • 1 $f(x)=x^3+ax^2+bx+1$ has local extrema at $x=1$ and $x=2$. Find $a$ and $b$, and say which point is the local maximum.
  • 2 Find $a$ so that $f(x)=x^2+\dfrac ax$ has a local minimum at $x=2$. Confirm it is a minimum.
  • 3 Show that $f(x)=e^x$ has no local extrema.
  • 4 Show that $f(x)=x^3-3x^2+3x+5$ has no local extremum, although $f'(1)=0$.
  • 5 Show that $f(x)=ax^2+bx+c$ $(a\ne0)$ has exactly one local extremum, at $x=-\dfrac b{2a}$, and that it is a minimum if $a\gt0$ and a maximum if $a\lt0$.
  • 6 Without calculation, sketch a continuous function on $\mathbb R$ with local maxima at $x=-2$ and $x=2$, a local minimum at $x=0$, and no other critical points. Draw the sign chart of its derivative.
1 $f'(x)=3x^2+2ax+b$ has roots $1$ and $2$: $3+2a+b=0$, $12+4a+b=0$, so $a=-\tfrac92$, $b=6$. $f''(x)=6x-9$: $f''(1)=-3\lt0$ (maximum at $x=1$), $f''(2)=3\gt0$ (minimum at $x=2$).
2 $f'(x)=2x-\dfrac a{x^2}$; $f'(2)=4-\dfrac a4=0$ gives $a=16$. $f''(x)=2+\dfrac{2a}{x^3}=2+\dfrac{32}{x^3}$, so $f''(2)=6\gt0$: a local minimum ✓.
3 $f'(x)=e^x\gt0$ is never $0$ and exists everywhere: no critical points, so no local extrema.
4 $f'(x)=3x^2-6x+3=3(x-1)^2\ge0$; it is $0$ only at $x=1$ and does not change sign there. By the first derivative test $x=1$ is not an extremum (a point of inflection).
5 $f'(x)=2ax+b=0$ only at $x=-\dfrac b{2a}$ — the only critical point. $f''=2a$: positive (minimum) if $a\gt0$, negative (maximum) if $a\lt0$.
6 An "M" shape, e.g. $f(x)=8x^2-x^4$ (check: $f'=16x-4x^3=4x(2-x)(2+x)$). Sign chart of $f'$: $+$ on $(-\infty,-2)$, $-$ on $(-2,0)$, $+$ on $(0,2)$, $-$ on $(2,\infty)$.
IV
Applications.
  • 1 Cricket. A ball hit straight up has height $h(t)=2+24.5t-4.9t^2$ metres after $t$ seconds. Find its greatest height and when it is reached; confirm with the second derivative test.
  • 2 Reservoir. The water level of a reservoir over a month is modelled by $L(t)=t^3-18t^2+81t+100$ centimetres above a mark, $0\le t\le12$ (days). Find the local maximum and minimum levels and the days on which they occur.
  • 3 Medicine. For $C(t)=50te^{-0.5t}$ mg/L (Section 6.2, Exercise IV 3), find the peak concentration and when it occurs.
  • 4 Production. A firm's profit, in thousands of rupees, from $x$ hundred units is $P(x)=-x^3+30x^2-225x+50$ for $0\le x\le20$. Find and classify the critical points of $P$ in $(0,20)$ and the local maximum profit.
1 $h'(t)=24.5-9.8t=0$ at $t=2.5$ s; $h''=-9.8\lt0$, a maximum. Greatest height $h(2.5)=2+61.25-30.625=32.625$ m.
2 $L'(t)=3t^2-36t+81=3(t-3)(t-9)$; $L''=6t-36$. $L''(3)=-18$: local max $L(3)=208$ cm on day $3$. $L''(9)=18$: local min $L(9)=100$ cm on day $9$.
3 $C'(t)=50e^{-0.5t}(1-0.5t)$: $+\to-$ at $t=2$. Peak $C(2)=100e^{-1}\approx36.79$ mg/L after $2$ hours.
4 $P'(x)=-3x^2+60x-225$ $=-3(x-5)(x-15)$; $P''=-6x+60$. $P''(5)=30\gt0$: local minimum, $P(5)=-450$ (a loss of ₹4.5 lakh). $P''(15)=-30\lt0$: local maximum, $P(15)=50$, i.e. ₹50 000 profit at $1500$ units.
🎯 Exam corner Board · 1 markBoard · 3 marksBoard · Case studyJEE MainJEE Advanced

How this is examined: Board papers ask for local maximum and minimum values "using the first derivative test" or "using the second derivative test" (3 marks — use the test named!), plus MCQs on critical points and Assertion–Reason on $f'(c)=0$. JEE asks you to recover constants from given extrema and to count or add extreme values of a polynomial.

E1. Board · 1 mark The local minimum value of $f(x)=x^2-4x+7$ is  (A) $3$  (B) $2$  (C) $7$  (D) $-3$

Idea $f'(x)=2x-4=0$ at $x=2$, $f''=2\gt0$; value $f(2)=4-8+7=3$.
Answer (A). Trap (B): $2$ is the point of local minimum, not the value. (C) is $f(0)$.

E2. Board · 1 mark Assertion–Reason. Assertion (A): $f(x)=x^3$ has a local extremum at $x=0$. Reason (R): $f'(0)=0$.  (A) Both A and R are true and R is the correct explanation of A  (B) Both A and R are true but R is not the correct explanation of A  (C) A is true but R is false  (D) A is false but R is true

Idea R is true ($f'(x)=3x^2$). But $f'\gt0$ on both sides of $0$: no sign change, so A is false — $0$ is a point of inflection.
Answer (D). Theorem 6.3 says extremum ⇒ $f'(c)=0$, not the converse.

E3. Board · 3 marks Using the second derivative test, find the local maximum and local minimum values of $f(x)=x^3-6x^2+9x-8$.

Stationary points $f'(x)=3x^2-12x+9=3(x-1)(x-3)=0$ at $x=1,3$. (1 mark)
Test $f''(x)=6x-12$: $f''(1)=-6\lt0$ (local max), $f''(3)=6\gt0$ (local min). (1 mark)
Answer Local maximum value $f(1)=1-6+9-8=-4$; local minimum value $f(3)=27-54+27-8=-8$. (1 mark)

E4. Board · Case study A section of a roller-coaster track has height $h(x)=0.01x^3-0.6x^2+9x+10$ metres at horizontal distance $x$ metres from the start, $0\le x\le40$. (i) Find the critical points of $h$ in $(0,40)$. [1 mark] (ii) Use the second derivative test to classify them. [2 marks] (iii) Find the heights of the hill-top and the valley. [1 mark]

(i) $h'(x)=0.03x^2-1.2x+9$ $=0.03(x^2-40x+300)$ $=0.03(x-10)(x-30)$: $x=10$ and $x=30$.
(ii) $h''(x)=0.06x-1.2$: $h''(10)=-0.6\lt0$ — local maximum (hill-top); $h''(30)=0.6\gt0$ — local minimum (valley).
(iii) $h(10)=10-60+90+10=50$ m; $h(30)=270-540+270+10=10$ m.

E5. JEE Main If $f(x)=x^3+ax^2+bx$ has a local maximum at $x=1$ and a local minimum at $x=3$, then $f(1)-f(3)$ equals  (A) $4$  (B) $0$  (C) $8$  (D) $-4$

Method $f'(x)=3x^2+2ax+b$ has roots $1$ and $3$, so $f'(x)=3(x-1)(x-3)=3x^2-12x+9$: $a=-6$, $b=9$. Then $f(1)=1-6+9=4$ and $f(3)=27-54+27=0$.
Answer (A) $4$. Trap (D) subtracts the wrong way round; a maximum minus a nearby minimum must be positive here. ⏱ Fast route: write $f'$ straight from its roots, $f'=3(x-1)(x-3)$ (leading coefficient $3$ from $x^3$) — no simultaneous equations needed.

E6. JEE Advanced (Numerical answer.) Let $f(x)=x^4-8x^3+22x^2-24x+5$. If $m$ is the number of points of local extremum of $f$ and $S$ is the sum of all its local extreme values (maximum and minimum), find $m-S$.

Critical points $f'(x)=4x^3-24x^2+44x-24$ $=4(x^3-6x^2+11x-6)$ $=4(x-1)(x-2)(x-3)$.
Classify Signs of $f'$: $-,+,-,+$, so local minima at $x=1,3$ and a local maximum at $x=2$; $m=3$.
Values $f(1)=1-8+22-24+5=-4$, $f(2)=16-64+88-48+5=-3$, $f(3)=81-216+198-72+5=-4$. So $S=-11$.
Answer $m-S=3+11=\mathbf{14}$. (Notice the symmetry: $f$ is symmetric about $x=2$, since $f(x)=\left[(x-2)^2-1\right]^2-4$.)
🔬 Research–Teaching NexusMini project · about 60 minutes

Research question. Where are the local highs and lows of a real walk or cycle ride, and does a smooth model with calculus find them where the measured data say they are?

Why it matters. Route planners for trekking, cycling races and road building need the peaks and dips of an elevation profile: where a climb ends, where water will collect, where a road needs a culvert. Engineers fit smooth curves to surveyed points and locate the turning points by setting the derivative to zero, exactly as in this section.

What to do.

  1. Record an elevation profile: use a free phone app that logs altitude along a walk, or read about $15$ points (distance, height) off an online elevation profile of a hill road or trekking route near you.
  2. Enter the data in a spreadsheet and fit a polynomial trend line of degree $3$ or $4$ to a stretch containing one or two hills; display its equation.
  3. Differentiate the fitted polynomial by hand, find its critical points, and classify them with the first or second derivative test.
  4. Compare the model's local maxima and minima (position and height) with the highest and lowest recorded points nearby. How far apart are they?

Tools: Phone altimeter or GPS-logging app, or an online map elevation profile; spreadsheet with polynomial trend lines.

Hand in: The data, the fitted polynomial, your derivative and its sign chart, a table comparing model and measured extrema, and a short comment on when a polynomial model is (and is not) trustworthy.

Going further. Fit degree $2$, $3$, $4$ and $6$ polynomials to the same data. Does a higher degree always give better turning points? What happens near the ends of the data?

Instructor note: GPS altitude is noisy (often ±5–10 m); barometric phone altimeters are better. A degree-$3$ trend has at most two critical points and a degree-$4$ at most three, so students must choose a stretch that matches. High-degree fits oscillate near the ends — a nice discussion point. Rounded spreadsheet coefficients can move a critical point noticeably; ask for at least $4$ significant figures.

🧪 Self-check quiz

0/5 correct

Q1. A critical point of $f$ is a point $c$ of its domain where

Q2. As $x$ increases through $c$, $f'(x)$ changes sign from negative to positive. Then $c$ is a point of

Q3. If $f'(c)=0$ and $f''(c)=0$, then

Q4. The local maximum value of $f(x)=-x^2+4x+1$ is

Q5. For $f(x)=|x|$, the point $x=0$ is