MATH 150 · Mathematics for Economics I

Areas Under Curves: A First Look at Integrals

See how adding thin slices gives areas under curves, and use integrals to rebuild total cost from marginal cost and to measure consumer surplus.

Key takeaways

  • The area under a rate curve gives the total accumulated amount, such as distance from speed or total cost from marginal cost.
  • A definite integral is the limit of sums of thin rectangles, and it equals the exact area under the curve between two points.
  • An antiderivative of a function is a function whose derivative is the original, and the fundamental theorem says the definite integral is the antiderivative at the end minus the antiderivative at the start.
  • The power rule runs backward: the antiderivative of x to the n is x to the n plus 1, divided by n plus 1.
  • Consumer surplus is the area between a demand curve and the price line, and integrals measure it even when the curve is bent.

A bus driver, Hana, drives at a steady 30 miles per hour for 2 hours. How far has she gone? You answer without thinking: 30 times 2, or 60 miles. Now draw it. Put time on the horizontal axis and speed on the vertical axis. The speed is a flat line at height 30, and the trip is a rectangle 2 wide and 30 tall. Its area is 60. The distance is the area under the speed line.

Now suppose her speed keeps changing, as real speeds do. She crawls out of the depot, picks up the pace on the highway, slows in town. The line wobbles. The area under the wobbly line is still her distance, but there are no neat rectangles anymore.

This lesson shows how to find that area, by slicing it into rectangles and letting the slices get thin. The result, the integral, turns out to be the reverse of the derivative. That reverse is how economists rebuild a total from its marginal values, and how they measure the gain that buyers get from a market.

Adding up slices

Return to the bagel shop. Its marginal cost, from the marginal value lesson, is

MC(q) = 2 + 0.2q   dollars per dozen

The cost of the first dozen is about $2. The cost of the twentieth is about $5.80. What is the total variable cost of baking 20 dozen? That is the sum of all the little costs along the way.

Chop the 20 dozen into four chunks of 5 dozen. For each chunk, guess the cost per dozen and multiply by 5.

  • Using the marginal cost at the start of each chunk (a lower guess, since costs rise): heights 2, 3, 4, 5. The sum is 14, and 14 × 5 = 70.
  • Using the marginal cost at the end of each chunk (a higher guess): heights 3, 4, 5, 6. The sum is 18, and 18 × 5 = 90.

The true answer is between 70 and 90. Now use ten chunks of 2 dozen each. The start heights are 2.0, 2.4, 2.8, and so on up to 5.6, which add to 38, giving 76. The end heights run 2.4 up to 6.0 and add to 42, giving 84. The window narrowed: between 76 and 84.

With a hundred chunks, the window would be 79.2 to 80.8. As the slices get thinner, both guesses squeeze toward the same number: 80.

Total variable cost as an area
Marginal cost ($ per dozen) 20 Marginal cost Variable cost, $80 MC = $6 at 20 dozen Dozens baked Marginal cost ($ per dozen) 20 Marginal cost Variable cost, $80 MC = $6 at 20 dozen Dozens baked

The shaded area under marginal cost from 0 to 20 dozen is the total variable cost.

That limit of sums of thin rectangles is the definite integral. We write it

variable cost = ∫ from 0 to 20 of (2 + 0.2q) dq = 80

The long S-shaped symbol ∫ stands for "sum." The numbers 0 and 20 are the limits, and dq says the slices are thin in the q direction.

The definite integral gives a number: an area, or an accumulated total. It adds slices whose heights can be positive, and areas below the horizontal axis count as negative.

Antiderivatives: running the derivative backward

Computing areas by slicing is tiresome. Luckily there is a shortcut, and it is one of the most beautiful ideas in mathematics.

An antiderivative of a function f is a function F whose derivative is f. If F′ = f, then F is an antiderivative of f. For example:

  • The derivative of x² is 2x, so x² is an antiderivative of 2x.
  • The derivative of 2q + 0.1q² is 2 + 0.2q, so 2q + 0.1q² is an antiderivative of the marginal cost.

Antiderivatives are not unique. Add any constant and the derivative stays the same. The functions x², x² + 5 and x² − 100 all have derivative 2x. We write x² + C for the whole family.

The power rule reverses neatly:

the antiderivative of xⁿ is xⁿ⁺¹ / (n + 1)  (for n not equal to −1)
Function Antiderivative (leaving off + C)
5 5x
x x² / 2
x² x³ / 3
2 + 0.2q 2q + 0.1q²
eʳᵗ eʳᵗ / r
1/x ln x

Check any row by differentiating the right-hand side. The last two come from derivatives of exponentials and logarithms: the derivative of ln x is 1/x, and the derivative of eʳᵗ / r is eʳᵗ.

The fundamental theorem

