The Lawfare Academy

Lawfare Group → Knowledge Institute → Lawfare Academy

← Mathematical Economics and Optimization — Bridge

Unit 1

Functions, limits, and economic models

Learning objectives

  • Explain functions, limits, and economic models in your own words.
  • Apply the principle to the worked business case.
  • Evaluate the answer and identify an assumption that could change it.

Functions, limits, and economic models

A function maps inputs to outputs under explicit assumptions. A limit describes behavior as an input approaches a value. Economic models use these tools to express relationships, not to guarantee that reality is smooth.

Worked example

Revenue R(Q)=100Q-Q² represents a particular linear-demand model.

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 functions, limits, and economic models 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

What must be checked before using it? 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 Specify the economic model before solving its equation for the full worked case, source readings and optional progressive practice.

Complete current teaching

# Functions, inverses and limits before an economic recommendation

This original on-site mathematical preparation extends the preserved Cedar Workshop lesson. The workshop's stipulated inverse demand P(Q)=100−Q and revenue R(Q)=100Q−Q² remain the applied reference case. All quantities are fictional. A function can be mathematically well defined without being an empirically justified demand model. Required explanations and complete optional models are supplied here; publisher references at the end are optional.

A function includes its allowed inputs

A function assigns exactly one output to each input in its domain. Its range is the set of outputs actually attained. A formula alone does not settle either set in an application. The polynomial R(Q)=100Q−Q² is defined for every real Q algebraically. If Q is nonnegative weekly production and the modeled price must also be nonnegative, the relevant domain is [0,100]. Capacity or integer production can narrow that set again. An optimization result derived on all real numbers does not become feasible merely because it solves an equation.

Distinguish the independent variable, its unit and the reporting period. Here Q is products per week and P is dollars per product. R is dollars per week under the stipulated uniform-price sales model. A derivative with respect to output is different from a derivative with respect to calendar time. Converting Q from individual products to hundreds changes the numerical coefficients while preserving the underlying quantity relationship if the conversion is performed consistently.

The vertical-line test concerns whether a graph gives at most one output for each input. It is not a test of whether a relationship is causal. A horizontal line can intersect the graph of a perfectly valid function several times; that concerns whether the function has a single-valued inverse on the chosen domain. Graph axes and domain restrictions are part of the problem, not decorations added after solving it.

Function families encode different assumptions

A polynomial is a sum of terms with nonnegative integer powers of the input. A linear model assumes constant additive change; a quadratic can represent curvature, but its coefficients must be justified for the application. A rational function is a quotient of polynomials and excludes zeros of its denominator. A root function requires an admissible radicand: √Q is real for Q≥0. An absolute-value function can represent distance or a piecewise relationship with a kink.

An exponential Ae^(kt) represents a constant proportional rate in its specified time scale. A logarithm ln x reverses exponentiation and has real domain x>0. In an economic application, taking the log of a ratio Q/Q₀ with positive reference Q₀ makes the argument dimensionless. Taking a log of a numerical measurement without recording its unit and reference convention can conceal the meaning of an intercept or percentage interpretation. A logarithmic transformation changes the modeled scale; it does not turn an unverified causal assumption into evidence.

A piecewise function uses different formulas on explicitly stated sets. Each boundary needs a rule about which formula supplies its value. A setup fee at any positive output can create a discontinuity at zero, while an overtime schedule can be continuous with a change in slope. These are different structures. A smooth polynomial fitted across a real operating threshold can miss the decision that matters most.

Trigonometric preparation and restricted inverse ranges

Radians measure an angle as arc length divided by radius, so a full revolution is 2π radians. On the unit circle, cos θ is the horizontal coordinate and sin θ the vertical coordinate. They satisfy sin²θ+cos²θ=1. Tangent is sin θ/cos θ where the denominator is nonzero. Sine and cosine are periodic with period 2π, while tangent has period π. Their ordinary calculus derivative formulas use radians; a degree-based input requires a conversion factor.

