The Lawfare Academy

Lawfare Group → Knowledge Institute → Lawfare Academy

← Mathematical Economics and Optimization — Bridge

Unit 3

Unconstrained optimization

Learning objectives

  • Explain unconstrained optimization in your own words.
  • Apply the principle to the worked business case.
  • Evaluate the answer and identify an assumption that could change it.

Unconstrained optimization

Set first derivatives to zero for interior candidates, then check second derivatives, boundaries, and feasibility. A stationary point can be a minimum or neither. Business objectives often include relevant constraints.

Worked example

Profit π(Q)=80Q-Q² has first derivative 80-2Q and second derivative -2.

Current on-site study

All required teaching, source summaries, worked examples and complete optional models are supplied on LawfareGroup.com. External publisher references are optional provenance or further reading. Practice and assessments remain optional. Contemporary state-law defaults are Florida; federal, historical and comparative material retain their stated scope.

Work through the reasoning

Define the function, variables, units, objective, and feasible range before differentiating or integrating. For this unit, connect the explanation of unconstrained optimization to the worked example before answering the practice question.

Check the limits

Check derivatives, boundaries, assumptions, and whether a continuous answer must be converted to discrete choices. If the source model and the practical example use different assumptions, state the difference rather than applying the formula or rule mechanically.

Apply it independently

The unconstrained maximum occurs at: Write an answer before opening the model response. Show the calculation or explain the causal or logical steps. Change one material assumption and say whether your conclusion changes. This practice is optional; you can read every part of the course without submitting work.

Extended text lesson

Continue with Prove the relevant maximum rather than stopping at a stationary point for the full worked case, source readings and optional progressive practice.

Complete current teaching

# Related rates, tangent error and a defensible maximum

This original on-site preparation extends the preserved Cedar optimization lesson. Keep its profit objective, capacity comparison and avoidable-setup decision. The additional theorems explain when conclusions follow from a derivative and when the method's hypotheses fail. Mathematical and geometric examples are separate from empirical economic evidence. Every worked and optional model needed here is supplied on site.

The objective and counterfactual come before differentiation

For Cedar's stipulated uniform-price model, revenue is R(Q)=100Q−Q² and positive-output cost is C(Q)=200+20Q. Profit is π(Q)=80Q−Q²−200. Revenue, profit, output, cash and welfare are different objectives. Their maximizing inputs need not agree. A first-order equation cannot choose which objective the decision should use or determine whether a fixed charge is avoidable.

The mathematical domain, operational feasible set and timing of the comparison must be stated. With nonnegative price, Q lies in [0,100] before capacity. Actual whole products form a discrete feasible set, while calculus typically studies a continuous relaxation. A current-week unavoidable cost belongs in both operating and closed alternatives; a genuinely avoidable opening charge may make the closed alternative different from evaluating the positive-output formula at zero. These are supplied counterfactual assumptions, not legal conclusions about actual obligations. Florida remains the contemporary state-law default for a later legal assessment, with federal and historical material separately identified.

Related rates combine a relationship with a changing path

A relation between quantities can be differentiated with respect to time when the quantities follow differentiable paths. For a product R(t)=P(t)Q(t), the time rate is R′(t)=P′(t)Q(t)+P(t)Q′(t). The first term describes a price change applied to the modeled quantity and the second an output change at the modeled price. The formula does not imply that the two changes are independent or causally identified. A demand relation can supply a link between them, but that link must be justified or explicitly stipulated.

The same reasoning applies to an implicit physical relation. A cylinder with radius r(t), height h(t) and volume V(t)=πr(t)²h(t) satisfies V′=π[2rr′h+r²h′]. A statement that only height changes would remove the radius term, but that is an additional assumption. Substitute the current dimensions after differentiating unless a dimension is known to be constant throughout the relevant path. A snapshot radius of two meters does not mean its time derivative is zero.

