Linear Function Example in Integral Calculus

Every course on integration opens with the same question: what does the symbol ∫\int actually mean? The most honest answer is that it is a shorthand for a limit of sums, and the most convincing way to see that is to carry out the limit once, slowly, on a function that is simple enough to finish the arithmetic. That is the purpose of this page: y=xy = x is the easiest integrand there is, and yet computing ∫abx dx\int_a^b x\,dx from the definition takes real work and produces a result we can verify geometrically in two ways.

Once the machinery has been run once by hand, later methods look like variations on the same theme. The value of doing it this way is that you end up with a formula, ∫abx dx=b2−a22\int_a^b x\,dx = \frac{b^2 - a^2}{2}, that you can check at a glance — and that you understand exactly what the limit in the definition is doing.

Definition

For a function ff continuous on [a,b][a,b], the definite integral is the limit of the Riemann sums

∫abf(x) dx=lim⁡n→∞∑i=1nf(xi) Δx,\int_a^b f(x)\,dx = \lim_{n\to\infty}\sum_{i=1}^{n} f(x_i)\,\Delta x,

where the interval is cut into nn pieces of equal width Δx=b−an\Delta x = \frac{b-a}{n}, and xix_i is a point of the ii-th piece. The limit exists because, for a continuous ff, the value of the sum does not depend on where inside each piece you pick xix_i — the pieces are thin enough for that to be true in the limit.

For this page the integrand is f(x)=xf(x) = x, and we take the right endpoint of each piece, so xi=a+iΔxx_i = a + i\Delta x.

The Problem

The shaded region below is the area under y=xy = x between x=ax = a and x=bx = b. Find it.

Two routes lead to the answer, and this page takes both. The geometric route uses the trapezoid area formula. The integral route builds the area from infinitely many thin strips. They must agree, and the agreement is the check that the definition of the integral is doing its job.

The Geometric Route

For y=xy = x on [a,b][a,b] with a<ba < b, the region bounded by the curve, the axis and the two vertical lines at aa and bb is a trapezoid: the two non-parallel sides are parallel to each other, the lower base has length aa (the height of the curve at the left end), the upper base has length bb (its height at the right end), and the height of the trapezoid is the horizontal width b−ab - a.

Trapezoid area formula

S=(upper base+lower base)×height2S = \frac{(\text{upper base} + \text{lower base}) \times \text{height}}{2}

Substituting the three lengths gives

S=(a+b)(b−a)2=b2−a22.S = \frac{(a + b)(b - a)}{2} = \frac{b^2 - a^2}{2}.

The Integral Route

The idea behind the integral is the same picture seen at closer range: cut the region into many narrow vertical strips, approximate each strip by a rectangle, and add up the areas.

  1. Divide [a,b][a,b] into nn narrow strips of width Δx\Delta x.
  2. Approximate the ii-th strip by a rectangle of height f(xi)f(x_i) and width Δx\Delta x, so its area is f(xi)⋅Δxf(x_i)\cdot\Delta x.
  3. Add the areas of all nn strips, and then let nn grow without bound.

For f(x)=xf(x) = x this gives the height of the ii-th rectangle as xix_i and its area as xi⋅Δxx_i \cdot \Delta x, so the total area is

∑i=1nxi⋅Δx.\sum_{i=1}^{n} x_i \cdot \Delta x.

When the strips are made thin enough, the sum of the rectangle areas approaches the true area of the region, and the precise area is

lim⁡n→∞∑i=1nxi⋅Δx.\lim_{n \to \infty} \sum_{i=1}^{n} x_i \cdot \Delta x.

The Summation Formula We Need

Before the limit can be evaluated, one summation formula has to be in hand.

Sum of the first n natural numbers

∑i=1ni=n(n+1)2\sum_{i = 1}^{n} i = \frac{n(n + 1)}{2}

Carrying Out the Limit

