The Lawfare Academy

Lawfare Group → Knowledge Institute → Lawfare Academy

← Back to program

← Mathematical Economics and Optimization — Bridge

Unit 2

Derivatives and marginal change

Learning objectives

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

Derivatives and marginal change

A derivative gives an instantaneous rate of change with units. For R(Q)=100Q-Q², marginal revenue is 100-2Q. Finite changes approximate the derivative only over sufficiently small intervals.

Worked example

At Q=20, marginal revenue is 60 monetary units per additional unit locally.

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 derivatives and marginal change 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

Marginal revenue at Q=30 is: 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 Derive marginal change and measure its approximation error for the full worked case, source readings and optional progressive practice.

Complete current teaching

# Derivatives, composite rules and the meaning of a marginal change

This original on-site preparation extends the preserved Cedar Workshop derivative lesson. Keep its derivation of R′(Q)=100−2Q, exact one-unit change and elasticity interpretation. The additional mathematical families below are preparation, not evidence that Cedar demand is trigonometric, exponential or implicitly defined. All cases are fictional and every required explanation and optional model is supplied here.

A derivative is a limit with a domain

At an interior point a, f′(a) is the finite two-sided limit of [f(a+h)−f(a)]/h as h approaches zero, if that limit exists. The quotient is defined only for h≠0 with admissible a+h. It describes an average change over an interval before the limiting operation. A derivative may fail to exist at a jump, a corner, a vertical tangent or an oscillatory point. Having a formula on either side does not automatically give one derivative at the point.

The tangent line at a differentiable point is y=f(a)+f′(a)(x−a). It is a local linear model, not generally a second line of actual observations. For f(x)=x², the difference quotient is [(a+h)²−a²]/h=2a+h, so f′(a)=2a. The exact change is 2ah+h² while the tangent prediction is 2ah. The missing h² term explains approximation error. The derivative has units of output per unit of input. A cost-output derivative and a cost-time derivative can have different units even when both are called a rate.

Differentiability implies continuity. To see the connection, write f(a+h)−f(a) as its difference quotient times h; a finite quotient limit times h→0 forces the output difference to zero. The converse fails: |x| is continuous at zero but has left derivative −1 and right derivative 1. At a domain endpoint, a one-sided derivative may be appropriate; identify it rather than claiming an unrestricted interior derivative.

Rules follow the local change being combined

The derivative of a constant is zero. Multiplying a function by a fixed constant multiplies its derivative, and the derivative of a finite sum is the sum of its derivatives where these derivatives exist. For an integer n, the power rule gives d(xⁿ)/dx=nx^(n−1) on its differentiable domain. It follows from expanding the difference quotient for positive integers and extending through reciprocal rules for negative integers. For a general real exponent, the familiar formula is valid for positive x; extensions to other real inputs require the expression and derivative to be defined there.

For a product u(x)v(x), the rule is u′v+uv′. Both factors can change, so differentiating only one loses a first-order contribution. Algebraically add and subtract u(a+h)v(a) in the product difference; the two resulting differences approach the two rule terms after division by h. For Cedar R(Q)=QP(Q), this yields R′=P+QP′. With P=100−Q, marginal revenue is 100−2Q, not simply the current price 100−Q.

For a quotient u/v with v≠0, differentiation gives (u′v−uv′)/v². The denominator restriction belongs to the original function as well as the derivative formula. For average cost A(Q)=C(Q)/Q with Q>0, A′(Q)=[QC′(Q)−C(Q)]/Q². Thus the sign depends on whether marginal cost is above or below average cost, under the same cost definition. A falling average does not require falling total cost.

The chain rule connects two local responses

For a composition f(g(x)), the derivative is f′(g(x))g′(x), assuming g is differentiable at the input and f at the relevant intermediate value. The outside response is evaluated at the inside value. For [3x²+1]⁴, the outside derivative is 4[3x²+1]³ and the inside derivative is 6x, giving 24x[3x²+1]³. Omitting the inside derivative changes both the magnitude and possible zeros of the result.

The rule is more than cancellation of symbols. A differentiable function is locally a linear change plus an error negligible relative to its input change. Let Δg=g(x+h)−g(x). The outside change is f′(g(x))Δg plus a remainder negligible relative to Δg. The inside change is g′(x)h plus a remainder negligible relative to h. Since a differentiable g has Δg bounded by a constant times |h| nearby, the combined remainder is negligible relative to h, leaving the product rule for the two local rates. This reasoning also handles cases where Δg is zero for some nearby inputs, where a naive division by Δg would be invalid.

For several nested functions, apply the same logic at every layer. The derivative of ln(1+e^(2x)) is [1/(1+e^(2x))]e^(2x)×2. If a product contains a composition, use both product and chain rules; naming the function's structure before operating avoids treating all expressions as powers.

Trigonometric derivatives require radians

For radian input, the limits sin h/h→1 and (cos h−1)/h→0 lead, using angle-addition identities, to (sin x)′=cos x and (cos x)′=−sin x. The first limit can be established from unit-circle geometric bounds and the squeeze principle near zero. This is why the standard formulas use radians. If x is a degree measure, converting to radians introduces the factor π/180.

The quotient and reciprocal rules give (tan x)′=sec²x, (cot x)′=−csc²x, (sec x)′=sec x tan x and (csc x)′=−csc x cot x on their original real domains. For a composite sin u(x), multiply cos u by u′; for cos u, multiply −sin u by u′. A seasonal model A+B sin(2πt/T+φ) has time derivative B(2π/T)cos(2πt/T+φ). Its period and time units determine the scale of the rate. This mathematical derivative does not validate the seasonal model or establish an economic effect.

Inverse derivatives depend on a valid local inverse

If a differentiable one-to-one function f has a differentiable local inverse at y=f(x) and f′(x)≠0, differentiating f(f⁻¹(y))=y gives (f⁻¹)′(y)=1/f′(f⁻¹(y)). The original derivative is evaluated at the corresponding original input. A zero derivative can make the inverse derivative fail to be finite. For f(x)=x³, the inverse cube-root function exists on the real line, but its derivative is not finite at zero. Invertibility alone does not guarantee a finite derivative at every output.

Using the principal real inverse branches, d(arcsin x)/dx=1/√(1−x²) and d(arccos x)/dx=−1/√(1−x²) for |x|<1. The arctangent derivative is 1/(1+x²), and the principal arccotangent on (0,π) has derivative −1/(1+x²). For the conventional principal arcsecant and arccosecant branches, derivatives are respectively 1/[|x|√(x²−1)] and −1/[|x|√(x²−1)] for |x|>1. Branch and endpoint restrictions matter; a symbolic denominator of zero is not an ordinary real derivative.

To derive the arcsine rule, set y=arcsin x on its principal interval, so sin y=x. Implicit differentiation gives cos y·y′=1. On the interior principal branch cos y=√(1−x²)>0, yielding the formula. Choosing a different sign for the square root without checking the branch would give the wrong derivative.

Exponential and logarithmic changes

The defining local growth property of e^x gives its derivative e^x. For a positive base a, a^x=e^(x ln a), so its derivative is a^x ln a. A composite e^u has derivative e^u u′. The logarithm derivative follows by inverse differentiation: (ln x)′=1/x for x>0; (log_a x)′=1/(x ln a) for a>0 and a≠1. For a nonzero differentiable u, d ln|u|/dx=u′/u on each interval where u stays nonzero. This does not extend a logarithm across its excluded zeros.

Logarithmic differentiation can simplify positive products with variable exponents. For y=x^x with x>0, ln y=x ln x, so y′/y=ln x+1 and y′=x^x(ln x+1). Applying the constant-exponent power rule as if the exponent were fixed would miss a term. For y=u(x)^v(x) with u>0, differentiate ln y=v ln u, then multiply the resulting relative derivative by y. Record the positive-base assumption before taking logarithms.

Implicit differentiation preserves the relationship

An equation F(x,y)=0 can define a local branch y(x) without a convenient explicit expression. Differentiate each term with respect to x, treating y as a function of x. For x²+y²=25, the result is 2x+2yy′=0 and y′=−x/y where y≠0. At (3,4), the slope is −3/4. At (5,0), division by y is invalid; the circle has a vertical tangent and does not have a finite y-as-a-function-of-x derivative at that branch endpoint. That does not mean the point fails to lie on the circle.

More generally, where F is sufficiently smooth and F_y≠0, a local derivative is y′=−F_x/F_y. This formula's denominator condition is part of the local-branch argument. For a second derivative, differentiate the first implicit relation again and include every chain/product term. From x²+y²=25, differentiating x+yy′=0 gives 1+(y′)²+yy″=0. At (3,4), y″=−[1+9/16]/4=−25/64. Repeated differentiation without the y′ terms would incorrectly treat y as constant.

Marginal, average and elastic responses answer different questions

A marginal derivative is local within a specified function. A finite one-unit change can be computed exactly when that function is known. For Cedar revenue at Q=20, R′=60, but R(21)−R(20)=59. The difference is a curvature correction, not an arithmetic contradiction. Larger changes can create larger approximation error, and a threshold can make even a nearby smooth approximation inappropriate.

For a positive quantity response Q(P), signed point price elasticity is Q′(P)P/Q(P). It compares infinitesimal proportional changes rather than dollar-per-unit slopes. With Q=100−P, elasticity at P=60 is −60/40=−1.5. A sufficiently small 1 percent price rise predicts approximately a 1.5 percent quantity fall in this stipulated model, not an exact forecast for a large change. At Q=0 the formula is undefined. Observational estimation error and finite-change approximation error are distinct and need different evidence.

Worked investigation 1: compose a production path and cost

In a separate fictional cumulative-production example, Q(t)=10+2t products completed by day t and C(Q)=150+12Q+0.25Q² dollars. At t=3 days, Q=16, marginal cost is C′=12+0.5Q=20 dollars per product, and Q′=2 products per day. The chain rule gives dC/dt=40 dollars per day. This is a rate of accumulated cost, not the total cost at day three. The total there is 150+192+64=$406.

Optional practice 1: change the path

Use Q(t)=10+t² with the same cost function. Recalculate the output, cost rate and total at day three, and explain which model component changed.

Model reasoning

At t=3, Q=19 and Q′=6 products/day. Marginal cost is 12+0.5×19=$21.50 per product, so dC/dt=21.5×6=$129/day. Total modeled cost is 150+228+0.25×361=$468.25. The output path changed both the current quantity at which marginal cost is evaluated and the production rate multiplying it. Reusing either of the old factors would not represent the new composition. These are cumulative-production assumptions, not Cedar's weekly output-rate convention.

Worked investigation 2: an implicit response with a checked point

A separate stipulated relation is Q²+PQ+P²=700. The point (Q,P)=(10,20) satisfies it because 100+200+400=700. Differentiating with respect to Q gives 2Q+P+QP′+2PP′=0. Hence P′=−(2Q+P)/(Q+2P), and at that point P′=−40/50=−0.8 dollars per additional unit under the declared coordinate conventions. A derivative computed at a point not on the relation would not describe its local response there.

Optional practice 2: reverse the direction correctly

At that same point, calculate the local inverse derivative dQ/dP. Explain why it is not the reciprocal of the price level and state a condition under which taking a reciprocal derivative would fail.

Model reasoning

Because P′=−0.8 is nonzero on a valid local branch, dQ/dP=1/(−0.8)=−1.25 in the inverse units. The reciprocal price 1/20 is a different quantity and does not undo the input/output response. A zero original derivative, failure of local one-to-one behavior or lack of a differentiable branch defeats the finite reciprocal-derivative argument. Check the relation and branch before applying the inverse formula.

Worked investigation 3: combine product and exponential rules

For the mathematical preparation function f(q)=q e^(−0.1q), the product and chain rules give f′(q)=e^(−0.1q)(1−0.1q). At q=5 this is 0.5e^(−0.5), approximately 0.303265. Differentiating only q or only the exponential would omit a first-order contribution. A zero derivative at q=10 is a stationary candidate; identifying a maximum still requires a domain and the later unit's classification argument. This function is not an estimated Cedar profit curve.

Optional practice 3: use an inverse-trigonometric domain

Differentiate g(q)=arcsin(q/2), identify its real function domain and the domain of its finite derivative, and evaluate the derivative at q=0. What happens at q=2?

Model reasoning

The function is real on [−2,2]. Its derivative on the open interval is (1/2)/√(1−q²/4)=1/√(4−q²), giving 1/2 at zero. At q=2, the function value exists, but the denominator tends to zero and no finite ordinary two-sided derivative on an open neighborhood is available. Existence of a function value and existence of a finite derivative are different claims.

Optional integrated derivative audit

A fictional memo differentiates Q(100−Q) as 100−Q, differentiates ln(3Q+1) as 1/(3Q+1), reports the derivative of |Q−5| at Q=5 as zero, and describes a derivative-based one-unit prediction as an exact guaranteed sale. Correct each statement and connect the corrections to the original relationship, domains and evidence.

Complete model

The revenue derivative is 100−2Q because both factors change; the product rule accounts for the modeled effect of price on existing units. The logarithmic derivative is 3/(3Q+1) on Q>−1/3 because the inside derivative is 3. The absolute-value function has one-sided derivatives −1 and 1 at 5, so no ordinary derivative there; setting it to zero discards the kink. A derivative is a local rate within a stipulated differentiable model. A finite unit change can differ, and neither the derivative nor its approximation guarantees an actual transaction or validates the empirical demand assumption. The correction needs a revised number or conclusion, not a vague qualification beneath the original incorrect claim.

Explicit optional rubric: 20 points

  • Four points for a valid difference-quotient/domain interpretation and derivative units.
  • Four points for correct product, quotient and composite structures with all required factors.
  • Four points for inverse/implicit branch and denominator conditions, including a checked point.
  • Four points for endpoint, corner and finite-change distinctions.
  • Four points for substantive revisions and separation of mathematical model response from empirical prediction or operational authority.

Optional source summary

OpenStax's chain-rule section explains differentiation of composite functions and its combination with other rules. It is optional further reading. The original calculations, branch checks, economic interpretations and complete practice models above provide the required on-site preparation in this complete on-site course.

  • https://openstax.org/books/calculus-volume-1/pages/3-6-the-chain-rule

Complete cumulative investigation and rubric

Apply the idea

At Q=20, marginal revenue is 60 monetary units per additional unit locally.

Marginal revenue at Q=30 is: Explain your reasoning, then identify one changed fact that could alter the conclusion.

Read the worked reasoning
  1. Differentiate to obtain 100-2Q, then substitute Q=30. 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

Marginal revenue at Q=30 is:

  1. 70
    Feedback

    This alternative does not follow from the stated facts. Differentiate to obtain 100-2Q, then substitute Q=30.

  2. 100
    Feedback

    This alternative overlooks the relevant mechanism. Differentiate to obtain 100-2Q, then substitute Q=30.

  3. 40
    Feedback

    Differentiate to obtain 100-2Q, then substitute Q=30.

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 →