Skip to content

Foundations of integral calculus ​

The central question of this chapter: given the marginal cost of each unit, how do you recover the total cost? Given a demand curve, how do you read off "what the consumers were in total willing to pay"? When the rate of change is known and the total is unknown, the tool you need is integration — the inverse operation of the derivative.

The arc of this chapter ​

Integration and differentiation grew from the same root: Newton's and Leibniz's great synthesis (later canonized as the fundamental theorem of calculus) is the discovery that "finding the rate of change" and "finding the accumulated quantity" are inverses of each other — and that discovery reduced, in a single stroke, a two-thousand-year-old area problem going back to Archimedes to the problem of finding an antiderivative. The rigorous foundation of the definite integral was filled in during the nineteenth century: Riemann (1826-1866), in 1854, defined the integral by "partition — approximate — sum — take the limit", promoting "the area under a curve" from a geometric intuition to an analytic object; in the twentieth century Lebesgue's (1875-1941) theory of integration gave probability (the rigorous definitions of expectation and variance in chapter 10) a solid floor to stand on.

Economics took up integration along a path that is exactly dual to the demand side: differentiation answers "given the total, what is the marginal?", integration answers "given the marginal, what is the total?" — and the second one is precisely the motif of welfare analysis. In 1844 the engineer-turned-French-economist Dupuit (1804-1866) measured "total willingness to pay" by the area under a demand curve for the first time when appraising public works, half a century before Marshall (1842-1924) formally proposed consumer surplus; the consumer surplus triangle, producer surplus and the deadweight loss (the Harberger triangle) in today's textbooks are all geometric projections of the definite integral. On the macro side, Ramsey's 1928 problem of optimal saving and the accumulated effect of capital accumulation K˙=sF(K)−δK\dot{K} = sF(K) - \delta K in continuous-time growth models likewise use integration as everyday language.

The route of the chapter: the definitions of the indefinite integral (antiderivatives and the constant of integration) and the definite integral (the accumulated value over an interval); the basic rules (linearity, integration by parts, substitution); a table of common integrals; the geometric meaning; and finally the three application grounds — recovering totals from marginals, total willingness to pay under a demand curve, and the accumulation of flows in continuous time.

Core concepts ​

The indefinite and the definite integral ​

The indefinite integral is the whole family of antiderivatives: if F′(x)=f(x)F'(x) = f(x), then ∫f(x) dx=F(x)+C\int f(x)\,\mathrm{d}x = F(x) + C, where CC is an arbitrary constant — since the derivative of a constant is zero, an antiderivative always carries a free translation. The definite integral, by contrast, is a number: ∫abf(x) dx\int_{a}^{b} f(x)\,\mathrm{d}x is the accumulation of the function over the interval [a,b][a,b], geometrically the signed area between the curve and the xx axis (the ordinary area when f≥0f \geq 0).

Why separate "a family of functions" from "one number"? Because the two kinds of question in economics each claim one: recovering total cost from marginal cost wants the indefinite integral — but mind the constant of integration: ∫MC(q) dq=VC(q)+C\int MC(q)\,\mathrm{d}q = VC(q) + C recovers only variable cost; the fixed-cost term (a constant) is exactly the part that differentiation erased, and it has to be known separately. Computing total willingness to pay and consumer surplus wants the definite integral — it accumulates between two explicit limits, and the answer is unique. Dupuit's and Marshall's contributions can be read as this: they pointed out that welfare quantities belong to the latter.

The basic rules of integration ​

Linearity: ∫cf(x) dx=c∫f(x) dx\int c f(x)\,\mathrm{d}x = c\int f(x)\,\mathrm{d}x and ∫(f±g) dx=∫f dx±∫g dx\int (f \pm g)\,\mathrm{d}x = \int f\,\mathrm{d}x \pm \int g\,\mathrm{d}x. Integration by parts: ∫u dv=uv−∫v du\int u\,\mathrm{d}v = uv - \int v\,\mathrm{d}u. Substitution: for ∫f(g(x)) g′(x) dx\int f(g(x))\,g'(x)\,\mathrm{d}x, set u=g(x)u = g(x) to get ∫f(u) du\int f(u)\,\mathrm{d}u.