Related-rate answers inherit units and time conventions. If volume is in cubic meters and time in minutes, V′ is cubic meters per minute and h′ meters per minute. A quantity measured as output per week changes at products per week per week when differentiated with respect to calendar weeks. Changing notation does not remove the second time factor. A rate at one instant is not automatically the average rate over a long expansion.

Linear approximation and differentials have an error term

At a differentiable point a, the linear approximation is L(a+h)=f(a)+f′(a)h. The differential df=f′(a)dx describes that first-order linear change; the actual finite change Δf includes a remainder. Differentiability means the remainder divided by h approaches zero as h approaches zero. It does not mean that the remainder vanishes for every practical step.

For Cedar profit, direct expansion gives π(Q+h)−π(Q)=(80−2Q)h−h². The tangent estimate omits −h². At Q=20 and h=2, the predicted gain is 40×2=$80 while the actual model gain is $76. The error can be derived exactly because the function is quadratic. Calling h small without specifying the output tolerance gives no operational accuracy criterion.

If f has a bounded second derivative on the interval, |f″(x)|≤M, Taylor's first-order remainder under the usual smoothness conditions obeys |f(a+h)−f(a)−f′(a)h|≤(M/2)h². State that interval and bound. For the quadratic M=2, the bound is h² and is attained in magnitude. This mathematical approximation bound is distinct from uncertainty in estimated coefficients or an unmodeled threshold. It cannot establish empirical forecast accuracy when the underlying function is wrong.

Rolle's theorem explains a special stationary point

If f is continuous on [a,b], differentiable on (a,b), a<b and f(a)=f(b), Rolle's theorem guarantees at least one c strictly between the endpoints with f′(c)=0. The closed-interval continuity condition gives attained extrema; if the function is not constant and returns to the same endpoint height, an attained interior extreme has zero derivative. A constant function has zero derivative throughout the interior. These cases explain the existence argument.

For f(x)=x²−4x on [0,4], both endpoint values are zero, the polynomial meets the hypotheses, and f′=2x−4 vanishes at c=2. That point is a minimum, not a maximum. The theorem guarantees a stationary derivative value under its conditions; it does not determine the decision objective or automatically classify the point. For |x| on [−1,1], endpoint values are equal and continuity holds, but differentiability fails at zero. Its interior derivatives are −1 and 1 where they exist, so no point has derivative zero. The missing hypothesis is consequential.

The Mean Value Theorem links an interval average to a local rate

If f is continuous on [a,b] and differentiable on (a,b), the Mean Value Theorem guarantees a c in (a,b) such that f′(c)=[f(b)−f(a)]/(b−a). Subtract the line through the endpoints from f: the resulting function has equal endpoint values, so Rolle's theorem supplies the claim after rearrangement. This proof identifies why the slope being compared is the secant slope and why both regularity conditions matter.

The theorem does not generally tell you where c is, guarantee uniqueness or turn a time average into a probability. For Cedar profit between Q=20 and Q=30, values are $1,000 and $1,300, giving average change $30 per product. Solving 80−2c=30 gives c=25 for this polynomial. It does not say that marginal profit is 30 at both endpoints or that actual customers follow the stipulated curve.

Several useful consequences require an interval on which the hypotheses hold. A derivative identically zero implies a constant function there. A strictly positive derivative implies a strictly increasing function, while a nonnegative derivative implies nondecreasing behavior. Two functions with the same derivative differ by a constant on that interval. A bound |f′|≤K gives |f(b)−f(a)|≤K|b−a|. A jump or disconnected domain can defeat an unqualified application; check the whole intervening interval rather than only the two observed points.

Identify and classify candidates rather than trusting a root

For a differentiable interior local extremum, f′=0 is necessary, but not sufficient. A critical point can instead occur where the function exists and the derivative fails. On a closed bounded interval, a continuous objective attains a maximum and minimum; compare all interior critical points and endpoints. If formulas change at a threshold, compare the relevant boundary values and one-sided limits, with the boundary's inclusion rule recorded. An open domain may have an unattained supremum, so existence cannot be assumed.

