GLOBAL KNOWLEDGE ARK

Mathematics · Article

Optimisation and applications of derivatives

Turn a constrained choice into a function on its actual feasible domain. Compare every relevant candidate, justify global conclusions and keep units, open boundaries and integer decisions in the model.

Back to Mathematics

After reading, you can

  • Build a one-variable objective from a constraint and identify which inputs really are feasible.
  • Use justified derivative and boundary arguments to locate attained global optima, or prove that a bound is not attained.
  • Distinguish continuous models from integer choices and retain units and practical conditions in the final answer.
01

The same fence can enclose different areas

A rectangle uses 24 metres of fencing on all four sides. If one side is x metres and its adjacent side is y metres, the constraint is 2x+2y=24, so y=12−x. Choosing x=2 gives y=10 and area 20 square metres; choosing x=4 gives y=8 and area 32 square metres.

The quantity we want to make largest is area, not either side separately. Substitution gives the objective A(x)=x(12−x)=12x−x², measured in square metres. A longer x leaves less fencing for y. The constraint explains why increasing one side indefinitely is not an option.

For a genuine rectangle both sides must be positive, so the feasible domain is 0<x<12. The cases x=0 and x=12 are collapsed shapes, not positive rectangles. We may inspect the continuous formula on [0,12] to compare bounds, but must check whether a proposed answer belongs to the original open domain.

Complete the square: A(x)=36−(x−6)²≤36. Equality occurs at x=6, which is feasible and gives y=6. The maximum is 36 square metres, attained by the 6-by-6-metre square. This exact comparison already proves the result without a derivative.

Review objective formulas and domains, complete a square, and solve sign inequalities with included or excluded boundaries. Required derivative and mean value tools are stated and justified locally.

One fence budget, different rectanglesTwo rectangles use the same four-sided fence budget. Each drawing uses the same length scale within this figure, so their widths and heights represent the labelled exact side lengths. The objective areas are stated beside them; more balanced dimensions enclose more area in this comparison.First choice10 m2 mArea: 20 m²Second choice8 m4 mArea: 32 m²

Blue solid outline and green dashed outline: two feasible dimension choices. The scale is shared within the pair; the objective proof covers every feasible choice.

The 2-by-10 and 4-by-8 rectangles both use 24 metres of fence. Their areas are 20 and 32 square metres. The identity 36−(x−6)² proves that the feasible 6-by-6 rectangle is best.

Begin with the fence, box and candidate checks. Return to the attainment and mean value proofs once the distinction between a candidate, a feasible optimiser and an unattained bound is clear.

Use the preparation links for functions, quadratic expressions and inequalities. First follow the rectangle, box and feasible-candidate tables; return to the derivative and attainment proofs afterward. Required calculus ideas are defined here, without treating an unpublished lesson as a preparation link.

02

State the objective before differentiating

An optimisation problem asks for a largest or smallest objective value among the permitted choices. Write a variable with its units, express the objective and use each constraint to reduce the number of independent variables. Then determine the feasible set D from the original problem, not merely from the final formula.

A global maximum at c∈D means f(x)≤f(c) for every x∈D; a global minimum reverses the inequality. The optimal value is f(c), while the optimiser is the choice c. They have different units: the rectangle optimiser is a length and its optimal objective is an area.

A local maximum compares only feasible inputs sufficiently near c; a local minimum is similar. These inequalities may allow ties. A strict local maximum requires f(x)<f(c) for every different sufficiently near feasible input. A local extremum does not automatically beat every distant choice.

Excluded inputs cannot be optimisers. A formula may be defined at a collapsed shape even when the physical model forbids it. Likewise a stationary solution may lie outside a permitted interval, and a noninteger solution may be forbidden when only whole items can be chosen.

A constraint can reject a stationary input or move the optimum to an included boundary. Recheck the original domain before interpreting any result.

03

Why an interior extremum is a candidate

For an actual input a and a permitted nonzero increment h, the difference quotient is (f(a+h)−f(a))/h. A finite two-sided derivative f′(a), with permitted inputs accumulating at a from both sides, is its common real limit as h approaches zero from both available sides. Explicitly, each ε>0 must have one δ>0 making every permitted 0<|h|<δ give quotient error less than ε.

At an interior differentiable local maximum, sufficiently small positive increments give nonpositive quotients and negative increments give nonnegative quotients. Their common limit is therefore both ≤0 and ≥0, hence f′(a)=0. At a local minimum the signs reverse and give the same conclusion. This is a necessary condition, not a sufficient test.

For example x³ has derivative 3x², which is zero at 0, but x³ is increasing through 0 and has neither a local maximum nor a local minimum there. Conversely |x−2| has a minimum at 2 but its derivative does not exist there. A search must retain nondifferentiable interior inputs as well as stationary ones.