Why is integration by parts worth remembering in economics? Because expectation, annuity and discounting problems often produce a "polynomial × exponential" product (the continuous annuity ∫0Tt e−rt dt\int_0^{T} t\,e^{-rt}\,\mathrm{d}t — duration times the discount factor), and integration by parts is the only analytic route to it; substitution shows up in "composite structures": when demand is given as a function of price and you integrate over quantity, a change of variable peels the two layers of function apart. Their shared spirit: rewrite an unfamiliar integral into a shape found in the table.

A table of common integrals ​

∫xn dx=xn+1n+1+C (n≠−1),∫1x dx=ln⁡∣x∣+C,∫ex dx=ex+C\int x^n\,\mathrm{d}x = \frac{x^{n+1}}{n+1} + C \ (n \neq -1), \qquad \int \frac{1}{x}\,\mathrm{d}x = \ln|x| + C, \qquad \int e^x\,\mathrm{d}x = e^x + C

∫sin⁡x dx=−cos⁡x+C,∫cos⁡x dx=sin⁡x+C\int \sin x\,\mathrm{d}x = -\cos x + C, \qquad \int \cos x\,\mathrm{d}x = \sin x + C

In the power rule the exception n≠−1n \neq -1 gets its own row (∫x−1 dx\int x^{-1}\,\mathrm{d}x falls through to the logarithm). The definite versions come from the Newton-Leibniz formula: ∫abf(x) dx=F(b)−F(a)\int_a^b f(x)\,\mathrm{d}x = F(b) - F(a), so ∫abxn dx=bn+1−an+1n+1\int_a^b x^n\,\mathrm{d}x = \frac{b^{n+1} - a^{n+1}}{n+1}, ∫abex dx=eb−ea\int_a^b e^x\,\mathrm{d}x = e^b - e^a, ∫abdxx=ln⁡∣b∣−ln⁡∣a∣\int_a^b \frac{\mathrm{d}x}{x} = \ln|b| - \ln|a|, ∫absin⁡x dx=−cos⁡b+cos⁡a\int_a^b \sin x\,\mathrm{d}x = -\cos b + \cos a, ∫abcos⁡x dx=sin⁡b−sin⁡a\int_a^b \cos x\,\mathrm{d}x = \sin b - \sin a.

Why does the n=−1n = -1 exception deserve its own mark? Because it corresponds to the accumulation of "proportional growth": a quantity growing at a constant rate gg moves as egte^{gt}, and is linear in the log; in reverse, the integral of 1x\frac{1}{x} is the logarithm — the geometric growth in which "doubling always takes the same time", whose accumulated effect is everywhere in economics (population, inflation, technological progress). This exception is their gateway into integration.

Geometric meaning and solids of revolution ​

When f(x)≥0f(x) \geq 0, ∫abf(x) dx\int_a^b f(x)\,\mathrm{d}x is the area over the interval; integration also computes the volume of a solid of revolution (the disk/washer method). Example: f(x)=x2f(x) = x^2 on [0,2][0, 2] gives ∫02x2 dx=x33∣02=83\int_0^2 x^2\,\mathrm{d}x = \left.\frac{x^3}{3}\right|_0^2 = \frac{8}{3}.

Why is reading "an area as a name" more important than computing the area? Because every area in an economics diagram has a name: under the demand line is total willingness to pay, between the demand line and the price line is consumer surplus, between the price line and the supply curve is producer surplus, and the piece of both surpluses lost to a distortion is the deadweight loss. Someone who can integrate, looking at the third vertex of a welfare triangle, is looking at the limits of integration — in policy analysis (tax wedges, price controls) the integral is the only authoritative answer as to why the triangle is drawn that way and why the endpoints sit where they do.

Questions and analysis ​

When recovering a total from a marginal, why does a piece go "missing"? ​

Given MC(q)=4q+3MC(q) = 4q + 3, integrate back: ∫(4q+3) dq=2q2+3q+C\int (4q+3)\,\mathrm{d}q = 2q^2 + 3q + C. The constant CC is exactly the fixed cost FCFC — the part that does not depend on output, of which marginal cost carries no information whatsoever. Consequence: marginal cost alone cannot distinguish two firms with different fixed costs, and fixed cost is precisely what determines break-even and market structure (natural monopoly, barriers to entry — the analytic base of "market failure" in chapters 4 and 7 of Western Economics). Likewise, integrating marginal utility back to total utility loses "the level of utility when consumption is zero". Integration is not an omniscient tool: it restores the part that varies with the quantity; the invariant part has to be supplied separately.