Here is the bridge between slicing and shortcuts.

∫ from a to b of f(x) dx = F(b) − F(a)

where F is any antiderivative of f. The definite integral is the antiderivative at the top minus the antiderivative at the bottom. Constants cancel in the subtraction, so you may drop the + C.

Apply it to the bagel cost. F(q) = 2q + 0.1q².

F(20) = 40 + 40 = 80
F(0)  = 0
80 − 0 = 80

It matches the squeeze from rectangles, but took two lines.

The fundamental theorem of calculus
Area under f = F(b) − F(a) Area under f = Accumulated total From a to b, the sum of thin slices of height f. F(b) = Antiderivative at the end F is any function whose derivative is f. F(a) = Antiderivative at the start The constants cancel, so any version of F works. Area under f = F(b) − F(a) Area under f = Accumulated total From a to b, the sum of thin slices of height f. F(b) = Antiderivative at the end F is any function whose derivative is f. F(a) = Antiderivative at the start The constants cancel, so any version of F works.

The name is fitting. Differentiating and integrating undo one another, much as dividing undoes multiplying. A rate in, a total out.

Rebuilding total cost from marginal cost

The shop's total cost is its fixed fee plus the variable cost:

C(q) = C(0) + ∫ from 0 to q of MC(x) dx

Here C(0) = $50 is the fixed cost. The integral of marginal cost from 0 to q is the variable cost, 2q + 0.1q². So

C(20) = 50 + 80 = 130

That agrees with the direct formula C(q) = 50 + 2q + 0.1q², which gives 50 + 40 + 40 = 130.

This is why marginal cost does not include fixed cost: the fixed cost is the starting height, and the integral adds only what changes. To find the extra cost of going from 20 dozen to 30 dozen, integrate from 20 to 30:

F(30) − F(20) = (60 + 90) − (40 + 40) = 150 − 80 = 70

The next ten dozen cost $70, an average of $7 each. Check against the marginal cost: at 20 dozen it is $6, at 30 it is $8, and the average of the two is $7.

Building total cost at 20 dozen
Fixed fee $50 Area under MC, 0 to 20 +$80 Total cost $130 Fixed fee $50 Area under MC, 0 to 20 +$80 Total cost $130

Fixed cost sets the starting level, and the integral of marginal cost adds the rest. Example with made-up numbers.

Consumer surplus

Consumer surplus is the gap between what buyers would be willing to pay and what they actually pay, a topic of consumer surplus, producer surplus and efficiency. The inverse demand curve gives the most each buyer would pay for the next unit. Adding up those amounts for every unit bought gives the total willingness to pay, which is an area under the demand curve. Subtract the money actually spent to get the surplus.

CS = ∫ from 0 to Q* of P(q) dq − P* × Q*

For Pia's puppet theater, demand is P = 50 − 0.5Q. At a price of $30, 40 tickets are sold.

Total willingness to pay = ∫ from 0 to 40 of (50 − 0.5Q) dQ
                         = [50Q − 0.25Q²] from 0 to 40
                         = 2,000 − 400 = 1,600
Money paid               = 30 × 40 = 1,200
Consumer surplus         = 1,600 − 1,200 = 400

Check with the triangle: half of the base 40 times the height 20 (the gap between $50 and $30) is 400. Same.

Consumer surplus at a $30 ticket
Price ($) 40 $30 Demand Price $30 Consumer surplus, $400 40 tickets Tickets per night Price ($) 40 $30 Demand Price $30 Consumer surplus, $400 40 tickets Tickets per night

The triangle between the demand line and the price is the surplus.

A straight demand line gives a triangle, which needs no calculus. The integral earns its keep with curves. Suppose demand bends: P = 36 − Q². At a price of $11, 36 − Q² = 11 gives Q = 5.

Total willingness to pay = ∫ from 0 to 5 of (36 − Q²) dQ
                         = [36Q − Q³/3] from 0 to 5
                         = 180 − 41.67 = 138.33
Money paid               = 11 × 5 = 55
Consumer surplus         = 138.33 − 55 = 83.33

No triangle formula fits that shape, but the integral handles it.

A worked example: a stream of income

A rental property pays money continuously, at a rate of $100 a year. At a continuous discount rate of 5%, what is the stream worth over 10 years?

Step 1: Find the value of a slice. In a tiny time dt, the property pays 100 dt. If that is received t years from now, its present value is 100 × e^(−0.05t) dt.

Step 2: Add the slices.

PV = ∫ from 0 to 10 of 100 e^(−0.05t) dt

Step 3: Antiderivative. The antiderivative of e^(−0.05t) is e^(−0.05t) / (−0.05). So

PV = 100 × [−20 e^(−0.05t)] from 0 to 10
   = −2,000 × (e^(−0.5) − e^0)
   = 2,000 × (1 − 0.60653)
   = 786.94