Endpoints need not have zero derivative. The increasing function x on [0,1] has its minimum at 0 and maximum at 1. A one-sided derivative can describe an endpoint rate, but the interior argument using both signs does not apply there.

Objective values on the feasible domainFinite linear axes show the continuous objective in blue on its permitted intervals. Open diamonds mark excluded finite boundary values and filled circles mark included ones. When revealed, green squares mark feasible comparison candidates and orange rings mark attained global optimisers. Whole-item choices are drawn as separate circles; a dashed continuous extension is a guide, not additional feasible inputs. A changed endpoint value is plotted separately without joining it to the nearby curve.−1−0.500.51−1−0.500.51Objective (Dimensionless)Input (Dimensionless)

f(x)=x³ · x∈[−1,1]

Blue: original objective or separate whole-item values. Open diamonds: excluded boundaries. Filled circles: included boundaries. Revealed green squares: feasible candidates. Revealed orange rings: attained global optimisers. Dashed lines: continuous extension for integer choices or continuation in a finite window.

This is a finite linear drawing window. Curves may continue beyond it, and exact rows preserve values not plotted. Global conclusions come from the full-domain proof, not the sampled path.

The corner remains a feasible candidate although its derivative is absent. A stationary formula input, by contrast, may be feasible yet fail to be a local optimum.

The formulas below use direct differentiation. The square quotient is 2a+h, with error |h| from 2a. The cube quotient is 3a²+3ah+h²; for |h|<1 its error from 3a² is at most (3|a|+1)|h|, giving an all-input tolerance. A constant has quotient 0 and a line mx+b has quotient m. A finite sum splits into a sum of quotients: for k summands choose each error below ε/k and take the smallest tolerance; fixed coefficients scale the errors. This proves the polynomial linear-combination formulas used here.

For 1/x at a≠0, subtracting fractions gives quotient −1/[a(a+h)]. Restricting |h|<|a|/2 keeps its denominator away from zero; its error from −1/a² is less than 2|h|/|a|³. This proves the reciprocal derivative with the original exclusion retained. No value or derivative at 0 is created.

04

When checking candidates can give a complete answer

A continuous real function on a nonempty closed bounded interval [a,b], with a≤b, attains a maximum and a minimum. This assertion includes the singleton case a=b. Continuity means nearby permitted inputs have outputs close to the actual point value, including one-sided approaches at the endpoints.

Here is the real-number compactness fact behind that assertion. Every sequence in [a,b] has a convergent subsequence with limit in [a,b]: repeatedly bisect the interval and retain a closed half containing infinitely many terms; choose increasing indices in these nested halves. Completeness of the real numbers gives a common point, and the shrinking widths force the chosen terms to converge to it.

If a continuous f were unbounded on [a,b], choose xₙ with |f(xₙ)|>n. A convergent subsequence of these inputs would have limit c in the interval, while continuity would force the corresponding outputs to the finite f(c), a contradiction. Thus the range is bounded. Let M be its least upper bound; choose inputs whose outputs exceed M−1/n. A convergent subsequence and continuity then give f(c)=M. Apply the same argument to −f for the minimum.

When a<b, each attained optimum is an endpoint or an interior input where f′=0 or the derivative is unavailable. If these candidate sets are finite and exhaustive, comparing their actual objective values settles both global optima. If infinitely many candidates occur, a finite table of selected ones is not a complete search; use an argument covering all remaining inputs.

Objective values on the feasible domainFinite linear axes show the continuous objective in blue on its permitted intervals. Open diamonds mark excluded finite boundary values and filled circles mark included ones. When revealed, green squares mark feasible comparison candidates and orange rings mark attained global optimisers. Whole-item choices are drawn as separate circles; a dashed continuous extension is a guide, not additional feasible inputs. A changed endpoint value is plotted separately without joining it to the nearby curve.010203040036912Objective (Square metres)Input (Metres)

A(x)=x(12−x) · x∈[0,12]

Blue: original objective or separate whole-item values. Open diamonds: excluded boundaries. Filled circles: included boundaries. Revealed green squares: feasible candidates. Revealed orange rings: attained global optimisers. Dashed lines: continuous extension for integer choices or continuation in a finite window.

This is a finite linear drawing window. Curves may continue beyond it, and exact rows preserve values not plotted. Global conclusions come from the full-domain proof, not the sampled path.

Closedness, boundedness and continuity are sufficient conditions for this theorem. Removing a condition removes that guarantee, not necessarily every possible optimum. The fixed-area perimeter example has a minimum on an open unbounded domain, established by a separate exact inequality.

05

A derivative sign controls a whole interval under its hypotheses

For a continuous f on [u,v], u<v, differentiable on (u,v), the mean value theorem gives some c∈(u,v) with f(v)−f(u)=f′(c)(v−u). It connects an interval-wide change to an interior derivative; a few sampled derivative signs cannot replace its hypotheses or a sign proof throughout the interval.

To justify it here, first consider a continuous g on [u,v], differentiable inside, with g(u)=g(v). If g is constant, any interior point has derivative 0. Otherwise closed-interval attainment supplies a maximum or minimum with value different from the endpoints, attained at an interior input; the preceding extremum argument gives derivative 0. This is Rolle’s theorem.

Now subtract the line joining f(u) to f(v). The resulting g has equal endpoint values, and g′(x)=f′(x)−(f(v)−f(u))/(v−u). Rolle’s theorem gives a zero of g′, proving the mean value formula.

If f′>0 throughout an interval, apply that formula to any two distinct inputs in it: the later output is larger. If f′<0, the later output is smaller. Nonnegative or nonpositive signs give nondecreasing or nonincreasing conclusions. Continuity on each comparison segment and differentiability inside are essential.

A positive-to-negative sign change on both sides of an included continuous point proves a local maximum; the reverse proves a local minimum. A global conclusion requires comparisons covering the entire feasible domain. A sign change at an excluded point cannot produce an attained optimum there.

Objective values on the feasible domainFinite linear axes show the continuous objective in blue on its permitted intervals. Open diamonds mark excluded finite boundary values and filled circles mark included ones. When revealed, green squares mark feasible comparison candidates and orange rings mark attained global optimisers. Whole-item choices are drawn as separate circles; a dashed continuous extension is a guide, not additional feasible inputs. A changed endpoint value is plotted separately without joining it to the nearby curve.010203040036912Objective (Square metres)Input (Metres)

A(x)=x(12−x) · x∈[0,4]

Blue: original objective or separate whole-item values. Open diamonds: excluded boundaries. Filled circles: included boundaries. Revealed green squares: feasible candidates. Revealed orange rings: attained global optimisers. Dashed lines: continuous extension for integer choices or continuation in a finite window.

This is a finite linear drawing window. Curves may continue beyond it, and exact rows preserve values not plotted. Global conclusions come from the full-domain proof, not the sampled path.

06

A cut size trades height against base area

Cut a square of side x centimetres from each corner of a 12-by-12-centimetre sheet, then fold the remaining flaps into an open-top box. The height is x and both base sides are 12−2x, so V(x)=x(12−2x)²=144x−48x²+4x³ cubic centimetres.

A positive box requires 0<x<6. On the auxiliary closed interval [0,6], the endpoint formula values are zero. The derivative is V′(x)=144−96x+12x²=12(x−2)(x−6). Its stationary solutions are 2 and 6; only 2 is interior to the positive-box domain.

For 0<x<2 both factors are negative, so V′>0; for 2<x<6 their signs differ, so V′<0. The mean value comparison proves increase then decrease on the whole feasible domain. Thus x=2 gives the unique maximum: height 2 centimetres, base 8 by 8 centimetres and volume 128 cubic centimetres.

There is no minimum positive volume on (0,6). Every volume is positive, yet V(x) approaches 0 as x approaches either excluded endpoint. The infimum, or greatest lower bound, is 0 and is not attained. If collapsed shapes were explicitly allowed on [0,6], their volume 0 would instead be an attained minimum.

A cut size determines all three box dimensionsA square sheet is shown at a uniform length scale. Four orange square corners of the stated cut size are removed. Dashed green fold lines enclose the remaining square base. The labelled height is the cut size; each base side is the original sheet side minus two cuts. This is the flat net, not a perspective drawing of a folded box.Sheet side: 12 cmCut and heightx=2 cmBase side12−2x=8 cmVolume: 128 cm³

Orange hatched corner squares: removed material. Dashed green lines: folds. Blue centre: square base. All lengths are centimetres.

Objective values on the feasible domainFinite linear axes show the continuous objective in blue on its permitted intervals. Open diamonds mark excluded finite boundary values and filled circles mark included ones. When revealed, green squares mark feasible comparison candidates and orange rings mark attained global optimisers. Whole-item choices are drawn as separate circles; a dashed continuous extension is a guide, not additional feasible inputs. A changed endpoint value is plotted separately without joining it to the nearby curve.0501001500123456Objective (Cubic centimetres)Input (Centimetres)

V(x)=x(12−2x)² · x∈(0,6)

Blue: original objective or separate whole-item values. Open diamonds: excluded boundaries. Filled circles: included boundaries. Revealed green squares: feasible candidates. Revealed orange rings: attained global optimisers. Dashed lines: continuous extension for integer choices or continuation in a finite window.

This is a finite linear drawing window. Curves may continue beyond it, and exact rows preserve values not plotted. Global conclusions come from the full-domain proof, not the sampled path.