A periodic function such as A+B sin(2πt/T+φ) can represent a stipulated seasonal component with period T in the units of t. A is the midline, |B| the amplitude and φ a phase parameter. These quantities have distinct effects on the curve. The existence of a convenient sine formula does not establish that Cedar sales are seasonal, that the period remains fixed or that the same pattern can be forecast indefinitely.

Periodic trigonometric functions are not one-to-one on their full domains. A conventional real arcsine uses inputs in [−1,1] and outputs in [−π/2,π/2]. Arccosine uses that same input interval and outputs in [0,π]; arctangent uses all real inputs and outputs in (−π/2,π/2). These branch choices make inverse functions single-valued. The notation sin⁻¹x means arcsin x in this convention, not 1/sin x. Inverting an economic relationship similarly requires an explicit branch when several inputs produce the same output.

Build inverse and composite functions with their domains

For a one-to-one function f on domain D with range S, f⁻¹ reverses its input/output association: f⁻¹(f(x))=x for x in D. Its domain is S. A reciprocal 1/f(x) instead divides one by the output and excludes zeros of f; it does not undo the original function. For Cedar price P(Q)=100−Q on [0,100], the inverse is Q(P)=100−P on [0,100], whereas the reciprocal price is 1/(100−Q) and is undefined at Q=100.

Revenue is not one-to-one on Cedar's full price-feasible domain. R(20)=R(80)=1600. Solving y=100Q−Q² gives Q=50±√(2500−y), with 0≤y≤2500 for that domain. Restricting Q to [0,50] selects the minus branch; restricting it to [50,100] selects the plus branch. A revenue target alone does not identify which branch is feasible or profitable. The restriction must come from the question or from justified decision conditions.

Composition f∘g applies g first and then f. Its domain requires both that g(x) exists and that its output belongs to f's domain. For f(u)=√u and g(x)=x−4, f(g(x))=√(x−4) requires x≥4. Reversing the order gives g(f(x))=√x−4 with domain x≥0, a different function. In an economic model, composing cost with output over time likewise requires the output path to stay within the cost model's valid range. Algebraic substitution cannot remove that operating restriction.

A limit is a claim about nearby values

Writing lim as x approaches a of f(x)=L means outputs approach L when admissible inputs approach a closely enough, without requiring x=a. The value f(a) can be absent or different. A table of a few nearby values can suggest a candidate limit but cannot prove it for every sufficiently close input. A graph drawn at a coarse resolution can also hide an oscillation, hole or jump.

The finite-limit definition makes the precision claim explicit. For every requested output tolerance ε>0, there must be an input tolerance δ>0 such that 0<|x−a|<δ implies |f(x)−L|<ε for inputs in the relevant domain. For f(x)=3x+5 as x approaches 10, L=35 and |f(x)−35|=3|x−10|. Choosing δ=ε/3 establishes the implication. The choice can depend on the function, point and requested precision. This is a mathematical guarantee for a specified function, not a statistical confidence statement about measured economic data.

At a boundary, state the direction and domain. For a nonnegative-output model, approaching zero from the right is meaningful without inventing negative production. A two-sided limit at an interior point exists only when the left and right limits agree. If one direction diverges or gives a different finite result, a single two-sided finite limit does not exist.

Calculate limits using justified transformations

When finite limits exist, limits of sums, constant multiples and products follow their corresponding arithmetic operations. A quotient can be evaluated from numerator and denominator limits only when the denominator's limit is nonzero. Polynomials are continuous, so direct substitution evaluates their finite-point limits. A rational function permits the same substitution wherever its denominator remains nonzero. Expressions of the form 0/0 do not have the numerical value zero or one; they signal that direct quotient substitution has not resolved the limit.

For (x²−9)/(x−3) as x approaches 3, the original expression excludes x=3. At nearby x≠3, factoring yields x+3, so the limit is 6. That establishes nearby behavior without defining the original function at 3. For [√(x+9)−3]/x as x approaches zero, multiplying numerator and denominator by the conjugate gives 1/[√(x+9)+3] for admissible x≠0, so the limit is 1/6. The original domain is x≥−9 with x≠0; cancellation or rationalization must not silently erase it.

The squeeze principle can establish a limit when direct formula simplification is unhelpful. Since −1≤sin(1/x)≤1 for x≠0, the product x²sin(1/x) lies between −x² and x². Both bounds approach zero as x approaches zero, so the middle expression does too. In contrast, sin(1/x) alone has no limit there: different sequences of inputs approach zero while their sine values remain 1 or −1. A few rounded table entries cannot distinguish these cases reliably.

Infinite behavior and end behavior are distinct

An infinite one-sided limit describes unbounded output as an input approaches a finite point; it is not a finite real value of the function. For 1/x, approaching zero from the right gives positive unbounded behavior and from the left negative unbounded behavior. For 1/x², both directions give positive unbounded behavior. A vertical asymptote is a property of the specified function and does not mean that a real economic quantity can actually become infinite.

A limit as x tends to infinity concerns large inputs rather than inputs near a finite point. For (3x²+2)/(x²+1), divide numerator and denominator by x² to obtain a limit of 3 as x grows positively without bound. Terms 2/x² and 1/x² disappear in that limit. When polynomial degrees differ, compare the dominant terms and signs; a finite horizontal asymptote does not imply that the function reaches it at any finite input. Before applying such behavior economically, check whether the model remains meaningful at such large outputs.

Continuity combines value and nearby behavior

At an interior point a, continuity requires f(a) to be defined, a finite limit to exist as x approaches a and that limit to equal f(a). A removable discontinuity can be repaired mathematically by assigning the limiting value at a missing point, but that repair is a new definition. A genuine operating threshold should not be redefined merely to make differentiation convenient.

For a stipulated cost C(Q)=200+20Q when 0≤Q≤20 and C(Q)=400+20Q when Q>20, the value and left limit at 20 are 600 while the right limit is 800. The two-sided limit does not exist and the function jumps there. A different overtime model can be continuous but change slope: C(Q)=200+20Q up to 20 and C(Q)=600+30(Q−20) above 20 has matching boundary value 600. It is continuous at 20, but its two one-sided marginal rates differ. Continuity does not guarantee differentiability.

The intermediate value theorem says a continuous function on a closed interval takes every value between its endpoint values. It can establish that a target is attained somewhere, not that the input is unique or that a numerical algorithm finds it. The extreme value theorem guarantees that a continuous real function on a closed bounded interval attains a maximum and minimum. Removing continuity or allowing an open/unbounded domain removes that general guarantee. A supremum can exist without an attainable maximizer; for f(x)=x on (0,1), values approach 1 but never equal it.

Worked investigation 1: distinguish a missing index from a valid observation

A fictional performance index is I(q)=(q²−16)/(q−4), with a domain excluding q=4. For q≠4, I(q)=q+4 and the limit as q approaches 4 is 8. That does not establish a recorded index value at q=4. If an analyst explicitly defines a continuous extension with I(4)=8, the extended mathematical function is continuous there. Whether the extension is suitable for a real measurement depends on why the original ratio was undefined and what the index represents.

Optional practice 1: change the recorded value

The index is expressly defined at q=4 as 9. What is its limit and is it continuous? Which statement in the earlier interpretation changes?

Model reasoning

Nearby values are unchanged, so the limit remains 8. The newly assigned value is 9, making the function discontinuous at 4. The statement that there was no value at the point must change, but the earlier calculation of nearby behavior does not. Setting the value equal to a preferred target does not alter what surrounding inputs imply. If the value represented an observed exceptional payment, smoothing it away would discard the event rather than explain it.

Worked investigation 2: a revenue inverse needs a branch

For Cedar revenue on [0,100], the target 1600 gives Q²−100Q+1600=0, or (Q−20)(Q−80)=0. Both 20 and 80 satisfy the target. With capacity Q≤30, only 20 is feasible. The calculation does not imply that 20 maximizes profit or that buyers will actually follow the stipulated demand equation. It solves a target-revenue question on a narrowed domain.

Optional practice 2: change capacity and the target

Capacity becomes 60 and the revenue target is 2400. Find the admissible solutions and explain whether the new capacity identifies a unique branch.

