Lawfare Academy · Complete Mathematical Economics edition 3

Accumulation, substitution and the initial condition

This original on-site preparation extends the preserved Cedar integration lesson. Keep its cost-change versus cost-level distinction, separate scenarios, signed flow and welfare boundaries. The additional methods supply the mathematical preparation formerly assigned to publisher chapters. Every required explanation and complete optional model is here; external references are optional.

An integral begins with a sum and a unit

Partition [a,b] into subintervals of widths Δxᵢ and select a point ξᵢ in each. A Riemann sum is Σf(ξᵢ)Δxᵢ. If these sums converge to one finite value as the largest width tends to zero, independently of the allowed sample choices, that value is the definite integral. Continuous functions on a closed bounded interval are integrable, as are bounded functions with finitely many discontinuities. Not every arbitrary function or unbounded expression is covered by that guarantee.

For marginal cost in dollars per product integrated over a product quantity, each term has dollars as its unit. A flow in units per day integrated over days instead yields units. Keep the variable and its bounds explicit; two expressions using the same numerical interval can measure different quantities. A positive rate contributes positively to signed accumulation; a negative rate subtracts. A geometric area uses nonnegative height or splits where sign changes.

The integral reverses sign when bounds are reversed, is zero over a zero-width interval, adds across adjacent intervals and combines linearly. These properties preserve signs and scenario boundaries. If f≤g throughout an interval, their integrals preserve that order; if m≤f≤M, the accumulation lies between m(b−a) and M(b−a) for a≤b. Such bounds can expose an implausible calculation before seeking an exact antiderivative.

The Fundamental Theorem has two linked directions

If f is continuous and A(x)=∫ from a to x of f(t)dt, the accumulation derivative is A′(x)=f(x). The average added accumulation over a short interval approaches the rate at its endpoint. Conversely, if F′=f and the required hypotheses hold on [a,b], then ∫ from a to b of f equals F(b)−F(a). This turns a limiting sum into an endpoint calculation; it does not remove the need for an admissible integrand and interval.

For a differentiable upper bound g(x), d/dx ∫ from a to g(x) of f(t)dt=f(g(x))g′(x), with f continuous over the relevant range. If both bounds vary, subtract the lower-bound contribution: f(g(x))g′(x)−f(h(x))h′(x). A variable-bound accumulation is a composition; omitting the boundary derivative repeats the chain-rule error. The dummy integration variable t does not have to equal the outside variable x.

An indefinite integral denotes a family of antiderivatives, F(x)+K. A definite integral is a number for specified bounds, not that whole family. Differentiate a proposed antiderivative to verify it. A genuine level observation determines K; no mathematical operation on a derivative alone identifies an omitted fixed level. For a changing inventory, add the initial stock to integrated net flow and check every intermediate admissibility restriction, not only the final total.

Basic formulas and domains

For n≠−1, ∫xⁿdx=x^(n+1)/(n+1)+K on intervals where the derivative formula applies. For 1/x, the antiderivative is ln|x| on an interval excluding zero. The exceptional exponent −1 cannot be inserted into a formula that divides by n+1. Linearity permits termwise finite sums and constant multiples; it does not mean an integral of a product is the product of its two integrals.

Other elementary formulas include ∫e^x dx=e^x+K; ∫a^x dx=a^x/ln a+K for a>0, a≠1; ∫cos x dx=sin x+K; ∫sin x dx=−cos x+K; ∫sec²x dx=tan x+K; and ∫csc²x dx=−cot x+K on their domains. A scaled argument needs its scaling factor. For example ∫e^(3x)dx=e^(3x)/3+K. The reverse derivative check reveals why simply writing e^(3x) would be three times too large.

Substitution reverses a composite derivative

If an integrand has the form f(g(x))g′(x), set u=g(x) and du=g′(x)dx. The chain rule verifies ∫f(g(x))g′(x)dx=F(g(x))+K when F′=f on the relevant interval. The differential notation records this change of variable; it is not permission to replace only a visually convenient piece while leaving inconsistent variables and bounds behind.

For ∫2x/(x²+4)dx, let u=x²+4, du=2x dx, obtaining ln u+K=ln(x²+4)+K. Since x²+4 is positive, the logarithm is real for every real x. For definite bounds 0 to 2, the u bounds are 4 to 8, giving ln8−ln4=ln2. Either evaluate wholly in u with changed bounds or return wholly to x before using original bounds. Mixing the two conventions changes the problem.