Now everything is in place. For y=xy = x we have xi=a+iΔxx_i = a + i\Delta x and Δx=b−an\Delta x = \frac{b-a}{n}, so

∑i=1nxi⋅Δx=∑i=1n(a+i⋅b−an)⋅b−an=∑i=1n(a⋅b−an+i⋅(b−a)2n2)\sum_{i=1}^{n} x_i \cdot \Delta x = \sum_{i=1}^{n} \left(a + i \cdot \frac{b-a}{n}\right) \cdot \frac{b-a}{n} = \sum_{i=1}^{n} \left(a \cdot \frac{b-a}{n} + i \cdot \frac{(b-a)^2}{n^2}\right) =n⋅a⋅b−an+(b−a)2n2⋅∑i=1ni=a(b−a)+(b−a)2n2⋅n(n+1)2.= n \cdot a \cdot \frac{b-a}{n} + \frac{(b-a)^2}{n^2} \cdot \sum_{i=1}^{n} i = a(b-a) + \frac{(b-a)^2}{n^2} \cdot \frac{n(n+1)}{2}.

Taking the limit as n→∞n \to \infty, the factor n+1n\frac{n+1}{n} tends to 11:

lim⁡n→∞[a(b−a)+(b−a)22⋅n+1n]=a(b−a)+(b−a)22=(b−a)(a+b)2=b2−a22.\lim_{n \to \infty} \left[a(b-a) + \frac{(b-a)^2}{2}\cdot\frac{n+1}{n}\right] = a(b-a) + \frac{(b-a)^2}{2} = \frac{(b-a)(a+b)}{2} = \frac{b^2 - a^2}{2}. ∫abx dx=b2−a22\int_a^b x \, dx = \frac{b^2 - a^2}{2}

The symbol ∫\int is the integral sign, read as “integral”; the notation ∫ab\int_a^b denotes the definite integral from aa to bb, that is, the limit of the sums of thin strips described above.

Verification

The integral route produced b2−a22\frac{b^2 - a^2}{2} and the geometric route produced (a+b)(b−a)2\frac{(a+b)(b-a)}{2}. These are the same number, since b2−a2=(b−a)(b+a)b^2 - a^2 = (b-a)(b+a), so the two independent arguments agree.

Two quick numerical checks are worth doing. With a=0a = 0 and b=1b = 1 the region is a right triangle with base 11 and height 11, so the area must be 12\frac{1}{2}, and the formula gives 12−022=12\frac{1^2 - 0^2}{2} = \frac{1}{2}. With a=5a = 5 and b=8b = 8 the region is a trapezoid of area (5+8)(8−5)2=392=19.5\frac{(5+8)(8-5)}{2} = \frac{39}{2} = 19.5, and the formula gives 64−252=392\frac{64 - 25}{2} = \frac{39}{2} as well.

For functions less tame than a straight line, no such shortcut exists, and the strip-by-strip computation becomes considerably heavier. That is what the remaining chapters are for.

Exercises

Exercise 1

Compute the definite integral of y=xy = x over the interval [0,2][0,2].

definite integrallinear functionarea

Approach: Use the formula derived on this page, ∫abx dx=b2−a22\int_a^b x\,dx = \frac{b^2 - a^2}{2}, which was obtained from the definition and confirmed geometrically.

Steps:

  1. Read off the limits: a=0a = 0 and b=2b = 2.
  2. Substitute: ∫02x dx=22−022=4−02=2\int_0^2 x\,dx = \frac{2^2 - 0^2}{2} = \frac{4 - 0}{2} = 2.
  3. Sanity check: the region is a right triangle with base 22 and height 22, so its area is 12⋅2⋅2=2\frac{1}{2}\cdot 2 \cdot 2 = 2.

Answer: ∫02x dx=2\int_0^2 x\,dx = 2.

Exercise 2

Evaluate the definite integral of y=xy = x over [0,1][0,1] and explain the result geometrically.

