📖 Short lecture
Where $f'(x)>0$ the function increases, where $f'(x)<0$ it decreases. At a local maximum or minimum of a smooth function $f'(x)=0$ (a critical point). The second derivative tells the shape: $f''>0$ means concave up (a minimum), $f''<0$ concave down (a maximum).
Optimisation problems ask for the best value: the largest area, the least cost, the shortest time. Write the quantity as a function of one variable, find its critical points, and check the endpoints of the allowed interval.
⚠️ Common mistakes
- $f'(c)=0$ does not guarantee an extremum: $x^3$ has $f'(0)=0$ but no max or min.
- On a closed interval check the endpoints as well as the critical points.
- Concavity comes from $f''$, not $f'$: $f''\gt0$ means concave up.
🔑 Key formulas
✏️ Worked example
From a $12\times12$ cm sheet, squares of side $x$ are cut from the corners to fold an open box. Which $x$ gives the largest volume?
- $\displaystyle V=x(12-2x)^2,\;0<x<6$
- $\displaystyle V'=(12-2x)(12-6x)=0\Rightarrow x=2$
- $\displaystyle V(2)=2\cdot8^2=128$
✔ $x=2$ cm, $V=128$ cm$^3$.
🧮 More worked examples
Each step says what we do and why.
Example 2Find the absolute extrema of $f(x)=x^3-3x^2$ on $[-1,4]$.
- Critical points.$$f'(x)=3x^2-6x=0\Rightarrow x=0,\ 2$$
- Evaluate at critical points and endpoints.$$f(-1)=-4,\ f(0)=0,\ f(2)=-4,\ f(4)=16$$
Example 3Find the intervals of concavity and the inflection point of $f(x)=x^3-6x^2+5$.
- Second derivative.$$f''(x)=6x-12$$
- Sign change at $x=2$.$$x\lt2:\ \cap,\qquad x\gt2:\ \cup,\qquad f(2)=-11$$
Example 4Classify the critical points of $f(x)=x^4-8x^2$.
- Critical points.$$f'=4x^3-16x=4x(x-2)(x+2)=0$$
- Second derivative test.$$f''=12x^2-16:\ f''(0)=-16,\ f''(\pm2)=32$$
Example 5A $5$ m ladder slides down a wall. When its foot is $3$ m from the wall it moves away at $0.5$ m/s. How fast does the top slide?
- Relation and height.$$x^2+y^2=25,\quad y=4$$
- Differentiate in time.$$2x\,x'+2y\,y'=0$$
- Solve.$$y'=-\frac{3(0.5)}{4}=-0.375$$
Example 6Find $c$ from the mean value theorem for $f(x)=x^2$ on $[1,3]$.
- Average slope.$$\frac{9-1}{2}=4$$
- Set $f'(c)$ equal.$$2c=4\Rightarrow c=2$$
Example 7Estimate $\sqrt{16.2}$ with a linear approximation.
- Tangent at $16$.$$L(x)=4+\tfrac18(x-16)$$
- Evaluate.$$4+\tfrac{0.2}{8}=4.025$$
🖐️ Interactive demo & illustration
Move the sliders or press the buttons: the figure and the numbers update immediately. Try to predict the result before you look.
🎬 Read the shape from f′ and f″
For the cubic $f(x)=x^3+bx^2+cx$ the bands show the sign of $f'$ (green: increasing, pink: decreasing) and of $f''$ (concave up ∪ or down ∩). Extrema sit where $f'$ changes sign and the inflection point where $f''$ changes sign. Play the tracer to watch the tangent turn.
🎞️ The open-box problem: cut, fold, maximise
From a $24\times24$ cm sheet, squares of side $x$ are cut from the corners and the sides folded up. The volume is $V(x)=x(24-2x)^2$ for $0\lt x\lt12$. Press play to sweep $x$: the net (left) and the point on the graph of $V$ (right) move together. The maximum is where $V'(x)=0$: $x=4$, $V=1024$ cm³.
🌍 Modelling problems
Real-life situations: translate the words into mathematics, solve, then interpret the answer.
🌾 Fencing a field
A field along a river (no fence on that side) is fenced with $600$ m. Find the largest area.
Show the solution
- Area as a function of the width $x$.$$A=x(600-2x)$$
- Set $A'=0$.$$600-4x=0\Rightarrow x=150$$
- Evaluate.$$A=150\cdot300=45\,000$$
✔ $45\,000$ m².
🎫 Ticket price
At $40$ AED, $600$ tickets sell; each $1$ AED increase loses $10$ sales. Which price maximises revenue?
Show the solution
- Revenue.$$R(x)=(40+x)(600-10x)$$
- Derivative.$$R'=200-20x=0\Rightarrow x=10$$
✔ $50$ AED (revenue $25\,000$ AED).
🥫 Least material
A closed can holds $V=500$ cm³. Find the radius that minimises the surface area.
Show the solution
- Surface area in terms of $r$.$$S=2\pi r^2+\frac{1000}{r}$$
- Set $S'=0$.$$4\pi r-\frac{1000}{r^2}=0\Rightarrow r=\sqrt[3]{\frac{250}{\pi}}\approx4.3$$
✔ $r\approx4.3$ cm (height $=2r$).
📍 Nearest point
Find the point on $y=\sqrt x$ closest to $(4,0)$.
Show the solution
- Squared distance.$$D^2=(x-4)^2+x$$
- Minimise.$$2(x-4)+1=0\Rightarrow x=3.5$$
✔ $(3.5,\sqrt{3.5})$; distance $\approx1.94$.
🎈 Inflating balloon
Air enters a balloon at $100$ cm³/s. How fast is the radius growing when $r=5$ cm?
Show the solution
- Differentiate $V=\tfrac43\pi r^3$.$$V'=4\pi r^2\,r'$$
- Solve.$$r'=\frac{100}{100\pi}=\frac1\pi$$
✔ About $0.32$ cm/s.
💹 Maximum profit
Profit is $P(x)=-0.01x^2+60x-50\,000$ AED for $x$ items. Find the best production level.
Show the solution
- Set $P'=0$.$$-0.02x+60=0\Rightarrow x=3000$$
- Evaluate.$$P(3000)=40\,000$$
✔ $3000$ items, profit $40\,000$ AED.
🏆 Challenge problems
Harder problems for students aiming higher. Try first, then open the solution.
🏆 Rectangle in a semicircle
Find the largest rectangle inscribed in a semicircle of radius $10$.
Show the solution
- Area.$$A=2x\sqrt{100-x^2}$$
- Maximise $A^2=4x^2(100-x^2)$.$$x^2=50\Rightarrow x=5\sqrt2$$
- Evaluate.$$A=10\sqrt2\cdot5\sqrt2=100$$
✔ Area $100$ (dimensions $10\sqrt2\times5\sqrt2$).
🏆 Closest to a point
Find the points on $y=x^2$ closest to $(0,3)$.
Show the solution
- Squared distance.$$D^2=x^2+(x^2-3)^2$$
- Derivative.$$2x(2x^2-5)=0\Rightarrow x=0,\ x^2=2.5$$
- Compare.$$D^2(0)=9,\qquad D^2=2.75\ \text{at }x^2=2.5$$
✔ $(\pm\sqrt{2.5},\,2.5)$, distance $\approx1.66$.
✅ Multiple-choice quiz
📝 Short essay
Explain why checking only $f'(x)=0$ is not enough to find the absolute maximum of a function on a closed interval.
The largest value may occur at an endpoint, where the derivative need not be zero; and a critical point may be a minimum or neither. So we compare $f$ at all critical points and at both endpoints and pick the largest.