IBMathematics

Optimization Problems in Calculus | IB Math Guide

Master optimization problems in calculus for IB Math with derivative tests, constraints, domains, worked examples, practice questions and MathJax formulas.
Professional illustration of optimization problems in calculus for IB Math Guide by RevisionTown, featuring 3D function curves, maxima/minima peaks, and derivative graphs on a dark gradient background.

IB Mathematics calculus guide

Optimization Problems in Calculus

Optimization problems ask a practical question with a mathematical answer: what value makes a quantity as large or as small as possible? In IB Mathematics, these questions connect modelling, differentiation, domain restrictions and interpretation. This guide explains the full process, from translating the wording into a function to justifying a maximum or minimum with clear calculus.

Build the objective function Use constraints correctly Solve \(f'(x)=0\) Check endpoints and context

Quick Definition

An optimization problem is a calculus problem in which a variable quantity must be maximized or minimized. The quantity may be area, volume, profit, cost, distance, speed, time, material use, concentration, population, revenue or another measurable outcome. The mathematical task is to represent that quantity as a function, identify the valid domain, differentiate, then decide where the best value occurs.

Find the maximum or minimum of \(f(x)\) on its valid domain.

In most IB Math applications of differentiation, the key condition for an interior optimum is:

\(f'(x)=0\)

That condition identifies a stationary point. It does not automatically prove that the point is the answer. You still need to check the nature of the point using a first derivative sign test, a second derivative test, endpoint comparison or a contextual argument. If derivative rules feel rusty, review the definition of derivatives and the power rule before attempting the harder modelling examples.

Core Workflow

  1. Identify the objective. Decide what must be maximized or minimized: area, volume, cost, profit, distance or another quantity.
  2. Choose variables. Draw a diagram if possible and label the changing quantities clearly.
  3. Write the objective function. Begin with a formula such as \(A=lw\), \(V=\pi r^2h\), \(C=mx+b\) or \(P=R-C\).
  4. Use the constraint. Substitute so the objective becomes a function of one variable.
  5. State the domain. Physical quantities are often positive, and geometry problems usually have upper and lower bounds.
  6. Differentiate and solve. Find \(f'(x)\), solve \(f'(x)=0\), then consider any points where the derivative is undefined.
  7. Justify the answer. Use endpoints, the first derivative test, the second derivative test or a comparison table.
  8. Interpret in context. Give the dimensions or value requested, with units and sensible rounding.

This workflow is more important than memorizing individual examples. IB questions often vary the wording, but the structure is consistent: model, reduce, differentiate, test and interpret.

Why Optimization Matters in IB Mathematics

Optimization is one of the clearest places where calculus becomes a modelling tool. A derivative is not only a symbolic expression; it tells you how a quantity changes. When the derivative is positive, the function is increasing. When the derivative is negative, the function is decreasing. At a maximum or minimum inside an interval, the function usually changes direction, so the derivative is zero. That is the central idea behind many IB Math optimization problems.

IB Mathematics applications may ask for maximum area, minimum surface area, least cost, greatest profit, shortest distance, most efficient dimensions, maximum revenue or optimal time. The same calculus principle applies even though the context changes. A business problem may use \(P(x)=R(x)-C(x)\). A geometry problem may use \(V=lwh\) or \(A=2\pi r^2+2\pi rh\). A motion problem may involve a distance formula. The modelling layer changes, but the calculus layer remains: differentiate, find stationary points and justify the result.

This topic sits naturally after rates of change and derivative tests. If you need to strengthen the foundation, the rates of change guide helps explain what the derivative represents, while the first derivative test and extreme values of functions focuses on how to classify critical points. For concavity-based checks, the second derivative test is the most direct companion topic.

Optimization also rewards clear communication. In an exam, the final answer is not just a number. Students must show how the function was constructed, why a variable range is valid, how the derivative was used and why the selected point gives the required maximum or minimum. A correct number with no justification may lose marks because the examiner cannot see the modelling decision or the calculus reasoning. A neat setup, labelled equations and a short conclusion often make the difference between a partial solution and a complete one.

The Anatomy of an Optimization Problem

Most optimization problems contain three layers: the context, the constraint and the objective. The context is the real-world or mathematical situation: a box, a field, a cylinder, a graph, a price-demand relationship or a moving point. The constraint is the condition that limits the variables: fixed perimeter, fixed volume, fixed material, a curve equation, a budget, a fixed length of fencing or a relationship between price and quantity. The objective is the thing you want to maximize or minimize.

For example, suppose a rectangle has a fixed perimeter of \(40\ \mathrm{cm}\) and you want the maximum area. The objective is area, \(A=lw\). The constraint is \(2l+2w=40\). The constraint lets you write \(w=20-l\), so area becomes \(A(l)=l(20-l)=20l-l^2\). Now the problem is a one-variable calculus problem. Differentiate: \(A'(l)=20-2l\). Solve \(A'(l)=0\), giving \(l=10\), and therefore \(w=10\). The maximum area is achieved by a square.

The same structure appears in much harder-looking questions. A cylinder with fixed volume has an objective such as surface area and a constraint such as \(V=\pi r^2h\). A rectangle under a curve has an objective such as \(A=2xy\) and a constraint from the curve equation. A pricing problem has an objective such as revenue \(R=xp(x)\), where the constraint is a price-demand relationship. If you can identify the objective and the constraint, the rest becomes a standard differentiation problem.

The most important modelling move is reducing the objective to one variable. IB problems sometimes begin with two or three variables, but elementary optimization usually requires a single-variable function before differentiating. If you differentiate before using the constraint, you may end up solving the wrong problem. The constraint is what keeps the context fixed. It tells you how one variable changes when another changes. Without it, you may be maximizing the wrong expression.

Derivative Tests Used in Optimization

Solving \(f'(x)=0\) gives candidates for an optimum, not an automatic answer. A stationary point may be a local maximum, a local minimum or a point of inflection. The correct test depends on the problem type, the domain and the level of justification expected. IB solutions should be concise but complete: state the candidate point, show why it gives the required extreme value and connect it back to the context.

First derivative sign test

Check the sign of \(f'(x)\) on each side of the critical point. If \(f'\) changes from positive to negative, the point is a local maximum. If \(f'\) changes from negative to positive, it is a local minimum.

Second derivative test

If \(f'(a)=0\) and \(f''(a)<0\), then \(f(a)\) is a local maximum. If \(f''(a)>0\), then \(f(a)\) is a local minimum. If \(f''(a)=0\), use another method.

Endpoint comparison

On a closed interval, compare the function values at stationary points and endpoints. The greatest value is the absolute maximum; the smallest is the absolute minimum.

The first derivative sign test is especially reliable because it directly shows whether the function is increasing or decreasing around a critical point. The second derivative test is faster when it works, but it can be inconclusive. Endpoint comparison is essential whenever the domain is closed or physically bounded. For example, if a rectangle width must satisfy \(0<x<10\), endpoints may not be allowed. If the domain is \(0\leq x\leq 10\), endpoints must be checked.

IB questions often reward a short line of reasoning rather than a long essay. A good conclusion might be: "Since \(A''(5)=-4<0\), the stationary point gives a maximum area." Or: "Testing \(x=0\), \(x=4\) and \(x=8\), the largest volume occurs at \(x=4\)." Or: "The derivative changes from positive to negative at \(x=3\), so the profit is maximized there." These statements are short, but they show the examiner that the answer is justified.

Derivative fluency matters in this topic. Product, quotient, trigonometric, exponential and logarithmic derivatives may appear depending on the course and problem source. For rules beyond the power rule, review the product and quotient rules, derivatives of trigonometric functions and derivatives of exponential and logarithmic functions.

Domains, Endpoints and Physical Restrictions

Optimization problems are not solved completely until the domain is understood. The domain is the set of input values that make sense in the problem. In pure algebra, a function may be defined on many real numbers. In a modelling problem, the valid domain is often much smaller because lengths, times, masses, prices and volumes cannot be negative, and some quantities cannot exceed a physical limit.

Consider an open-top box made by cutting squares of side \(x\) from a rectangular sheet. If the original sheet is \(30\ \mathrm{cm}\) by \(20\ \mathrm{cm}\), the base dimensions after cutting are \(30-2x\) and \(20-2x\). The height is \(x\). The physical constraints are \(x>0\), \(30-2x>0\) and \(20-2x>0\). The most restrictive condition is \(x<10\), so \(0<x<10\). Values outside that interval do not describe a real box.

Endpoints deserve careful attention. In the open-top box example, \(x=0\) gives no height and \(x=10\) gives zero width, so those endpoints do not create a usable box. The maximum volume occurs inside the interval. In another problem, endpoints may be valid. If a function is optimized on \(0\leq x\leq 12\), both \(x=0\) and \(x=12\) must be checked unless the problem explicitly excludes them. This is why a closed interval can be solved by comparing function values at endpoints and stationary points.

Students often lose marks by finding a stationary point and stopping. A stationary point might not be the absolute maximum on a restricted domain. For instance, a function could have a local maximum inside the interval but a larger value at an endpoint. The safest approach is to write a small table of candidates whenever the domain is closed. Put the endpoints and critical points in the table, compute the objective value at each, then select the largest or smallest value based on the question.

Common Optimization Models

Problem typeTypical objectiveCommon constraintKey caution
Rectangle with fixed perimeter\(A=lw\)\(2l+2w=P\)Use the perimeter constraint before differentiating.
Open-top box\(V=x(L-2x)(W-2x)\)Dimensions after cutting from a sheetState the physical interval for \(x\).
Cylinder with fixed volume\(S=2\pi r^2+2\pi rh\)\(V=\pi r^2h\)Substitute \(h=\frac{V}{\pi r^2}\).
Rectangle under a curve\(A=2xy\) or \(A=xy\)\(y=f(x)\)Check symmetry and whether the rectangle crosses an axis.
Profit and revenue\(P(x)=R(x)-C(x)\)Demand, cost or production relationshipInterpret \(x\) as a quantity, price or output level.
Shortest distance\(D=\sqrt{(x-a)^2+(y-b)^2}\)Point lies on a line or curveOften easier to minimize \(D^2\) instead of \(D\).

These models are not separate topics to memorize mechanically. They are templates for building functions. A fencing problem, for example, may look like a fixed perimeter rectangle, but if one side is along a river or a wall, the constraint changes. A box problem may be open-top or closed-top, which changes surface area. A cylinder may include top and bottom, no top, or material costs that differ by surface. Always read the wording before copying a formula.

For IB Mathematics Analysis and Approaches, optimization may appear in a more algebraic or proof-oriented form. For Applications and Interpretation, the context may be more modelling-based, with technology used to support interpretation. Both routes require understanding the relationship between the derivative and an optimum. Formula summaries can help with memory, so keep the Calculus formulae for AA SL and AA HL or Calculus formulae for AI SL and AI HL nearby when revising.

Worked Example 1: Open-Top Box

A rectangular sheet of cardboard is \(30\ \mathrm{cm}\) by \(20\ \mathrm{cm}\). Squares of side \(x\ \mathrm{cm}\) are cut from each corner, and the sides are folded up to make an open-top box. Find the value of \(x\) that maximizes the volume.

The base dimensions after the cuts are \(30-2x\) and \(20-2x\), and the height is \(x\). The objective is volume:

\(V(x)=x(30-2x)(20-2x)\)

The physical domain is \(0<x<10\), because \(20-2x\) must remain positive. Expand the function:

\(V(x)=x(600-100x+4x^2)=600x-100x^2+4x^3\)

Differentiate and set the derivative equal to zero:

\(V'(x)=600-200x+12x^2\)
\(12x^2-200x+600=0\)

Divide by \(4\):

\(3x^2-50x+150=0\)

Use the quadratic formula:

\(x=\frac{50\pm\sqrt{50^2-4(3)(150)}}{6}=\frac{50\pm\sqrt{700}}{6}\)

This gives \(x\approx 3.92\) or \(x\approx 12.75\). The second value is outside the domain \(0<x<10\), so it is rejected. The valid candidate is \(x\approx 3.92\ \mathrm{cm}\). To justify that it gives a maximum, use the second derivative:

\(V''(x)=-200+24x\)

At \(x\approx 3.92\), \(V''(x)\approx -105.9<0\), so the volume is maximized. The optimal cut size is approximately \(3.92\ \mathrm{cm}\). A complete answer would also give the dimensions if requested: length \(30-2(3.92)\approx 22.16\ \mathrm{cm}\), width \(20-2(3.92)\approx 12.16\ \mathrm{cm}\), height \(3.92\ \mathrm{cm}\).

This example shows the full optimization process: define the variable, build the volume function, state the domain, differentiate, solve, reject invalid values and justify the maximum. The algebra is longer than the idea. Most mistakes occur when students forget the domain or accept a root that does not describe a real box.

Worked Example 2: Maximum Rectangle Under a Parabola

A rectangle is placed under the curve \(y=12-x^2\), above the \(x\)-axis, with its top corners on the parabola and its base on the \(x\)-axis. The rectangle is symmetric about the \(y\)-axis. Find the maximum area.

Let the top-right corner be \((x,y)\), where \(x>0\). Because the rectangle is symmetric, its width is \(2x\) and its height is \(y\). The curve gives the constraint \(y=12-x^2\). Therefore the objective function is:

\(A(x)=2x(12-x^2)=24x-2x^3\)

The domain is \(0<x<\sqrt{12}\), because the height must be positive. Differentiate:

\(A'(x)=24-6x^2\)

Set \(A'(x)=0\):

\(24-6x^2=0 \Rightarrow x^2=4 \Rightarrow x=2\)

The negative root is not used because \(x\) represents the positive half-width. Now check the nature of the stationary point:

\(A''(x)=-12x\)

At \(x=2\), \(A''(2)=-24<0\), so the area is maximized. The height is \(y=12-2^2=8\). The width is \(2x=4\). The maximum area is:

\(A_{\max}=4\times 8=32\)

The key modelling step is recognizing the width as \(2x\), not \(x\). Symmetry can simplify a problem, but it can also create a common error if the half-width and full width are confused. Drawing the rectangle and labeling the top-right corner prevents this mistake.

Worked Example 3: Minimum Surface Area of a Cylinder

A closed cylinder has fixed volume \(V=500\ \mathrm{cm^3}\). Find the relationship between radius and height that minimizes surface area.

The surface area of a closed cylinder is:

\(S=2\pi r^2+2\pi rh\)

The constraint is:

\(500=\pi r^2h\)

Solve the constraint for \(h\):

\(h=\frac{500}{\pi r^2}\)

Substitute into surface area:

\(S(r)=2\pi r^2+2\pi r\left(\frac{500}{\pi r^2}\right)=2\pi r^2+\frac{1000}{r}\)

Differentiate:

\(S'(r)=4\pi r-\frac{1000}{r^2}\)

Set \(S'(r)=0\):

\(4\pi r=\frac{1000}{r^2}\Rightarrow 4\pi r^3=1000\Rightarrow r^3=\frac{250}{\pi}\)

Now use the constraint to find the relationship between \(h\) and \(r\). Since \(4\pi r^3=1000\), divide by \(2\pi r^2\) to get \(2r=\frac{500}{\pi r^2}\). But \(\frac{500}{\pi r^2}=h\), so:

\(h=2r\)

For a closed cylinder with fixed volume and minimum surface area, the height equals the diameter. This is a classic result and a useful check on the algebra. The second derivative is \(S''(r)=4\pi+\frac{2000}{r^3}>0\), so the stationary point gives a minimum. Notice how the answer can be expressed as a relationship without needing the exact decimal value of \(r\), unless the question asks for dimensions.

Worked Example 4: Closest Point on a Curve

Find the point on the line \(y=2x+1\) closest to the point \((4,1)\). This is an optimization problem because the distance between a variable point on the line and a fixed point must be minimized.

A point on the line can be written as \((x,2x+1)\). The distance to \((4,1)\) is:

\(D=\sqrt{(x-4)^2+\big((2x+1)-1\big)^2}\)

Simplify:

\(D=\sqrt{(x-4)^2+(2x)^2}\)

It is easier to minimize \(D^2\) because the square root is increasing for nonnegative values. Define:

\(F(x)=D^2=(x-4)^2+4x^2\)

Expand and differentiate:

\(F(x)=x^2-8x+16+4x^2=5x^2-8x+16\)
\(F'(x)=10x-8\)

Set \(F'(x)=0\):

\(10x-8=0\Rightarrow x=\frac{4}{5}\)

Then \(y=2\left(\frac45\right)+1=\frac{13}{5}\). The closest point is \(\left(\frac45,\frac{13}{5}\right)\). Since \(F''(x)=10>0\), this gives a minimum. This example also introduces a useful strategy: when minimizing distance, minimize the squared distance if it keeps the algebra simpler.

Some closest-point problems use implicit curves or require implicit differentiation. If a curve is not easily solved for \(y\), review implicit differentiation so you can handle slopes and related expressions cleanly.

Worked Example 5: Profit Maximization

A company sells \(x\) units of a product. The revenue function is \(R(x)=80x-0.2x^2\), and the cost function is \(C(x)=20x+500\), where \(x\) is the number of units. Find the production level that maximizes profit.

Profit is revenue minus cost:

\(P(x)=R(x)-C(x)\)
\(P(x)=80x-0.2x^2-(20x+500)\)
\(P(x)=-0.2x^2+60x-500\)

Differentiate:

\(P'(x)=-0.4x+60\)

Set the derivative equal to zero:

\(-0.4x+60=0\Rightarrow x=150\)

Since \(P''(x)=-0.4<0\), the profit function is concave down and \(x=150\) gives a maximum. The maximum profit is:

\(P(150)=-0.2(150)^2+60(150)-500=4000\)

The company should produce and sell \(150\) units for a maximum profit of \(4000\) in the currency units of the problem. In a real setting, \(x\) may need to be a whole number, and practical capacity restrictions may also apply. In an IB exam question, state whether the domain is continuous or discrete if the wording makes it relevant.

IB Math Strategy: Writing a Full-Marks Solution

A strong optimization solution is organized, not just correct. Start by defining variables in words. If \(x\) is the side length cut from a sheet, say so. If \(x\) is the number of units sold, say so. This prevents ambiguity later when the final answer is interpreted. Next, write the objective function before substituting. For example, write \(V=x(30-2x)(20-2x)\), not just a derivative. The examiner needs to see how the function represents the situation.

After the objective function, state the constraint or domain. In geometry problems, this often means showing why dimensions must remain positive. In business problems, it may mean \(x\geq0\) or \(0\leq x\leq\) capacity. In curve problems, it may mean limiting \(x\) to an interval where the graph is above the axis. Even if the domain is obvious to you, writing it down demonstrates that you understand the model.

When differentiating, keep notation clear. Use \(A'(x)\), \(V'(x)\), \(P'(x)\) or another symbol that matches the objective. Solve \(f'(x)=0\) cleanly and reject invalid roots explicitly. If a root lies outside the domain, say "rejected because \(x\) must be less than 10" rather than simply ignoring it. This is especially important when quadratic equations produce two possible roots.

Finally, justify and interpret. The justification may be a second derivative line, a first derivative sign table or an endpoint comparison table. The interpretation should answer the question asked. If the question asks for dimensions, give dimensions. If it asks for maximum volume, give volume. If it asks for the value of \(x\), give \(x\). Include units where appropriate. A complete conclusion might read: "The maximum volume occurs when \(x=3.92\ \mathrm{cm}\), giving dimensions \(22.16\ \mathrm{cm}\times12.16\ \mathrm{cm}\times3.92\ \mathrm{cm}\)."

For broader exam preparation, the IB Math AA exam cheatsheet and the main IB Mathematics resource page can help place optimization inside the full syllabus rather than treating it as an isolated skill.

Technology and Graphing in Optimization

Graphing technology can support optimization, especially in IB Mathematics Applications and Interpretation. A graph can reveal the approximate location of a maximum or minimum, show whether a stationary point is reasonable and help identify the valid interval. However, technology should not replace the mathematical argument unless the question specifically allows or asks for a technology-based solution. A graph may show the answer, but the written solution should still explain the model and the derivative reasoning.

When using a graphing tool, enter the one-variable objective function after applying the constraint. Set the viewing window to match the physical domain. If the domain is \(0<x<10\), a window from \(-20\) to \(20\) may show irrelevant graph features and confuse the interpretation. A restricted window helps you focus on the meaningful part of the model. If a graph shows a maximum at \(x=3.9\), use calculus to confirm and round the final answer appropriately.

Technology is also useful for checking algebra. If your derivative gives a critical point outside the domain but the graph clearly has a maximum inside the interval, recheck the expansion, substitution and derivative. If a function has several local extrema, technology can help identify all candidates, but endpoint and derivative checks still matter. A graph is a diagnostic tool; the solution still needs a logical chain.

For some IB questions, numerical methods may be acceptable when an exact solution is difficult. In that case, clearly state the equation solved, the numerical solution and the interpretation. For example, if \(f'(x)=0\) cannot be solved easily by hand, a solution may give \(x=2.374\) from numerical solving, then verify that it produces the maximum in the allowed interval. The quality of the reasoning remains more important than the tool used.

Connections to Related Rates and Integration

Optimization and related rates both use derivatives, but they ask different questions. Related rates problems ask how fast one quantity changes when another quantity changes with time. Optimization problems ask which value makes a quantity largest or smallest. The setup can look similar because both topics require equations and careful variable definitions. If the wording includes phrases such as "at what rate," "how fast" or "when the radius is increasing," it may be a related rates problem rather than optimization. The dedicated related rates guide is the better resource for that style.

Integration can also appear near optimization in applications, but it serves a different purpose. If a problem asks for an area under a curve, accumulated quantity, total distance from velocity or volume by integration, then the main tool is an integral. If it asks for the maximum area, minimum cost or best dimension, then the main tool is usually differentiation. Some advanced problems can combine both: for example, optimize a parameter that affects an integral-defined area. In that case, understanding definite integrals and area under a curve becomes useful alongside differentiation.

The broader lesson is that calculus topics are connected by meaning. Derivatives measure change and help locate extrema. Integrals measure accumulation. Optimization uses derivatives because extrema occur where change stops or where a boundary is reached. Related rates use derivatives because quantities change together over time. When you read a problem, identify the mathematical action before choosing a formula. This habit prevents many topic-mixing errors.

Common Mistakes in Optimization Problems

Differentiating before using the constraint

If the objective has two variables, use the constraint to rewrite it as one variable first. Differentiating \(A=lw\) without connecting \(l\) and \(w\) does not solve a fixed-perimeter problem.

Forgetting the domain

Physical restrictions matter. Lengths must be positive, boxes cannot have negative height, and a point may be limited to a segment rather than an entire line.

Assuming every stationary point is an answer

A stationary point must be classified. Use derivative tests or compare values. Also reject any critical point outside the valid interval.

Confusing local and absolute extrema

A local maximum is not always the greatest value on a closed interval. Endpoint values can be larger or smaller than interior stationary values.

Answering the wrong quantity

If the question asks for dimensions, do not only give \(x\). If it asks for maximum area, compute the area after finding the dimensions.

Dropping units and context

Optimization problems are applied questions. A final value such as \(x=4\) is less useful than \(x=4\ \mathrm{cm}\), maximum volume \(=384\ \mathrm{cm^3}\).

Another common mistake is using a memorized formula without checking whether the situation matches it. A closed cylinder and an open cylinder have different surface area formulas. A rectangle against a wall uses less fencing than a free-standing rectangle. A symmetrical rectangle under a curve may have width \(2x\), not \(x\). A profit function may require subtracting cost from revenue, not maximizing revenue alone. The words of the problem decide the model.

Practice Questions with Guided Solutions

A rectangle has perimeter \(60\ \mathrm{m}\). Find the dimensions that maximize its area.

Let the length be \(l\) and width be \(w\). The constraint is \(2l+2w=60\), so \(w=30-l\). The area is \(A(l)=l(30-l)=30l-l^2\). Then \(A'(l)=30-2l\). Solving \(A'(l)=0\) gives \(l=15\). Then \(w=15\). Since \(A''(l)=-2<0\), the maximum occurs when the rectangle is a \(15\ \mathrm{m}\) by \(15\ \mathrm{m}\) square.

A rectangular field is built beside a river, so fencing is needed on only three sides. The area must be \(800\ \mathrm{m^2}\). Find the dimensions that minimize fencing.

Let \(x\) be the width perpendicular to the river and \(y\) be the length parallel to the river. Area gives \(xy=800\), so \(y=\frac{800}{x}\). Fencing length is \(F=2x+y=2x+\frac{800}{x}\). Differentiate: \(F'(x)=2-\frac{800}{x^2}\). Set equal to zero: \(2=\frac{800}{x^2}\), so \(x^2=400\), giving \(x=20\). Then \(y=40\). Since \(F''(x)=\frac{1600}{x^3}>0\), this gives a minimum. The field should be \(20\ \mathrm{m}\) by \(40\ \mathrm{m}\), with the \(40\ \mathrm{m}\) side along the river.

Two positive numbers have a sum of \(50\). Find the numbers that maximize their product.

Let one number be \(x\). The other is \(50-x\). The product is \(P(x)=x(50-x)=50x-x^2\), with \(0<x<50\). Differentiate: \(P'(x)=50-2x\). Solving \(P'(x)=0\) gives \(x=25\). The other number is also \(25\). Since \(P''(x)=-2<0\), the product is maximized when the numbers are \(25\) and \(25\).

A point on the parabola \(y=x^2\) is closest to \((0,3)\). Set up the function to minimize.

A point on the parabola is \((x,x^2)\). The squared distance to \((0,3)\) is \(D^2=x^2+(x^2-3)^2\). Let \(F(x)=x^2+(x^2-3)^2\). Expanding gives \(F(x)=x^4-5x^2+9\). Then \(F'(x)=4x^3-10x=2x(2x^2-5)\). Critical points are \(x=0\) and \(x=\pm\sqrt{\frac52}\). Compare \(F\) values to decide the closest point. The setup matters because minimizing \(D^2\) avoids the square root while preserving the same minimum distance.

A product sells for \(p=100-0.5x\), where \(x\) is the number of units sold. Find the number of units that maximizes revenue.

Revenue is \(R=xp=x(100-0.5x)=100x-0.5x^2\). Differentiate: \(R'(x)=100-x\). Solving \(R'(x)=0\) gives \(x=100\). Since \(R''(x)=-1<0\), revenue is maximized at \(100\) units. The price at that point is \(p=100-0.5(100)=50\).

How to Handle Harder Constraint Equations

Introductory optimization problems often have a simple linear constraint, such as \(2l+2w=40\). Harder IB-style questions may use a nonlinear constraint, a trigonometric relationship, a curve equation or a parameter. The process is still the same, but the algebra requires more care. Your goal is to express the objective as one variable without changing the meaning of the constraint. If the constraint is \(x^2+y^2=25\), for example, you may solve for \(y=\sqrt{25-x^2}\) when \(y\) is positive, or you may use the constraint to replace \(y^2\) if the objective contains \(y^2\). The best substitution is usually the one that keeps the objective simple and preserves the correct domain.

When a square root appears, do not panic. Many distance and curve problems produce expressions such as \(A(x)=2x\sqrt{16-x^2}\). You can differentiate directly using the product and chain rules, or sometimes square the quantity if the objective is nonnegative and the problem allows it. For example, minimizing a distance \(D\) is equivalent to minimizing \(D^2\), because the square function is increasing for \(D\geq0\). Maximizing an area that contains a square root is not always equivalent to maximizing its square unless the area is nonnegative over the entire valid domain, so the reasoning must be stated carefully.

Trigonometric constraints appear in triangle, sector and angle problems. A triangle with two sides fixed may have area \(A=\frac12 ab\sin \theta\), so the maximum occurs when \(\sin\theta\) is maximized. A sector problem may connect arc length, radius and angle through \(s=r\theta\). In these problems, the valid angle range matters. An equation such as \(\cos\theta=0\) has many solutions in general, but only the solutions inside the physical angle range are relevant. Always check whether the angle is measured in radians, because calculus derivatives of trigonometric functions assume radians unless otherwise specified.

Parameters can make a problem look abstract. Suppose a rectangle has fixed perimeter \(P\). The maximum area is found from \(A=l\left(\frac{P}{2}-l\right)\), giving \(l=\frac{P}{4}\) and \(w=\frac{P}{4}\). The answer is not a decimal because \(P\) is unspecified. Parameter problems test whether you understand the structure rather than only arithmetic. They are excellent revision practice because they reveal whether you can keep variables, constants and parameters separate.

If the constraint cannot be rearranged cleanly, consider whether implicit differentiation or numerical solving is expected. Some higher-level or technology-supported tasks ask for an optimum where \(f'(x)=0\) leads to an equation that has no simple exact solution. In that case, define the objective clearly, show the derivative equation and use an appropriate numerical method or graphing tool to find the critical point. The written solution should still include the domain and a justification that the point gives the required maximum or minimum.

Exam-Style Variations and How to Respond

Optimization questions can be disguised in several ways. A question may not use the word "optimize" at all. It may ask for the "greatest possible area," "least amount of material," "minimum distance," "maximum profit," "most efficient dimensions" or "lowest cost." These phrases are all signals that a maximum or minimum is required. Once you recognize the signal, look for the quantity being optimized and the condition that limits it.

Some questions provide a formula and ask you to optimize it directly. These are usually easier because the modelling step has been done for you. For example, a question might state that the volume of a box is \(V(x)=4x^3-100x^2+600x\) and ask for the maximum volume in a specified interval. In that case, focus on differentiating, solving, checking the interval and interpreting. Do not waste time rebuilding the model unless the question asks for it.

Other questions require you to derive the function first. These are more demanding and usually carry more marks. You may need to draw a diagram, label dimensions, use geometry formulas and substitute a constraint. In these problems, marks are often awarded for the objective function and domain before any differentiation occurs. If your final number is wrong because of an arithmetic slip, a clear setup can still earn substantial credit. If the setup is missing, the solution is difficult to credit even if a number appears at the end.

A third style asks for interpretation after the calculation. For example, a profit function may be optimized at \(x=37.5\), but \(x\) represents units sold. The context may require \(x=37\) or \(x=38\), and the better whole-number choice should be checked by evaluating the original profit function. Similarly, a dimension may need to be rounded to a practical measurement. IB questions usually indicate when exact or rounded answers are expected, but you should always consider whether the variable is continuous or discrete.

Some tasks include a graph and ask you to explain why an optimum occurs. In that case, use calculus language tied to the graph: the function increases before the maximum and decreases after it; the derivative changes from positive to negative; the tangent is horizontal at the stationary point; endpoints are lower than the interior value. A graphical explanation is strongest when it connects visual features to derivative meaning.

Finally, multi-part questions often build the optimization function step by step. Part (a) may ask you to show that \(A(x)=24x-2x^3\). Part (b) may ask for the stationary point. Part (c) may ask for the maximum area. Use the given result if you could not derive it, because later marks may still be available. In exam conditions, do not let one modelling error prevent you from attempting the differentiation and interpretation parts.

Checking Whether an Answer Makes Sense

After solving an optimization problem, pause and test the answer against the situation. A cut size larger than half the sheet width is impossible. A maximum area from a fixed perimeter should not have one side nearly zero unless the model has an unusual constraint. A minimum distance should not be negative. A profit-maximizing quantity should usually lie inside the realistic production range. These common-sense checks catch many errors before they reach the final answer line.

Units provide another useful check. If you optimize area, the final area should be in square units. If you optimize volume, the final volume should be in cubic units. If you optimize cost, the final cost should be in currency units. The variable that gives the optimum may have different units from the optimized quantity. For example, \(x=3.92\ \mathrm{cm}\) may be the cut size, while \(V_{\max}\) is measured in \(\mathrm{cm^3}\). Giving only one of these when the question asks for the other is a common avoidable mistake.

Magnitude also matters. Suppose a \(30\ \mathrm{cm}\) by \(20\ \mathrm{cm}\) sheet is folded into a box. A maximum volume of \(20{,}000\ \mathrm{cm^3}\) would be unreasonable because the original sheet is not large enough to form such a volume. A quick mental estimate can reveal that something has gone wrong. You do not need a perfect estimate; you only need enough sense of scale to notice an impossible result.

Graphs and tables are helpful checking tools. If you found a maximum at \(x=4\), evaluate the objective at \(x=3.9\), \(x=4\) and \(x=4.1\) to see whether the value is largest near \(4\). If the values keep increasing, your critical point may be a minimum or may not be the absolute maximum. If the graph shows the function decreasing across the whole valid interval, the maximum may be at the left endpoint. These checks are not a replacement for proof, but they support confidence and help detect slips.

When a result is counterintuitive, do not immediately discard it. Some optimization outcomes surprise students. A minimum surface-area cylinder has height equal to diameter, which may not be obvious before the calculation. A rectangle of maximum area for fixed perimeter is a square. A profit maximum may occur before revenue is maximized because costs change the objective. The right response is to compare the result with the model, not with a vague expectation. If the model is correct and the derivative test is valid, the result may reveal the mathematical insight of the problem.

Revision Checklist

  • Can you identify the objective function in words before writing symbols?
  • Can you distinguish the objective from the constraint?
  • Can you reduce a two-variable expression to one variable?
  • Can you state the valid domain from the physical context?
  • Can you differentiate the objective accurately?
  • Can you solve \(f'(x)=0\) and reject invalid roots?
  • Can you use the first derivative test, second derivative test or endpoint comparison?
  • Can you answer the exact question asked, with units?
  • Can you explain why your answer is a maximum or minimum?
  • Can you check the result against a graph, table or common-sense estimate?

Optimization improves with practice because the calculus step is only part of the work. The harder skill is translating words into a function. When revising, do not only solve algebraic stationary point questions. Practice reading contexts, drawing diagrams, assigning variables and deciding which quantity is constrained. If you can set up the function correctly, the differentiation is usually straightforward.

Frequently Asked Questions

What is the difference between a critical point and an optimum?

A critical point is a candidate where \(f'(x)=0\) or where \(f'(x)\) is undefined. An optimum is the point that actually gives the maximum or minimum value required by the problem. Every interior optimum is usually a critical point, but not every critical point is an optimum. You must test or compare values.

Should I always use the second derivative test?

No. The second derivative test is efficient when it works, but it may be inconclusive if \(f''(a)=0\). It also does not replace endpoint checks on a closed interval. The first derivative sign test and endpoint comparison are often more reliable in applied optimization problems.

Why do optimization problems often use one variable?

Single-variable calculus uses derivatives such as \(f'(x)\), so the objective must be expressed as a function of one independent variable. Constraints allow you to replace other variables. For example, fixed perimeter lets you write width in terms of length, and fixed volume lets you write height in terms of radius.

How do I know whether to maximize or minimize?

Read the wording carefully. Words such as greatest, largest, maximum, most, highest and maximize suggest a maximum. Words such as least, smallest, minimum, shortest, lowest and minimize suggest a minimum. Some problems ask for "optimal" without saying which direction; the context then determines whether bigger or smaller is better.

Can endpoints be the answer?

Yes, if the endpoints are included in the valid domain. On a closed interval, the absolute maximum or minimum may occur at an endpoint even when there are stationary points inside. If endpoints are excluded because they do not make physical sense, explain the open interval and focus on interior candidates.

Optimization Problems in Applications of Differentiation
Optimization Problems in Applications of Differentiation
Optimization Problems in Applications of Differentiation
Shares: