Historical Context & Motivation
Humans have always wanted to get the most out of limited resources — the largest field from a fixed length of fence, the shortest travel time between cities, or the strongest beam from a given log. For centuries, these problems were solved by trial and error or clever geometric arguments. The invention of calculus in the 17th century gave us a systematic tool: the derivative, which tells us exactly where a quantity reaches its highest or lowest value.
The central question this topic addresses is deceptively simple: given a function that models a real situation, how do we find the input that makes the output as large or as small as possible, and how do we sketch the function's behavior? The derivative provides the answer.
Core Principles & Definitions
Before diving into problems, you need a handful of core ideas. These concepts form the toolkit you will use every time you optimize a quantity or sketch a curve.
Critical Points
First Derivative Test
Second Derivative Test
Concavity & Inflection
Optimization Strategy
Visual Explanation — Curve Features at a Glance
The diagram below shows a polynomial curve together with the sign of its first and second derivatives in each region. Study how the curve's behavior — rising, falling, concave up, concave down — corresponds to the signs of f ′ and f ″.
Notice the pattern: the curve rises (f ′ > 0) to the local max, falls (f ′ < 0) through the inflection point, then rises again (f ′ > 0) after the local min. Concavity tells a separate story — the curve is concave down (bending like a frown) on the left and concave up (bending like a smile) on the right, with the inflection point as the transition. Keeping these two layers — first-derivative sign and second-derivative sign — in your head is the key to accurate curve sketching.
Mathematical Framework
Here are the central equations you will use throughout SL 5.4. Make sure you understand what each one is telling you before moving on.
Detailed Breakdown — The Optimization Recipe
Most IB SL 5.4 context problems follow a predictable recipe. The diagram below turns that recipe into a visual flowchart you can internalize.
Let's unpack Step 2, which trips up many students. In most problems you'll have two equations: an objective function (the thing you want to maximize or minimize) and a constraint (a relationship that links the variables). You use the constraint to substitute so the objective depends on only one variable. For example, if you need to maximize the area A = xy of a rectangle whose perimeter is 20, the constraint 2x + 2y = 20 gives y = 10 − x, letting you write A(x) = x(10 − x).
Worked Example — Fencing an Animal Enclosure
A farmer has 60 m of fencing and wants to build a rectangular enclosure against a straight wall, using the wall as one side. What dimensions give the maximum area?
First vs. Second Derivative Test — When to Use Each
Both derivative tests can classify a critical point, but they have different strengths. The table below helps you decide which test to use in a given problem.
| Feature | First Derivative Test | Second Derivative Test |
|---|---|---|
| What you need | Sign of f ′ on each side of the critical point | Value of f ″ at the critical point |
| Speed | Requires a sign chart — slightly more work | One quick substitution — usually faster |
| Always conclusive? | Yes — always gives a definitive answer | No — inconclusive when f ″(c) = 0 |
| Best for | Piecewise functions or when f ″ is hard to compute | Polynomial or simple trig functions |
Connection to Advanced Topics
The optimization and curve-sketching skills you learn in SL 5.4 are stepping stones to more powerful ideas. The table below shows how each SL concept extends at the HL level and beyond.
| SL 5.4 Concept | HL / University Extension |
|---|---|
| Single-variable optimization (find max/min of f(x)) | Multi-variable optimization using partial derivatives and Lagrange multipliers |
| Second derivative test for concavity | Hessian matrix test for surfaces in 3D |
| Curve sketching (increasing/decreasing, concavity) | Asymptotic analysis, limits at infinity, and L'Hôpital's rule for more complex curves |
| Applied optimization in context | Linear and nonlinear programming used in economics, engineering, and machine learning |
Even if you don't continue to HL Mathematics, the optimization mindset — modelling a situation, identifying what to maximize or minimize, and using calculus to find the best answer — is directly useful in fields like business, biology, and environmental science. In the IB Applications and Interpretation course, these same skills appear again when you study related rates and integration.
Practice Problems
Lesson Summary
SL 5.4 equips you with two powerful applications of the derivative. In optimization, you translate a real-world scenario into a single-variable function, find its critical points by solving f ′(x) = 0, and use the second derivative test (or the first derivative test) to confirm whether the result is a maximum or minimum. Always state your answer in context with correct units.
In curve sketching, the sign of f ′ tells you where the function is increasing or decreasing, while the sign of f ″ tells you whether the curve is concave up or concave down. Where f ″ changes sign, you have an inflection point. Combining these pieces — along with intercepts and endpoint values — lets you produce an accurate sketch of any function and interpret its behavior in a real-world context.