Step 4: Check the size. The payments total $1,000 over 10 years. Discounted, the value is $787, a bit under. Is that reasonable? Spread evenly, the average payment arrives around year 5, where the discount factor is e^(−0.25) = 0.78. The match is close.

Step 5: Let it run forever. As the end date goes to infinity, e^(−0.05T) tends to zero, so PV tends to 100 / 0.05 = $2,000. That is the continuous version of the perpetuity formula in discounting and present value arithmetic.

Integrals thus connect to nearly every topic in the course: total cost from marginal cost, welfare from demand, and the value of a flow of income from its rate.

The common mistake: mixing up the rate and the total

A derivative takes a total and gives a rate. An integral takes a rate and gives a total. Mixing them is the first source of mistakes.

  • Confusing height with area. The marginal cost at 20 dozen is $6 per dozen. The area under marginal cost up to 20 dozen is $80. Different units: dollars per dozen versus dollars.
  • Forgetting the starting level. The integral of marginal cost is variable cost only. Add the fixed cost to get total cost.
  • Dropping limits. Without limits, ∫(2 + 0.2q) dq is a family of functions, 2q + 0.1q² + C. With limits, it is a number.
  • Getting the sign wrong below the axis. An area below the horizontal axis counts as negative in the integral. If a net flow is negative, say so.
  • Using the power rule on 1/x. The antiderivative of x⁻¹ is ln x, not x⁰ / 0, which would be meaningless.
  • Trusting a table of rectangles for the exact value. Left and right sums bracket the area when the curve rises or falls steadily, and they converge only as the slices thin.

If you remember a single check, make it this one: differentiate your antiderivative and see whether you get back the original.

Words to know

Definite integral the limit of sums of thin rectangles under a curve, equal to the area between the curve and the axis.

Antiderivative a function whose derivative is a given function.

Fundamental theorem of calculus the result that a definite integral equals the antiderivative at the end minus the antiderivative at the start.

Variable cost the part of total cost that changes with output.

Consumer surplus the gap between what buyers are willing to pay and what they actually pay.

Willingness to pay the most a buyer would give for one more unit.

Present value of a flow the value today of a stream of continuing payments, found by integrating discounted slices.

Check yourself

  1. Find the antiderivative of 6x² + 4.
  2. Evaluate the integral from 0 to 3 of 2x dx and say what area it represents.
  3. Marginal cost is 4 + 0.5q, and fixed cost is $30. Find the total cost of 10 units.
  4. Demand is P = 20 − 2Q and the price is $8. Find consumer surplus using an integral.
  5. Evaluate the integral from 1 to 4 of x² dx.
  6. Explain why fixed cost does not appear in the integral of marginal cost.
Show the answers
  1. The antiderivative is 2x³ + 4x, plus a constant.
  2. The antiderivative is x², so the value is 9 − 0 = 9, the area of a triangle with base 3 and height 6.
  3. Variable cost is 4 × 10 + 0.25 × 100 = 65, so total cost is 30 + 65 = $95.
  4. Q = 6 at P = 8, total willingness to pay is 20 × 6 − 36 = 84, the cost is 48, so the surplus is $36.
  5. [x³ / 3] from 1 to 4 equals 64/3 − 1/3 = 21.
  6. A fixed cost does not change as output changes, so its marginal value is zero and it adds no area beneath the marginal cost curve.

A free self-study program written for 4Economics with AI writing tools and not reviewed line by line by a person. It is not an accredited degree and awards no credit. Check anything you rely on against a textbook or primary source. Report an error.

In this unit: First calculus

  1. Rates of Change and the Idea of a LimitMove from average rates of change to instant ones by shrinking an interval, and learn what a limit is and when one fails to exist.11 min
  2. The Derivative as a Marginal ValueDefine the derivative as the limit of the slope, read it as marginal cost and marginal revenue, and use it to find a profit-maximizing output.12 min
  3. Rules of Differentiation: Power, Sum, Product and ChainLearn the power, sum, product, quotient and chain rules so you can find marginal values without grinding through limits every time.11 min
  4. Derivatives of Exponentials and LogarithmsFind derivatives of e to the x and the natural log, and see why a growth rate is simply the derivative of a logarithm.12 min
  5. Elasticity With CalculusCompute point elasticity from a derivative, see how it changes along a straight demand line, and link it to revenue and to a seller's pricing.12 min
  6. Finding Maximums and MinimumsUse first and second derivatives to find the best output, the lowest average cost and the best bundle, and avoid the usual optimization traps.11 min
  7. Areas Under Curves: A First Look at IntegralsSee how adding thin slices gives areas under curves, and use integrals to rebuild total cost from marginal cost and to measure consumer surplus.11 min

In the news