The positive box needs 0<x<6. Cut 2 gives height 2 and base sides 8, with volume 128. The zero-volume endpoint formulas describe collapsed shapes, not positive boxes.

A new constraint changes the answer. If the cut must satisfy 3≤x≤5, both stationary solutions lie outside the interior feasible set. The derivative is negative throughout (3,5), so the maximum is V(3)=108 and the minimum is V(5)=20 cubic centimetres. Rejecting the unconstrained optimiser is part of the solution.

07

An open domain can still contain its best choice

For rectangles of fixed area 16 square metres, let x>0 be one side in metres. The other side is 16/x metres, and the perimeter is P(x)=2x+32/x metres. There is no finite closed interval containing every feasible x, so the closed-interval theorem alone does not establish the answer.

Its derivative is P′(x)=2−32/x². It is negative on (0,4), zero at 4 and positive on (4,+∞). The interval comparison therefore gives a global minimum at 4. An exact check is even shorter: P(x)−16=2(x−4)²/x≥0 for every x>0, with equality only at 4.

The optimal rectangle is 4 by 4 metres and has perimeter 16 metres. There is no maximum: P(x)≥2x grows beyond any finite bound as x increases. Near zero the reciprocal term is also unbounded. These facts concern the original positive domain; zero is not a stationary candidate or a feasible side length.

Equal areas can have different perimetersTwo rectangles each have area sixteen square metres. The same metre scale is used for both drawings, and the exact side lengths and perimeters are labelled. The first has sides two and eight metres; the second has sides four and four metres.First choice8 m2 mPerimeter: 20 mSecond choice4 m4 mPerimeter: 16 m

Blue solid outline and green dashed outline: two equal-area rectangles. Their perimeters differ; the global square identity covers every positive side choice.

Objective values on the feasible domainFinite linear axes show the continuous objective in blue on its permitted intervals. Open diamonds mark excluded finite boundary values and filled circles mark included ones. When revealed, green squares mark feasible comparison candidates and orange rings mark attained global optimisers. Whole-item choices are drawn as separate circles; a dashed continuous extension is a guide, not additional feasible inputs. A changed endpoint value is plotted separately without joining it to the nearby curve.01020304002468Objective (Metres)Input (Metres)

P(x)=2x+32/x · x∈(0,+∞)

Blue: original objective or separate whole-item values. Open diamonds: excluded boundaries. Filled circles: included boundaries. Revealed green squares: feasible candidates. Revealed orange rings: attained global optimisers. Dashed lines: continuous extension for integer choices or continuation in a finite window.

This is a finite linear drawing window. Curves may continue beyond it, and exact rows preserve values not plotted. Global conclusions come from the full-domain proof, not the sampled path.

For x>0, P−16=2(x−4)²/x≥0 proves an attained minimum even though the feasible domain is open and unbounded. There is no maximum perimeter.

If an additional requirement gives 1≤x≤3, the unconstrained stationary solution 4 is rejected. The function is decreasing throughout this interval, giving maximum P(1)=34 metres and minimum P(3)=50/3 metres. A preferred global choice outside the constraints cannot be used.

08

A continuous optimum may need a discrete comparison

Suppose a continuous production model has revenue R(q)=20q−q² euros and cost C(q)=5q+12 euros, for 0≤q≤12 modelled items. Profit is revenue minus cost: Π(q)=15q−q²−12 euros. Maximising revenue alone would answer a different question.

The derivative Π′(q)=15−2q vanishes at q=15/2. Completing the square gives Π(q)=177/4−(q−15/2)², so the continuous maximum is 177/4 euros at 15/2 items. Comparing endpoints gives Π(0)=−12 and Π(12)=24 euros; the global minimum is −12 euros at zero production.

If only whole items are permitted, the domain is {0,1,…,12}; it has no accumulating nearby inputs for a derivative. Use the continuous curve to organise the search, then compare the actual integer choices. The square identity makes integers 7 and 8 equally closest to 15/2, both giving profit 44 euros; every other permitted integer gives less.

That nearest-integer argument depends on this particular quadratic identity. Blindly rounding a stationary point is not a general proof for every integer objective. Constraints, multiple peaks or a different objective may require a different finite comparison.

Objective values on the feasible domainFinite linear axes show the continuous objective in blue on its permitted intervals. Open diamonds mark excluded finite boundary values and filled circles mark included ones. When revealed, green squares mark feasible comparison candidates and orange rings mark attained global optimisers. Whole-item choices are drawn as separate circles; a dashed continuous extension is a guide, not additional feasible inputs. A changed endpoint value is plotted separately without joining it to the nearby curve.−2002040036912Objective (Euros)Input (Whole items)