The first-derivative test examines sign changes: positive to negative gives a local maximum, negative to positive a local minimum, and the same sign on both sides gives neither. The second-derivative test classifies a stationary point when f″ is strictly negative or positive there. A zero second derivative is inconclusive: x⁴ has a minimum at zero, −x⁴ a maximum and x³ neither, although each has first and second derivatives zero there. An inflection point requires a change in concavity, not just a zero second derivative. For x⁴, f″=12x² stays nonnegative, so zero is not an inflection point.

Strict concavity on a convex interval supplies a global argument. For Cedar π″=−2 everywhere, so its interior stationary candidate Q=40 is the unique maximizer when feasible. With capacity Q≤30, that point is unavailable and the increasing objective on [0,30] reaches its best feasible value at 30. Concavity does not eliminate the need to define the actual feasible set or compare a separately defined closed alternative.

A graph is a structured check, not independent evidence

A useful curve analysis records domain, intercepts, discontinuities, asymptotic behavior, derivative signs, concavity and candidate extrema. Plot on a scale that exposes the economically relevant region. A graphing window that excludes the capacity boundary or a setup jump can conceal the best choice. Numerical sampling can miss a narrow feature, and a visually flat graph does not prove a derivative is exactly zero.

For a rational function, first retain denominator exclusions even if common factors cancel. For a piecewise objective, determine whether a threshold creates a jump or only a kink. For an estimated economic relationship, parameter uncertainty and model adequacy remain separate from the exact geometry of the fitted formula. A graph cannot certify an unverified demand schedule, cost boundary or authority to implement a decision.

Worked investigation 1: distinguish a snapshot from a fixed dimension

In a fictional geometric example, a cylindrical vessel currently has radius 2 meters and liquid height 5 meters. Volume increases at 3π cubic meters per minute. If radius is constant, V′=πr²h′ gives h′=3/4 meter per minute. If radius instead increases at 0.1 meter per minute, the full relation gives 3π=π[2×2×0.1×5+4h′], so h′=1/4 meter per minute. The current dimensions are identical but the changing-path assumption differs. Neither calculation describes Cedar's production or customer behavior.

Optional practice 1: investigate a missing rate

The vessel radius is not known to be fixed and no measurement of r′ is available. May the analyst still report h′=3/4 as established by the snapshot? Express what the available data actually imply.

Model reasoning

No. At the stated dimensions, 3=20r′+4h′, so h′=3/4−5r′. The data identify a relation between the rates rather than one numerical height rate. A measured or justified radius rate is needed. Reporting the constant-radius answer without that assumption would convert missing information into an unacknowledged modeling choice. A more precise volume measurement alone would not identify the second unknown rate.

Worked investigation 2: an error tolerance constrains the step

For Cedar π(Q)=80Q−Q²−200, the tangent error over a step h has absolute value h² dollars under the stated unit convention. If the permitted approximation error is at most $4, then |h|≤2 is sufficient and necessary for this exact quadratic error. At Q=20, a two-unit increase has tangent gain $80 and actual gain $76; a five-unit increase has tangent gain $200 and actual gain $175. The same local derivative can support an acceptable small-step estimate and an unacceptable larger one under this tolerance.

Optional practice 2: the function is estimated

The revenue coefficient and cost slope are estimated from a small observational sample. Does the $4 calculus-error bound establish that the real profit forecast is within $4? State the distinct checks needed.

Model reasoning

No. The bound concerns approximating the specified quadratic by its tangent. Sampling error, omitted variables, unstable demand, cost definitions and operating thresholds can change the function itself. Report those empirical uncertainties separately and investigate the data, estimation procedure and process validity. A small Taylor remainder does not certify a precise real-world forecast, and an arbitrary parameter scenario table is not automatically a statistical confidence interval.

Worked investigation 3: a boundary beats the interior candidate

For Cedar's base profit, π′=80−2Q=0 gives Q=40 and π″=−2 establishes the unique unconstrained maximum. Capacity 30 excludes it. On [0,30], π′ is positive, so the feasible maximum is Q=30, with profit $1,300. At capacity 40, profit is $1,400 at Q=40. The $100 finite expansion benefit from 30 to 40 differs from the current marginal profit 20 at Q=30 multiplied by ten, which would predict $200 and ignore curvature.