definite integrallinear functiongeometric meaning

Approach: Compute the value with the formula, then read the geometry off the picture of the region.

Steps:

  1. Compute the integral: ∫01x dx=12−022=12\int_0^1 x\,dx = \frac{1^2 - 0^2}{2} = \frac{1}{2}.
  2. Geometric reading: over [0,1][0,1] the line y=xy = x runs from the origin to the point (1,1)(1,1), so the region is a right triangle with base 11 and height 11.
  3. Its area is 1×12=12\frac{1 \times 1}{2} = \frac{1}{2}, exactly the value of the integral.

Answer: ∫01x dx=12\int_0^1 x\,dx = \frac{1}{2}, which is the area of the right triangle bounded by y=xy = x, the xx-axis and the line x=1x = 1.

Exercise 3

Evaluate ∫−12x dx\int_{-1}^{2} x\,dx, and then find the total area of the region between y=xy = x and the xx-axis on [−1,2][-1,2]. Why are the two answers different?

definite integralsigned areageometric meaninglinear function

Approach: The definite integral always gives the signed area, so compute it first. The total area needs the absolute value of the integrand, which means splitting the interval at the point where the curve crosses the axis.

Steps:

  1. Evaluate the integral with the formula: ∫−12x dx=22−(−1)22=4−12=32\int_{-1}^{2} x\,dx = \frac{2^2 - (-1)^2}{2} = \frac{4 - 1}{2} = \frac{3}{2}.
  2. The curve y=xy = x crosses the axis at x=0x = 0, and it is below the axis on [−1,0][-1,0] and above it on [0,2][0,2].
  3. The total area is ∫−10∣x∣ dx+∫02∣x∣ dx=∫−10(−x) dx+∫02x dx=12+2=52\int_{-1}^0 \lvert x\rvert\,dx + \int_0^2 \lvert x\rvert\,dx = \int_{-1}^0 (-x)\,dx + \int_0^2 x\,dx = \frac{1}{2} + 2 = \frac{5}{2}.
  4. The two numbers differ because the integral counts the part below the axis negatively: the triangle of area 12\frac{1}{2} under the axis on [−1,0][-1,0] is subtracted from the triangle of area 22 above it, leaving 2−12=322 - \frac{1}{2} = \frac{3}{2}.

Answer: ∫−12x dx=32\int_{-1}^{2} x\,dx = \frac{3}{2} is the signed area, while the geometric area of the region is 52\frac{5}{2}.


Summary

The definite integral is a limit of Riemann sums, and running that limit on y=xy = x makes the machinery concrete: cut the interval into strips, approximate each by a rectangle, sum the areas, and let the strips become infinitely thin. The two summation formulas involved — ∑i=1ni=n(n+1)2\sum_{i=1}^{n} i = \frac{n(n+1)}{2} and the geometric series behind it — are what make the limit evaluable, and the result ∫abx dx=b2−a22\int_a^b x\,dx = \frac{b^2 - a^2}{2} reproduces the trapezoid area formula exactly.

Two lessons are worth carrying forward. First, always check an integral against an independent argument when one is available; the agreement between the strip computation and the trapezoid formula is what makes the definition trustworthy. Second, remember what the integral computes: signed area, not total area. When the curve dips below the axis, the two differ, and confusing them is one of the most consequential errors in the whole subject.

Symbols Used in This Article

SymbolTypePronunciation/ExplanationMeaning in This Article
∫\intmathematical symbolintegralThe definite integral sign
Δx\Delta xGreek letterdelta xThe width of one strip
∑\sumGreek lettersigmaThe summation sign
lim⁡\limmathematical symbollimitThe limit operator
nnmathematical symbolnThe number of strips
xix_imathematical symbolx sub iThe sample point chosen in the ii-th strip
a,ba, bmathematical symbola, bThe left and right endpoints of the interval

Found an issue with this content?

Tell us what could be improved.