Why are total willingness to pay and total revenue not the same thing? ​

The inverse demand function p(q)p(q) is "the marginal willingness to pay for the qq-th unit". Total revenue from selling qq units is R(q)=p(q)⋅qR(q) = p(q) \cdot q (every unit sold at the same price), whereas consumers' total willingness to pay is ∫0qp(x) dx\int_0^q p(x)\,\mathrm{d}x (each unit priced at its own willingness to pay). The difference ∫0qp(x) dx−p(q)q\int_0^q p(x)\,\mathrm{d}x - p(q)q is consumer surplus — what consumers "pay less than" under uniform pricing. The numbers, from example 2: at 50 units total revenue is 2500, total willingness to pay is 3750, and the surplus is 1250. First-degree price discrimination can seize the whole surplus precisely because unit-by-unit pricing pushes total revenue up to total willingness to pay (chapter 4, "The theory of markets", of Western Economics).

Derivations and worked examples ​

Example 1: recovering total cost from marginal cost ​

MC(q)=4q+3MC(q) = 4q + 3, with fixed cost FC=5FC = 5 given. Total variable cost VC(q)=∫0q(4x+3) dx=2q2+3qVC(q) = \int_0^q (4x + 3)\,\mathrm{d}x = 2q^2 + 3q — integrating from 0 to qq rules out the constant term by construction, which is the clean way the definite integral handles "recovery" problems: integrate the uncertainty away. Hence C(q)=2q2+3q+5C(q) = 2q^2 + 3q + 5, the exact inverse of the cost function in the differentiation example in this course's chapter 4: differentiation drops the constant, and integrating from 0 restores the variable part.

Example 2: total willingness to pay and consumer surplus ​

Inverse demand p(q)=100−qp(q) = 100 - q; at a price P=50P = 50 the quantity sold is q=50q = 50.

Total revenue: R(50)=p(50)⋅50=50×50=2500R(50) = p(50) \cdot 50 = 50 \times 50 = 2500.

Total willingness to pay: ∫050(100−q) dq=100q−q22∣050=5000−1250=3750\int_0^{50} (100 - q)\,\mathrm{d}q = \left.100q - \frac{q^2}{2}\right|_0^{50} = 5000 - 1250 = 3750.

Consumer surplus =3750−2500=1250= 3750 - 2500 = 1250 — exactly the area of the triangle 12×50×50\frac{1}{2} \times 50 \times 50; geometry and integration confirm each other. Under first-degree price discrimination the firm demands each unit's willingness to pay, revenue rises to 3750, and the surplus is zeroed out; compare that with the competitive equilibrium (P=MCP = MC) and you can go further and compute the deadweight loss caused by monopoly — the same integral, from description to normative evaluation.

Limits and what follows ​

First, "area = welfare" rests on a strong assumption: total willingness to pay equals the area under the demand curve, which requires the demand curve itself to be a faithful record of marginal willingness to pay — when income effects are strong (Giffen goods, low-income households with a large share of essentials), ordinary consumer surplus can be far from the equivalent variation / compensating variation (Hicks's 1939 corrected measures), and careful welfare analysis must use the latter. Second, integrability is not automatic: functions whose antiderivative cannot be written in elementary terms (the indefinite integral of the normal density) are legion — the reason "looking up probabilities in a table" is done in chapter 10's probability theory is exactly that the analytic integral is not feasible, which is why numerical integration (the trapezoidal rule, Monte Carlo) is the infrastructure of empirical economics. Third, from the definite integral to measure theory: the Lebesgue integral swaps "partition the domain" for "partition the range", so that discontinuous and pathological functions become integrable as well, and the definition of expectation in probability, E(X)=∫xf(x) dxE(X) = \int x f(x)\,\mathrm{d}x, thereby acquires its rigorous base — a thread laid down for chapter 10. As for pushing "accumulation" onto the axis of optimal choice (dynamic programming, the calculus of variations), that belongs to chapter 12's optimization and to the later territory of dynamic economics.

References ​