Substitution is not always sufficient. In ∫x e^x dx, setting u=e^x leaves an x factor requiring another method. Integration by parts follows from integrating the product rule: ∫u v′ dx=uv−∫u′v dx. Choosing u=x and v′=e^x gives x e^x−e^x+K. This short extension also yields ∫ln x dx=x ln x−x+K for x>0. A named substitution without a correctly transformed remaining integrand is not a solution.

Exponential and logarithmic integration models

A relative growth equation A′(t)=kA(t) with constant k and initial A(0)=A₀ has solution A=A₀e^(kt). Differentiation checks both the rate relation and initial value. Integrating a given rate A₀ke^(kt) instead gives a change in the level over the specified time interval. These are related questions with different supplied information. An assumed rate law does not establish that a real population or cash stream follows it.

For ∫[g′(x)/g(x)]dx, use ln|g(x)|+K where g is nonzero on the interval. The absolute value does not make integration across a zero valid. An exponential of a logarithm can simplify on its domain, but removing the original excluded values would define a different function. A net-change model with prices, rates or quantities in different periods must harmonize them before accumulation.

Inverse-trigonometric antiderivatives

From the derivative of arctangent, ∫dx/(a²+x²)=(1/a)arctan(x/a)+K for a>0. The scaling can be checked by differentiating: the inside derivative contributes 1/a while the outside denominator becomes 1+x²/a². From arcsine, ∫dx/√(a²−x²)=arcsin(x/a)+K for |x|<a, with appropriate improper endpoint interpretation if a definite problem reaches the boundary. These forms are not interchangeable: a squared denominator and a square-root denominator give different functions.

Completing a square can reveal the form. Since x²+4x+8=(x+2)²+4, ∫dx/(x²+4x+8)=(1/2)arctan[(x+2)/2]+K. A constant numerator fits this pattern. A numerator proportional to the denominator derivative instead suggests a logarithm; a linear numerator can sometimes be split into both parts. For ∫(2x+4)/(x²+4x+8)dx, the result is ln(x²+4x+8)+K. Examine the complete numerator and verify the derivative rather than selecting a formula from the denominator alone.

Singularities require an improper-limit analysis

The endpoint formula cannot simply cross a point where the integrand is undefined and unbounded. For ∫ from 0 to 1 of x^(−1/2)dx, first use lower bound ε>0 and then take ε→0+, yielding 2−2√ε→2. In contrast, ∫ from 0 to 1 of 1/x dx gives −ln ε, diverging to positive infinity. Both integrands are undefined at zero, but their accumulated behavior differs.

An interior singularity requires separate one-sided improper integrals. For ∫ from −1 to 1 of 1/x dx, each side diverges, so the ordinary improper integral does not exist. Symmetric cancellation produces a Cauchy principal value of zero, which is a different defined operation. Do not report that zero as the ordinary accumulated integral. A numerical routine that skips a singular point can conceal rather than resolve the distinction.

Numerical integration is an interpolation choice

When exact functions or antiderivatives are unavailable, left/right rectangles, midpoint and trapezoidal rules approximate accumulation differently. For n equal intervals, the trapezoidal rule weights endpoint samples by one-half and interior samples by one before multiplying by the common width. It exactly integrates a linear interpolant between sample points. That is an assumption about unsampled behavior, not new observed data.

For f(x)=x² on [0,1] with two intervals, the trapezoidal estimate is (1/2)[0/2+1/4+1/2]=3/8, while the exact integral is 1/3. With |f″|≤M, a sufficiently smooth function's composite trapezoidal error is bounded by M(b−a)³/(12n²). Here M=2 and n=2 give 1/24, exactly the overestimate. This bound concerns the stipulated smooth function; measurement error in sampled values is another source of uncertainty. Refine the partition and compare methods where useful, but do not claim a smoothness-based guarantee without its hypotheses.

Recover economic changes without mixing scenarios

For the preserved separate marginal-cost scenario MC(Q)=20+0.4Q and C(0)=200, total cost is C(Q)=200+20Q+0.2Q². Cost at 20 is $680; the change from 10 to 20 is $260. Subtracting a different initial condition changes levels but not the integral of the same marginal rate between fixed bounds. Combining this rising-marginal-cost curve with the earlier constant-cost profit optimum without rebuilding profit would mix different scenarios.

