Historical Context & Motivation
Humans have always wanted to find the "best" answer — the shortest path, the largest area, the least cost. Long before calculus existed, ancient mathematicians tackled these kinds of problems using clever geometric reasoning. The Greeks, for instance, knew that among all rectangles with the same perimeter, the square encloses the greatest area. But these early solutions were specific tricks, not general methods.
The real breakthrough came in the 17th century, when calculus gave mathematicians a universal tool for finding extreme values and understanding how functions behave. Optimization — the process of finding maximum or minimum values — and curve sketching — using derivatives to reveal a function's shape — became two of the most powerful applications of differentiation.
The central question this topic addresses is: How can we use the derivative to determine where a function reaches its highest or lowest values, and how can we use that information to sketch its graph accurately? By the end of this lesson, you will have the tools to answer this question for any differentiable function.
Core Principles & Definitions
Before diving into calculations, you need to understand a handful of foundational ideas. These concepts form the vocabulary of optimization and curve sketching, and they all connect back to the derivative you already know how to compute.
Critical Points
Increasing & Decreasing
Local Maximum & Minimum
First Derivative Test
Second Derivative Test
Visual Explanation — Anatomy of a Curve
The diagram below shows a cubic function and its derivative side by side. Study how the sign of the derivative corresponds to the behavior of the original function — this visual connection is the heart of curve sketching.
This is the fundamental visual insight: the derivative acts as a "slope detector." When the cyan curve climbs uphill, the violet curve sits above the x-axis. When the cyan curve slopes downhill, the violet curve dips below. At each turning point — a peak or valley on f(x) — the derivative passes through zero. Learning to read this relationship is the key skill for both optimization and curve sketching.
Mathematical Framework
Now let's formalize the ideas from the previous sections into precise mathematical statements. These are the equations and tests you will use repeatedly on exams and in practice.
Finding Critical Points
First Derivative Test
Second Derivative Test
Optimization Strategy
Curve Sketching — A Step-by-Step Procedure
Curve sketching brings all the derivative tools together into one systematic process. Rather than plotting dozens of points, you use calculus to identify the most important features of a graph: where it crosses the axes, where it turns, and how it bends. The diagram below illustrates these features on a single function.
Curve Sketching Checklist
- Step 1 — Domain: Identify any values of x where the function is undefined.
- Step 2 — Intercepts: Find where f(x) = 0 (x-intercepts) and evaluate f(0) (y-intercept).
- Step 3 — First derivative: Compute f′(x), find critical points, determine intervals of increase/decrease.
- Step 4 — Second derivative: Compute f″(x), find inflection points, determine concavity on each interval.
- Step 5 — Sketch: Plot the key points and connect them with smooth curves that respect the increase/decrease and concavity information.
Worked Example — Optimization Problem
A farmer has 120 metres of fencing and wants to enclose a rectangular field against a straight river (so only three sides need fencing). What dimensions maximize the enclosed area?
First Derivative Test vs. Second Derivative Test
You now have two methods for classifying critical points. Both are valid on the IB exam, but each has strengths and limitations. The table below will help you decide which test to use in different situations.
| Feature | First Derivative Test | Second Derivative Test |
|---|---|---|
| What you check | Sign of f′(x) on either side of the critical point | Value of f″(x) at the critical point |
| Always conclusive? | Yes — if there is a sign change, you can always classify the point | No — if f″(c) = 0, the test gives no information |
| Ease of computation | Requires evaluating f′ at test points in each interval | Requires computing f″ and substituting once |
| Best used when | f″(x) is complicated or equals zero at the critical point | f″(x) is easy to compute and is clearly nonzero |
| Extra info gained | Shows intervals of increase/decrease (useful for curve sketching) | Reveals concavity at the critical point |
Connection to Advanced Topics
The optimization and curve-sketching skills you are learning at SL form the foundation for many advanced techniques in mathematics and its applications. Here is a brief look at how these ideas extend beyond this course.
| SL 5.4 (This Lesson) | Where It Leads |
|---|---|
| Optimizing a function of one variable | Multivariable optimization using partial derivatives and Lagrange multipliers (university-level calculus) |
| First and second derivative tests for local extrema | The Hessian matrix test for functions of several variables; global optimization in machine learning |
| Curve sketching with derivatives | Analyzing more complex functions with asymptotes, parametric curves, and polar coordinates (HL and university) |
| Concavity and inflection points | Applications in economics (marginal cost analysis), physics (jerk in kinematics), and data science (change-point detection) |
Even at the SL level, you are already using the same core logic that engineers use to design efficient structures, that economists use to maximize profit, and that data scientists use to train algorithms. Mastering these fundamentals now will make every future encounter with optimization feel like a natural extension, not a brand-new topic.
Practice Problems
Lesson Summary
Applications of differentiation allow you to extract powerful information from any differentiable function. A critical point occurs where f′(x) = 0 or is undefined — these are the candidates for local maxima and local minima. The first derivative test classifies these points by checking sign changes, while the second derivative test uses concavity (f″ > 0 means concave up/local min; f″ < 0 means concave down/local max).
For optimization problems, define variables, write an objective function, use constraints to reduce to one variable, differentiate, solve, and verify. For curve sketching, combine intercepts, intervals of increase/decrease, concavity, and inflection points to build an accurate graph without plotting hundreds of points. These tools are essential across the IB Mathematics: Analysis and Approaches syllabus and form the basis for advanced applications in science, engineering, and economics.