Lawfare Academy

Mathematical Economics and Optimization — Bridge · Chapter 4 of 4

Integrate marginal effects and verify numerical accumulation

Return to the linked course unit →

DEVELOPED COURSE TEXT

Integrate marginal effects and verify numerical accumulation

Recover accumulated change from a rate

IfC prime(q)is marginal cost, integrating it over an output interval gives the change in total cost, C(b)-C(a). It does not determine the fixed integration constant without an initial cost value. For a separate economic model with marginal cost 20+q, total variable cost from 0 toq is 20 q+q squared/2. A fixed setup chargeF must be added separately. Confusing a marginal function with a total function changes both units and the economic decision.
The Fundamental Theorem of Calculus connects differentiation and accumulation under its conditions. An antiderivative provides a way to evaluate a definite integral, but the definite integral's interpretation depends on the modeled rate and bounds. A negative rate over part of an interval subtracts from net accumulation. For discrete jobs, a sum of finite increments may be more appropriate;the continuous integral is a model approximation, not a rule that jobs are divisible.

Distinguish revenue, benefit and surplus areas

Let marginal willingness to pay be 100-q and marginal cost 20+q. Efficient output in this separate model solves 100-q=20+q, givingq 40. Total willingness to pay is integral 0 to 40(100-q)dq=3200;total variable cost is 20×40+40 squared/2=1600. Net modeled surplus is 1600. At uniform price 60, firm revenue is 60×40=2400, not the 3200 area under demand. The remaining 800 is consumer surplus under the specified willingness-to-pay interpretation.
The cost area 1600 leaves producer surplus 800 at that price before fixed cost. These quantities reconcile:consumer 800+producer 800=total 1600. They are not complete ethical or distributional judgments. Willingness to pay depends on resources, and omitted external effects can change the relevant marginal-cost curve. The mathematical bridge teaches what each area measures and why an integral cannot be relabeled profit without checking the underlying object.

Integrate a continuously timed cash stream

A constant fictional cash rate 10 per year received continuously over three years, discounted continuously atr.1, gives present value integral 0 to 3 10 exp(-.1 t)dt=10[1-exp(-.3)]/.1≈25.918178. This differs from three end-of-year payments of 10, whose 10 percent annual-compounded present value is 24.868520. Both timing and rate convention changed;do not attribute the entire difference to one factor or mix the formulas silently.
For a growing continuous rate 10 exp(gt), the discounted integrand is 10 exp[-(r-g)t]. Its integral is 10[1-exp(-(r-g)T)]/(r-g)whenr differs fromg. Asr approachesg, the limit is 10 T, which follows by the exponential limit or direct integration of a constant. A formula with a zero denominator should trigger a limit argument, not an undefined spreadsheet cell reported as an economic impossibility.

Use numerical integration as an independently checkable approximation

A trapezoidal rule divides the interval and averages endpoint rates within each subinterval. It is exact for a linear marginal function on each interval, but approximate for a curved discount stream. With unit steps, the discounted 10 rate at 0,1,2,3 yields a trapezoidal estimate about 25.939772, slightly above the exact 25.918178 because the exponential curve is convex. Halving the step reduces this approximation error. More decimal places in an inaccurate discretization do not create a better model.
Connect this to the previous capacity problem:integratinglambda(S)=70-1.5 S from 40 to 45 gives exact resource value 31.25. The derivative describes a local marginal value and the integral accumulates its changing value over a finite expansion. A complete application states the rate, units, bounds, initial value if needed, and numerical or symbolic verification. This closes the bridge from functions and limits through optimization to economically meaningful accumulated effects.

Worked records

Record 1

Separate surplus model:MB 100-q, MC 20+q. Continuous stream 10 yearly over[0,3], continuous discount.1. Previous resource multiplier 70-1.5 S applies only on its verified binding interval.

Develop the reasoning

Surplus optimumq 40;benefit 3200, cost 1600, total 1600. Uniform revenue 2400 differs from total benefit. Continuous-streamPV 25.918178. Capacity gain 40→45 is integral(70-1.5 S)dS=31.25. Units and model boundaries distinguish these three applications.

Progressive practice — optional

1. Foundation

Integrate marginal cost 20+q from 0 to 10.

Compare the worked reasoning

200+50=250 total variable cost.

Change the record

Fixed setup 100 also applies.

Compare the changed-record reasoning

Total cost 350;the derivative alone did not identify the fixed 100.

2. Application

Evaluate the growing-stream limit whenr=g andT 3.

Compare the worked reasoning

Discounted rate is constant 10, soPV 30.

Change the record

The horizon is 5 with the same exactr=g condition.

Compare the changed-record reasoning

PV 50. The limiting formula 10 T remains finite despite the generic quotient having a zero denominator.

3. Transfer

Does area under demand equal uniform-price revenue?

Compare the worked reasoning

No. It totals modeled willingness to pay;revenue is the actual price times quantity under uniform pricing.

Change the record

Atq 20, uniform price from 100-q is 80.

Compare the changed-record reasoning

Revenue 1600;total willingness to pay 2000-200=1800;consumer surplus 200. Cost 20×20+20²/2=600, producer surplus 1000, total 1200.

Sources and scope