Π(q)=15q−q²−12 · q∈{0,1,…,12}

Blue: original objective or separate whole-item values. Open diamonds: excluded boundaries. Filled circles: included boundaries. Revealed green squares: feasible candidates. Revealed orange rings: attained global optimisers. Dashed lines: continuous extension for integer choices or continuation in a finite window.

This is a finite linear drawing window. Curves may continue beyond it, and exact rows preserve values not plotted. Global conclusions come from the full-domain proof, not the sampled path.

The stipulated profit is revenue minus cost. A continuous model admits input 15/2; the whole-item model instead has two best feasible inputs, 7 and 8.

If the continuous production cap is 6, the stationary solution 15/2 is infeasible. Π′>0 on [0,6], so the maximum is Π(6)=42 euros at the included cap. The minimum is still −12 euros at 0. A boundary can be optimal despite a nonzero derivative there.

09

Optimise a simpler objective without changing the ranking

Choose a point (x,0) on the horizontal segment 0≤x≤8 metres, as close as possible to the fixed point (3,4) metres. Its squared distance is S(x)=(x−3)²+16 square metres. Actual distance is √S(x) metres.

The nonnegative square root is strictly increasing: if 0≤r<s, then √r<√s, since otherwise squaring would give r≥s. Therefore the same feasible inputs minimise or maximise distance and squared distance, although their optimal values and units differ.

S′(x)=2(x−3), so x=3 is the stationary candidate. Compare S(0)=25, S(3)=16 and S(8)=41. The nearest point is (3,0), at distance 4 metres; the farthest is (8,0), at distance √41 metres. State distances rather than accidentally reporting squared distances as lengths.

If the allowed segment is 5≤x≤8, the perpendicular foot x=3 is excluded. S is increasing there, so the nearest input is 5 with distance √20 metres, and the farthest remains 8 with distance √41 metres. The geometry and derivative agree only after the feasible segment is respected.

The feasible segment can exclude the perpendicular footThe coordinate diagram has equal horizontal and vertical metre scales. A blue horizontal segment marks permitted points on the axis. A green square marks the selected feasible point; an orange diamond is the fixed point. The dashed segment gives their distance, and the right-angle marker at the perpendicular foot identifies the squared-distance formula. An excluded perpendicular foot is shown as a hollow circle.02468024x (m)y (m)(3,4)(3,0)

Blue segment: feasible choices. Green square: selected point. Orange diamond: fixed point (3,4). Hollow circle: excluded perpendicular foot when applicable. Horizontal and vertical axes use equal metre scales.

The feasible segment can exclude the perpendicular footThe coordinate diagram has equal horizontal and vertical metre scales. A blue horizontal segment marks permitted points on the axis. A green square marks the selected feasible point; an orange diamond is the fixed point. The dashed segment gives their distance, and the right-angle marker at the perpendicular foot identifies the squared-distance formula. An excluded perpendicular foot is shown as a hollow circle.02468024x (m)y (m)(3,4)(5,0)

Blue segment: feasible choices. Green square: selected point. Orange diamond: fixed point (3,4). Hollow circle: excluded perpendicular foot when applicable. Horizontal and vertical axes use equal metre scales.

Compare squared distances first, because square root preserves nonnegative ordering. Recover distance in metres afterward, and reject any foot outside the original segment.

10

A bound is not automatically an attained optimum

For f(x)=x on (0,1), every feasible input has a smaller and a larger feasible neighbour, such as x/2 and (x+1)/2. Thus no minimum or maximum exists. The infimum is 0 and supremum, or least upper bound, is 1; neither belongs to the feasible domain. Limits at missing boundaries describe bounds, not selected choices.

Continuity matters too. On [0,1], define f(0)=2 and f(x)=x for x>0. Its maximum is 2 at 0, but it has no minimum: positive values approach 0 without reaching it. The domain is closed and bounded, but the function is not continuous at 0, so the attainment theorem is inapplicable.

Objective values on the feasible domainFinite linear axes show the continuous objective in blue on its permitted intervals. Open diamonds mark excluded finite boundary values and filled circles mark included ones. When revealed, green squares mark feasible comparison candidates and orange rings mark attained global optimisers. Whole-item choices are drawn as separate circles; a dashed continuous extension is a guide, not additional feasible inputs. A changed endpoint value is plotted separately without joining it to the nearby curve.00.250.50.75100.250.50.751Objective (Dimensionless)Input (Dimensionless)

f(x)=x · x∈(0,1)

Blue: original objective or separate whole-item values. Open diamonds: excluded boundaries. Filled circles: included boundaries. Revealed green squares: feasible candidates. Revealed orange rings: attained global optimisers. Dashed lines: continuous extension for integer choices or continuation in a finite window.