The same demand P=100−Q at uniform price 60 implies modeled quantity 40. The conventional consumer-surplus area ∫ from 0 to 40 of (100−Q−60)dQ is $800, whereas revenue is $2,400. The area is not a customer cash rebate or automatically an observed welfare measure. Its interpretation requires the demand-as-willingness-to-pay model and appropriate economic assumptions. Distribution, external effects and authority to implement a policy remain outside the arithmetic.

Worked investigation 1: substitution with changed bounds

The mathematical preparation integral ∫ from 0 to 2 of 2q/(q²+4)dq becomes ∫ from 4 to 8 of 1/u du after u=q²+4. Its value is ln2. Differentiating ln(q²+4) returns the original integrand. The value is a signed accumulation under these dimensionless mathematical coordinates; it is not Cedar cost unless a new economically justified rate and units are supplied.

Optional practice 1: move the interval

Evaluate the same rate from q=2 to q=4. Explain why simply reusing ln2 would fail.

Model reasoning

The transformed bounds are 8 and 20, so the result is ln20−ln8=ln(5/2), not ln2. The integrand changed neither formula nor domain; the accumulated interval changed. A correct antiderivative is not enough if the endpoint values belong to a previous question. Reverse the original bounds and the answer's sign must also reverse.

Worked investigation 2: a variable upper limit

Let A(x)=∫ from 1 to x² of 1/t dt for x≠0. The positive upper bound gives A(x)=ln(x²)=2ln|x|. The Fundamental Theorem and chain rule give A′=(1/x²)2x=2/x. At x=−2, the derivative is −1. The formula depends on both the upper bound and its derivative; using 1/x² alone would incorrectly omit the chain factor and sign.

Optional practice 2: an excluded parameter

Does the formula define A(0) as an ordinary finite integral? What changes if the rate is 1/√t instead and x approaches zero?

Model reasoning

For 1/t, an upper bound of zero crosses an improper endpoint whose integral diverges, so A(0) is not finite. With rate 1/√t and the same orientation from 1 to x², the improper endpoint at zero is integrable and the limit is −2. Its accumulation is 2|x|−2 for nonzero x, which can be extended continuously to −2 at zero but has a corner there. Finite accumulation, continuous extension and differentiability are separate questions.

Worked investigation 3: choose the right inverse-trig scale

For ∫ from 0 to 2 of 1/(4+q²)dq, the antiderivative is (1/2)arctan(q/2). Evaluation gives π/8. The factor 1/2 and the inner division by 2 both matter. A direct derivative check gives (1/2)(1/2)/[1+(q/2)²]=1/(4+q²), verifying the scale.

Optional practice 3: the numerator changes

Replace the numerator by 2q, keeping denominator 4+q² and bounds 0 to 2. Is π/8 still appropriate? Identify the complete new method.

Model reasoning

No. The numerator now equals the derivative of the denominator. Substitution u=4+q² gives ln u between 4 and 8, hence ln2. A visually unchanged denominator does not make the original inverse-trig answer transferable. Differentiating the logarithmic antiderivative verifies the changed numerator explicitly.

Optional integrated accumulation audit

A fictional memo calls C(20)−C(10) the total cost at 20, integrates e^(3x) as e^(3x), applies an endpoint logarithm across zero, and labels a surplus area as recorded customer cash. Correct each claim and name the assumptions needed to interpret an integral economically.

Complete model

An interval integral of marginal cost gives a cost difference; total cost additionally needs a genuine level condition. For the preserved scenario, the difference is $260 and the total is $680. The exponential antiderivative is e^(3x)/3+K, as the chain-rule check shows. A logarithmic endpoint expression cannot establish an ordinary integral across a singularity; inspect separate improper limits. A surplus area is a model-based welfare quantity under demand and interpretation assumptions, not automatically an actual receipt, rebate or observed causal benefit. Define the rate, units, bounds, initial condition, scenario and empirical evidence before making a decision claim.

Explicit optional rubric: 20 points

Optional source summary

OpenStax's substitution section presents integration as a change of variable reversing a composite derivative, with consistent definite bounds. It is optional further reading. The original accumulation, singularity, economic interpretation and complete practice models required here are supplied on site.