Optional practice 3: a new opening alternative

The $200 fixed charge is replaced by a $1,700 setup cost avoidable by remaining closed. Keep the same revenue and variable-cost functions and capacity 40. Compare the best positive-output alternative with closing, and explain why the interior candidate does not change.

Model reasoning

Positive-output profit becomes 80Q−Q²−1700, still maximized at 40 because subtracting a constant does not change its derivative. At 40 it is 3200−1600−1700=−$100. If the supplied closed alternative truly avoids every stated cost and yields zero, closing dominates. The legal or operational ability to avoid a real obligation is not established by the mathematical assumption; it would require separate evidence. The conditional output optimum and the opening decision are distinct.

Optional integrated optimization audit

A fictional memo says: “The derivative is zero at an answer, so it is a global maximum. The Mean Value Theorem makes every local marginal value equal to the observed average. A continuous cost is differentiable at every threshold. An optimal quantity beyond capacity can be rounded down without re-evaluating the objective.” Rewrite these claims and apply the revised method to Cedar with capacity 30.

Complete model

A zero derivative identifies an interior stationary candidate under differentiability, not its classification or global status. Compare derivative signs, curvature and all feasible boundaries and thresholds. The Mean Value Theorem guarantees at least one interior point whose derivative equals the interval's average, only under its continuity/differentiability hypotheses; it does not make every derivative equal that average. Continuity can coexist with a kink, so a threshold needs one-sided analysis. Capacity changes the feasible domain; re-solve or compare the actual feasible alternatives rather than rounding an unrelated infeasible result mechanically. For Cedar, the stationary 40 is excluded by capacity 30, profit rises throughout [0,30], and Q=30 gives the feasible maximum $1,300 under the stipulated base cost and selling assumptions. No empirical or professional approval follows from this classroom optimization.

Explicit optional rubric: 20 points

  • Four points for a defined objective, units, feasible set and opening counterfactual.
  • Four points for related-rate dependencies and a properly bounded tangent approximation.
  • Four points for correct Rolle/Mean Value hypotheses and interpretation.
  • Four points for complete stationary, endpoint, threshold and concavity reasoning.
  • Four points for substantive revisions and separation of model validity, empirical evidence and authority to act.

Optional source summary

OpenStax's Mean Value Theorem section states Rolle's and Mean Value theorems and explains why continuity and differentiability hypotheses matter. It is optional further reading. The original related-rate calculations, Cedar interpretations, changed-fact models and complete optional audit above provide the required on-site preparation in this complete on-site course.

  • https://openstax.org/books/calculus-volume-1/pages/4-4-the-mean-value-theorem

Complete cumulative investigation and rubric

Apply the idea

Profit π(Q)=80Q-Q² has first derivative 80-2Q and second derivative -2.

The unconstrained maximum occurs at: Explain your reasoning, then identify one changed fact that could alter the conclusion.

Read the worked reasoning

Q=40. The derivative vanishes at 40 and the negative second derivative establishes concavity. In an independent response, state the given facts, identify the governing relationship, work through the calculation or comparison, and distinguish the conclusion from assumptions that still need evidence.

Check understanding

The unconstrained maximum occurs at:

  1. Q=0
    Feedback

    This alternative overlooks the relevant mechanism. The derivative vanishes at 40 and the negative second derivative establishes concavity.

  2. Q=40
    Feedback

    The derivative vanishes at 40 and the negative second derivative establishes concavity.

  3. Q=80
    Feedback

    This alternative does not follow from the stated facts. The derivative vanishes at 40 and the negative second derivative establishes concavity.

Further reading

All required teaching, source summaries, worked examples and complete optional models are supplied on LawfareGroup.com. External publisher references are optional provenance or further reading. Practice and assessments remain optional. Contemporary state-law defaults are Florida; federal, historical and comparative material retain their stated scope.

My learning →