This is a finite linear drawing window. Curves may continue beyond it, and exact rows preserve values not plotted. Global conclusions come from the full-domain proof, not the sampled path.

Objective values on the feasible domainFinite linear axes show the continuous objective in blue on its permitted intervals. Open diamonds mark excluded finite boundary values and filled circles mark included ones. When revealed, green squares mark feasible comparison candidates and orange rings mark attained global optimisers. Whole-item choices are drawn as separate circles; a dashed continuous extension is a guide, not additional feasible inputs. A changed endpoint value is plotted separately without joining it to the nearby curve.00.511.5200.250.50.751Objective (Dimensionless)Input (Dimensionless)

f(0)=2; f(x)=x (x>0) · x∈[0,1]

Blue: original objective or separate whole-item values. Open diamonds: excluded boundaries. Filled circles: included boundaries. Revealed green squares: feasible candidates. Revealed orange rings: attained global optimisers. Dashed lines: continuous extension for integer choices or continuation in a finite window.

This is a finite linear drawing window. Curves may continue beyond it, and exact rows preserve values not plotted. Global conclusions come from the full-domain proof, not the sampled path.

Open boundary diamonds display excluded limiting values. They give bounds, but there is no chosen input attaining them.

A nondifferentiable input may be essential. For f(x)=|x−2| on [0,5], compare the corner at 2 with endpoints 0 and 5: the minimum is 0 at 2 and maximum is 3 at 5. Solving only f′=0 finds no candidate and misses the minimum.

A zero derivative may be irrelevant to the optimum. For x³ on [−1,1], the stationary input 0 has value 0, between endpoint values −1 and 1. There is no local extremum at 0. Always distinguish a candidate from a verified optimiser.

11

Finish with a choice that the original problem permits

After solving, substitute the proposed optimiser into every original constraint, recover dependent dimensions and report the objective with its units. Check positive lengths, capacity limits, included or excluded endpoints and any integer requirement.

Explain why all other feasible choices are covered: an exhaustive closed-interval candidate comparison, a derivative sign on every intervening interval, a global algebraic inequality or a complete finite search. A finite plot or a handful of sampled values illustrates that argument and does not prove completeness.

Keep model assumptions visible. The fencing examples ignore thickness and waste; the box ignores material thickness; the profit curve is a stipulated model, not a prediction of actual demand. Changing assumptions changes the feasible set or objective and can change the optimum.

Return to the local extremum argument, the closed-interval attainment proof and the mean value comparison after the concrete examples. They explain both why the method works and why open boundaries, discontinuities, corners and discrete choices need separate treatment.

Check the whole problem again

State the objective and units, reduce using constraints and specify the actual feasible domain. Compare all applicable boundaries, stationary and nondifferentiable inputs, or use a full-domain inequality or sign proof. Recover dimensions and reject choices the original model forbids.

Predict the best feasible choice

Choose a constrained model. Predict whether a best value is attained and where it can occur, then reveal the complete candidate comparison and its exact proof.

Choose the kind of question
Choose the feasible model

Objective formula: A(x)=x(12−x)

Original constraint: 2x+2y=24; y=12−x

Actual feasible domain: x∈[0,12]

Input units: Metres · Objective units: Square metres

Which inputs are actually feasible? Predict both largest and smallest values, or explain why a bound is not attained. Include boundaries and any corner.

Objective values on the feasible domainFinite linear axes show the continuous objective in blue on its permitted intervals. Open diamonds mark excluded finite boundary values and filled circles mark included ones. When revealed, green squares mark feasible comparison candidates and orange rings mark attained global optimisers. Whole-item choices are drawn as separate circles; a dashed continuous extension is a guide, not additional feasible inputs. A changed endpoint value is plotted separately without joining it to the nearby curve.010203040036912Objective (Square metres)Input (Metres)

A(x)=x(12−x) · x∈[0,12]

Blue: original objective or separate whole-item values. Open diamonds: excluded boundaries. Filled circles: included boundaries. Revealed green squares: feasible candidates. Revealed orange rings: attained global optimisers. Dashed lines: continuous extension for integer choices or continuation in a finite window.

This is a finite linear drawing window. Curves may continue beyond it, and exact rows preserve values not plotted. Global conclusions come from the full-domain proof, not the sampled path.

Computed candidate markers, optimum summaries, case reasoning and tables are hidden until revealed. The stipulated objective and feasible-domain boundary remain visible.

Worked examples

A wall changes the constraint

A wall supplies one side of a rectangle. Use 24 metres of fence for the other three sides and maximise area.

  1. Let x be each side perpendicular to the wall and y the side parallel to it. The fence constraint is 2x+y=24, not 2x+2y=24.
  2. Positive sides give 0<x<12 and y=24−2x. Area is A=24x−2x²=72−2(x−6)².
  3. This is at most 72 square metres, with equality at feasible x=6 and y=12. The derivative 24−4x has the same unique stationary input.

