SECTION 1
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.
~300 BCE • Euclid's Geometric Extremes
1665–1687 • Newton & Leibniz Develop Calculus
1748 • Euler's Curve Analysis
20th–21st Century • Modern Optimization
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.
SECTION 2
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
KEY TAKEAWAY
SECTION 3
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.
SECTION 4
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.
CRITICAL-POINT CONDITION
Solve this equation to find the x-values where the function's slope is zero — these are the candidates for maxima or minima.
SECOND DERIVATIVE TEST
Evaluate the second derivative at each critical point c. A negative value means the curve bends downward (maximum); a positive value means it bends upward (minimum).
INFLECTION-POINT CONDITION
An inflection point exists where the second derivative is zero and actually changes from positive to negative (or vice-versa) across that x-value.
OPTIMIZATION WORKFLOW
In word problems, first translate the situation into a single-variable function, then apply the derivative tools above, and finally interpret the result in the original context (with units).
IB Exam Tip
SECTION 5
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).
Domain Check
SECTION 6
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?
Maximum-Area Enclosure
- 1
Step 1 — Identify Variables and Draw a Diagram
Let x be the length of the side perpendicular to the wall. Two such sides are needed. Let y be the side parallel to the wall (only one side is fenced because the wall covers the opposite side). - 2
Step 2 — Write Constraint and Objective
Constraint (fencing): 2x + y = 60, so y = 60 − 2x. Objective (area): A = x × y = x(60 − 2x) = 60x − 2x².A(x) = 60x − 2x², domain 0 < x < 30 - 3
Step 3 — Differentiate
A ′(x) = 60 − 4x.A ′(x) = 60 − 4x - 4
Step 4 — Solve f ′(x) = 0
60 − 4x = 0 → x = 15.Critical point: x = 15 m - 5
Step 5 — Second Derivative Test
A ″(x) = −4. Because A ″(15) = −4 < 0, the point is a local (and in this case absolute) maximum.f ″ = −4 < 0 ⇒ maximum confirmed - 6
Step 6 — Answer in Context
When x = 15, y = 60 − 2(15) = 30. Maximum area = 15 × 30 = 450 m².Dimensions: 15 m × 30 m, Maximum area = 450 m²
SECTION 7
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 |
Comparison of the two main tests for classifying critical points
KEY TAKEAWAY
SECTION 8
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 |
How SL 5.4 skills connect to higher-level mathematics
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.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Lesson Summary
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.