Model reasoning

Solving Q²−100Q+2400=0 gives (Q−40)(Q−60)=0. Both 40 and 60 lie within [0,60], so capacity does not identify a unique solution. The function rises then falls within that domain. Additional information about the intended operating branch, costs or objective is needed to choose between the target-attaining quantities. A numerical inverse routine returning one root has not resolved that ambiguity.

Worked investigation 3: a threshold blocks an existence argument

For the jump-cost function above, C(19)=580 and C(21)=820. A manager claims that every cost between these values must occur at some output between 19 and 21. The intermediate value theorem cannot justify the claim because continuity fails at 20. In fact $700 is not attained there: on the lower branch costs are at most 600, and immediately above 20 the higher branch exceeds 800. The endpoint comparison alone cannot fill the gap.

Optional practice 3: a continuous alternative

Replace the upper branch with C(Q)=600+30(Q−20) for Q>20. Does the intermediate value theorem now guarantee a cost of $630 between outputs 19 and 21? Find an input and state the remaining business boundary.

Model reasoning

The branches now agree at 20 and the function is continuous on [19,21], with endpoint costs 580 and 630. The target 630 is attained at Q=21; an interior target such as 615 would occur at Q=20.5. If actual production is restricted to whole jobs, the continuous theorem applies to the relaxed mathematical function, not automatically to the discrete feasible set. Recheck the target against admissible integer quantities before proposing an implementable output.

Optional integrated model audit

A fictional memo says: “An inverse is always a reciprocal. The revenue target 1600 uniquely identifies 20 jobs. A setup rule costing 200 at all positive output and zero at zero is continuous because its positive branch is a line. A table of five values proves a limit.” Rewrite these four claims with definitions, domains and evidence boundaries.

Complete model

An inverse reverses a one-to-one input/output association on a specified domain; a reciprocal divides one by an output and excludes its zeros. Cedar revenue at 1600 admits both 20 and 80 on [0,100]; 20 becomes unique only after a suitable branch or capacity restriction such as [0,30]. The setup rule has right-hand limit 200 at zero but value zero, so it is not right-continuous there under that definition. A finite numerical table can suggest nearby behavior but does not establish the universal tolerance condition for a limit. Each revised claim must identify the actual mathematical domain and avoid treating a stipulated classroom function as empirical evidence about customers, costs or feasible operations.

Explicit optional rubric: 20 points

  • Four points for correct function, inverse, reciprocal and composition domains.
  • Four points for complete algebraic solutions and branch/capacity restrictions.
  • Four points for distinguishing limits, assigned values, continuity and differentiability.
  • Four points for justified existence/attainment arguments rather than an unsupported table or graph claim.
  • Four points for substantive revisions and the distinction between a continuous classroom model and an implementable, empirically supported economic decision.

Optional source summaries

OpenStax's inverse-functions section discusses one-to-one restrictions and inverse relationships. Its limit-laws section explains algebraic limit rules and techniques such as factoring, conjugates and comparison. These are optional further references. The original economic interpretations, fictional cases and complete optional models required for this preparation are supplied on site in this complete on-site course.

  • https://openstax.org/books/calculus-volume-1/pages/1-4-inverse-functions
  • https://openstax.org/books/calculus-volume-1/pages/2-3-the-limit-laws

Complete cumulative investigation and rubric

Apply the idea

Revenue R(Q)=100Q-Q² represents a particular linear-demand model.

What must be checked before using it? Explain your reasoning, then identify one changed fact that could alter the conclusion.

Read the worked reasoning

Whether the modeled relationship fits the relevant range. Mathematical correctness does not establish empirical fit. 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

What must be checked before using it?

  1. Whether the modeled relationship fits the relevant range
    Feedback

    Mathematical correctness does not establish empirical fit.

  2. Only whether the notation looks advanced
    Feedback

    This alternative does not follow from the stated facts. Mathematical correctness does not establish empirical fit.

  3. That all demand is quadratic
    Feedback

    This alternative overlooks the relevant mechanism. Mathematical correctness does not establish empirical fit.

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 →