Use sides 6, 6 and 12 metres of fence; the maximum area is 72 square metres.

The constraint can move the optimum to a boundary

For a four-sided perimeter of 24 metres, impose 0≤x≤4 in the extended model. Find both area optima.

  1. A(x)=12x−x² is continuous on [0,4]. Its stationary solution 6 is outside the domain.
  2. A′=12−2x>0 throughout the interval, so it is increasing.
  3. The included endpoints have areas A(0)=0 and A(4)=32. The first is a collapsed shape in this extended model.

Maximum 32 square metres at x=4,y=8; minimum 0 at x=0,y=12. For positive rectangles only, exclude the zero-area minimum.

Reject a stationary endpoint of the positive model

Find the best cut for a positive box from a 12-by-12-centimetre sheet.

  1. The constraint is 0<x<6 and V=x(12−2x)².
  2. V′=12(x−2)(x−6); solution 6 is excluded, while 2 is feasible. The derivative is positive before 2 and negative after it.
  3. At x=2 the dimensions are 2 by 8 by 8 centimetres and the volume is 128. Positive volumes approach 0 at excluded boundaries.

Maximum 128 cubic centimetres at cut 2 centimetres; no attained minimum positive volume.

Use a global inequality on an unbounded domain

Minimise the perimeter of a positive rectangle with area 16 square metres.

  1. Write the sides as x and 16/x metres, with x>0. Then P=2x+32/x.
  2. For every feasible x, P−16=2(x−4)²/x≥0. Equality is possible only at x=4.
  3. The derivative is negative for 0<x<4 and positive for x>4, agreeing with the global inequality.

The 4-by-4-metre square has minimum perimeter 16 metres. There is no finite maximum perimeter.

Check the actual integer choices

For Π(q)=15q−q²−12 euros, choose an integer q from 0 to 12.

  1. The continuous identity is Π=177/4−(q−15/2)².
  2. Integers 7 and 8 are the two closest permitted inputs to 15/2; each squared difference is 1/4. Every other integer has a larger squared difference.
  3. Both give Π=177/4−1/4=44 euros. The noninteger value 15/2 is not feasible.

Both 7 and 8 items maximise integer profit at 44 euros.

The perpendicular foot can be infeasible

Find the point on 5≤x≤8,y=0 closest to (3,4), with coordinates in metres.

  1. Squared distance is S=(x−3)²+16. Its stationary solution x=3 is outside the segment.
  2. S′=2(x−3)>0 on this segment, so S is smallest at the included endpoint 5.
  3. S(5)=20 square metres; take its positive square root to recover distance.

The nearest point is (5,0), at distance √20 metres, not 20 metres.

A missing derivative is not an excluded input

Find the global optima of |x−2| on [0,5].

  1. The function is continuous and the domain is a closed bounded interval.
  2. The included corner 2 has no derivative, but is an interior candidate. Endpoints are 0 and 5.
  3. The values are 2,0,3 respectively; all other values lie between these bounds.

Minimum 0 at 2; maximum 3 at 5.

Give an improving feasible choice

Does f(x)=x have a maximum on (0,1)?

  1. For any feasible x, the number (x+1)/2 is also strictly between 0 and 1.
  2. Its value is larger, since (x+1)/2−x=(1−x)/2>0.
  3. The bound 1 is approached but excluded. Similar use of x/2 shows no minimum.

No maximum and no minimum; supremum 1 and infimum 0 are not attained.

Try it yourself

  1. Maximise the area of a positive rectangle with four-sided perimeter 20 metres.

    Show the answer and reasoning

    Use 5 by 5 metres; maximum area 25 square metres.

    The constraint gives y=10−x, 0<x<10, and A=25−(x−5)². Equality occurs at feasible x=5.

  2. In the 24-metre rectangle problem, what are the optimiser and objective units?

    Show the answer and reasoning

    The input side has units metres; the area objective has units square metres.

    The optimal input x=6 and optimal value A=36 answer different questions and cannot share a length unit.

  3. What units does A′(x) have if A is square metres and x is metres?

    Show the answer and reasoning

    Square metres per metre, equivalently metres.

    The derivative is objective change per input change. Its unit is neither automatically dimensionless nor the unit of A itself.

  4. Does A=x(12−x) attain a minimum on 0<x<12?

    Show the answer and reasoning

    No; its infimum is 0.

    Both factors are positive, so A>0. Inputs approach 0 and give areas approaching 0, while the collapsed boundary is excluded.

  5. For the box model restrict 3≤x≤5 centimetres. Find maximum and minimum volume.

    Show the answer and reasoning

    Maximum 108 at x=3; minimum 20 at x=5, in cubic centimetres.

    V′=12(x−2)(x−6)<0 on (3,5), so compare included endpoints. The unconstrained optimum 2 is infeasible.

  6. At the optimal positive box cut x=2 centimetres, what are all three dimensions?

    Show the answer and reasoning

    Height 2 centimetres and base sides 8 centimetres each.

    Each base side loses two cut lengths: 12−2·2=8. Their product 2·8·8 is 128 cubic centimetres.

  7. Find the minimum perimeter for positive rectangles with area 9 square metres.

    Show the answer and reasoning

    12 metres, attained by the 3-by-3-metre square.

    P=2x+18/x and P−12=2(x−3)²/x≥0 for every x>0. Equality is feasible only at x=3.

  8. Minimise 2x+32/x on [1,3] and find its maximum there.

    Show the answer and reasoning

    Minimum 50/3 at x=3; maximum 34 at x=1, in metres.

    The derivative 2−32/x² is negative throughout [1,3]. The stationary input 4 is outside the feasible domain.

  9. Maximise Π(q)=15q−q²−12 on the continuous interval [0,6].

    Show the answer and reasoning

    42 euros at q=6 modelled items.

    Π′=15−2q>0 there, so the included capacity boundary is best. The stationary input 15/2 cannot be chosen.

  10. Does maximising revenue always maximise profit?

    Show the answer and reasoning

    No. Profit is revenue minus cost.

    In the stated model revenue has stationary input 10, while profit has stationary input 15/2. Both are feasible in [0,12], and they optimise different functions.

  11. Why are both q=7 and q=8 optimal for the integer profit model?

    Show the answer and reasoning

    They tie at 44 euros.

    The exact identity Π=177/4−(q−15/2)² makes those two integers equally closest to the continuous vertex and every other integer worse.

  12. Can a derivative at an integer input directly apply to a function defined only on {0,1,…,12}?

    Show the answer and reasoning

    No, not under the accumulation convention used here.

    There are no arbitrarily near distinct permitted inputs. A continuous extension can guide a complete comparison but does not change the original discrete domain.

  13. Find the nearest and farthest inputs on [0,8] to (3,4), along y=0.

    Show the answer and reasoning

    Nearest x=3 at distance 4 metres; farthest x=8 at distance √41 metres.

    Compare squared distances 25,16,41 at endpoints and the stationary input. Square root preserves their ordering but changes the units and values.

  14. Is the stationary input 0 a local optimum of x³?

    Show the answer and reasoning

    No.

    Negative nearby inputs give negative values and positive nearby inputs give positive values. The zero derivative alone proves no extremum.

  15. Find attained optima and unattained bounds for f(x)=x on (0,1].

    Show the answer and reasoning

    Maximum 1 at 1; no minimum, with infimum 0.

    The right endpoint is included; the left endpoint is excluded. Every feasible x has a smaller feasible x/2.

  16. Why can f(0)=2,f(x)=x for 0<x≤1 lack a minimum on [0,1]?

    Show the answer and reasoning

    It is discontinuous at 0, and the infimum 0 is not attained.

    Its positive values approach 0; the actual endpoint value is 2. The continuity hypothesis of closed-interval attainment fails.

  17. Do plotted values at twenty evenly spaced inputs prove the maximum of a continuous function?

    Show the answer and reasoning

    No.

    An untested interval can contain a larger peak. The finite picture supports a complete candidate, sign, inequality or exhaustive discrete argument; it does not replace it.

What to carry forward

  • The objective, original constraints and feasible domain come before differentiation.
  • An optimiser is a permitted input; its optimal objective value has its own units.
  • Interior differentiable extrema have zero derivative, but zero derivatives need not be extrema and corners can be essential candidates.
  • Continuity on a nonempty closed bounded interval guarantees attained extrema; exhaustive finite candidates then support a complete comparison.
  • Derivative signs need interval-wide proofs and their continuity/differentiability hypotheses to establish global comparisons.
  • Open boundaries can give unattained infima or suprema; an open domain can also have a separately proved attained optimum.
  • Integer decisions need comparisons on the actual discrete domain, rather than an unexamined rounded continuous answer.
  • Interpret every recovered dimension and objective in the original model, including units and excluded or included boundaries.

References

Sources for the concepts and teaching approaches in this article.

  1. Calculus Volume 1 · 2016; current web editionGilbert Strang and Edwin “Jed” Hermantextbook4.7 Applied optimization problems4.3 Maxima and minimaopenstax.org
  2. Basic Analysis: Introduction to Real Analysis · HTML edition, 22 May 2026Jiří Lebltextbook4.2 Extrema and the mean value theorem (Volume I)3.3.1 Extreme value theorem (Volume I)jirka.org