Quadratic Function Example in Integral Calculus

The previous page ran the definition of the definite integral on a straight line and arrived at ∫abx dx=b2−a22\int_a^b x\,dx = \frac{b^2-a^2}{2}. Now the integrand becomes a parabola. The procedure is identical — cut the interval into strips, approximate each by a rectangle, sum, and pass to the limit — but the algebra inside the sum is heavier, because the height of each rectangle is now a square.

That extra weight is instructive rather than annoying. Squaring the sample point makes the sum expand into three separate pieces instead of two, and the three pieces need three different summation formulas. Working through the expansion carefully is the fastest way to see how the machinery of integration actually scales, and the payoff is the second of the fundamental power-rule formulas: ∫abx2 dx=b3−a33\int_a^b x^2\,dx = \frac{b^3-a^3}{3}.

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.

For this page the integrand is f(x)=x2f(x) = x^2, and again we take the right endpoint of each piece, so xi=a+iΔxx_i = a + i\Delta x. The height of the ii-th rectangle is therefore xi2x_i^2 and its area is xi2⋅Δxx_i^2 \cdot \Delta x.

The Problem

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

Why Geometry Alone Is Not Enough

For y=xy = x the region was a trapezoid, and an elementary area formula finished the job. For y=x2y = x^2 the region is a curvilinear trapezoid: its lower and upper edges are straight, but its other boundary is an arc of a parabola. There is no elementary formula for the area of such a region, so the integral has to do the work.

What geometry can still contribute is a bound. Since x2x^2 is increasing on [0,+∞)[0, +\infty), the right-endpoint rectangles lie below the curve and the left-endpoint rectangles lie above it. So the right-endpoint sum is a lower estimate of the true area and the left-endpoint sum is an upper estimate, and the exact value is squeezed between them as nn grows. That is worth keeping in mind: every sum computed on this page is provably an underestimate, and the limit is what removes the error.

The Integral Route

  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 xi2x_i^2 and width Δx\Delta x, so its area is xi2⋅Δxx_i^2 \cdot \Delta x.
  3. Add the areas of all nn strips, and then let nn grow without bound.

The total area is ∑i=1nxi2⋅Δx\sum_{i=1}^{n} x_i^2 \cdot \Delta x, and the exact area is

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

The Summation Formula We Need

Squaring the sample point turns the single sum ∑i\sum i into two sums with different weights, so a second formula is required alongside the one used for the linear case.

Sum of the first n squares

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

Carrying Out the Limit

With xi=a+iΔxx_i = a + i\Delta x and Δx=b−an\Delta x = \frac{b-a}{n}, the sum becomes

∑i=1nxi2⋅Δx=∑i=1n(a+i⋅b−an)2⋅b−an\sum_{i=1}^{n} x_i^2 \cdot \Delta x = \sum_{i=1}^{n} \left(a + i \cdot \frac{b-a}{n}\right)^2 \cdot \frac{b-a}{n} =∑i=1n(a2+2a⋅i⋅b−an+i2⋅(b−a)2n2)⋅b−an=∑i=1n(a2⋅b−an+2a⋅i⋅(b−a)2n2+i2⋅(b−a)3n3)= \sum_{i=1}^{n} \left(a^2 + 2a \cdot i \cdot \frac{b-a}{n} + i^2 \cdot \frac{(b-a)^2}{n^2}\right) \cdot \frac{b-a}{n} = \sum_{i=1}^{n} \left(a^2 \cdot \frac{b-a}{n} + 2a \cdot i \cdot \frac{(b-a)^2}{n^2} + i^2 \cdot \frac{(b-a)^3}{n^3}\right) =n⋅a2⋅b−an+2a⋅(b−a)2n2⋅∑i=1ni+(b−a)3n3⋅∑i=1ni2= n \cdot a^2 \cdot \frac{b-a}{n} + 2a \cdot \frac{(b-a)^2}{n^2} \cdot \sum_{i=1}^{n} i + \frac{(b-a)^3}{n^3} \cdot \sum_{i=1}^{n} i^2 =a2(b−a)+2a⋅(b−a)2n2⋅n(n+1)2+(b−a)3n3⋅n(n+1)(2n+1)6.= a^2(b-a) + 2a \cdot \frac{(b-a)^2}{n^2} \cdot \frac{n(n+1)}{2} + \frac{(b-a)^3}{n^3} \cdot \frac{n(n+1)(2n+1)}{6}.

Now let n→∞n \to \infty. The three pieces settle separately: n+1n→1\frac{n+1}{n} \to 1, n+1n→1\frac{n+1}{n} \to 1, and (n+1)(2n+1)n2→2\frac{(n+1)(2n+1)}{n^2} \to 2. Hence

lim⁡n→∞[a2(b−a)+a(b−a)2⋅n+1n+(b−a)36⋅(n+1)(2n+1)n2]=a2(b−a)+a(b−a)2+(b−a)33.\lim_{n \to \infty} \left[a^2(b-a) + a(b-a)^2 \cdot \frac{n+1}{n} + \frac{(b-a)^3}{6} \cdot \frac{(n+1)(2n+1)}{n^2}\right] = a^2(b-a) + a(b-a)^2 + \frac{(b-a)^3}{3}.

To recognise the result, factor out b−ab-a and use b=a+(b−a)b = a + (b-a):

a2(b−a)+a(b−a)2+(b−a)33=(b−a)(a2+a(b−a)+(b−a)23)=(b−a)⋅b2+ab+a23=b3−a33.a^2(b-a) + a(b-a)^2 + \frac{(b-a)^3}{3} = (b-a)\left(a^2 + a(b-a) + \frac{(b-a)^2}{3}\right) = (b-a) \cdot \frac{b^2 + ab + a^2}{3} = \frac{b^3 - a^3}{3}. ∫abx2 dx=b3−a33.\int_a^b x^2 \, dx = \frac{b^3 - a^3}{3}.

Verification

The power rule for antiderivatives gives the same answer immediately, since ddx(x33)=x2\frac{d}{dx}\left(\frac{x^3}{3}\right) = x^2 and therefore ∫abx2 dx=[x33]ab=b3−a33\int_a^b x^2\,dx = \left[\frac{x^3}{3}\right]_a^b = \frac{b^3-a^3}{3}. The point of the computation above is that it derives this from the definition instead of assuming it.

Two numerical checks are worth making. On [0,1][0,1] the formula gives 13\frac{1}{3}, and the region is a curvilinear triangle whose area must lie strictly between 00 and the unit square of area 11 — consistent. On [0,2][0,2] it gives 83≈2.67\frac{8}{3} \approx 2.67, which must exceed the area under y=xy = x on the same interval, namely 22, because x2≥xx^2 \ge x for x≥1x \ge 1 while x2≤xx^2 \le x for x≤1x \le 1; the net gain on [1,2][1,2] outweighs the loss on [0,1][0,1].

Exercises

Exercise 1

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

definite integralquadratic functionarea

Approach: Use the formula derived on this page, ∫abx2 dx=b3−a33\int_a^b x^2\,dx = \frac{b^3 - a^3}{3}, which was obtained from the definition of the definite integral.

Steps:

  1. Read off the limits: a=0a = 0 and b=2b = 2.
  2. Substitute: ∫02x2 dx=23−033=8−03=83\int_0^2 x^2\,dx = \frac{2^3 - 0^3}{3} = \frac{8 - 0}{3} = \frac{8}{3}.
  3. Check the order of magnitude: on [0,2][0,2] we have 0≤x2≤2x0 \leq x^2 \leq 2x, so the area is at most ∫022x dx=4\int_0^2 2x\,dx = 4; and the region contains the rectangle [1,2]×[0,1][1,2] \times [0,1] of area 11, so the area is at least 11. The value 83≈2.67\frac{8}{3} \approx 2.67 satisfies both bounds.

Answer: ∫02x2 dx=83\int_0^2 x^2\,dx = \frac{8}{3}.

Exercise 2

Compute the definite integral of y=x2y = x^2 over the interval [1,3][1,3].

definite integralquadratic functionarea

Approach: Use the formula ∫abx2 dx=b3−a33\int_a^b x^2\,dx = \frac{b^3 - a^3}{3} with the given limits.

Steps:

  1. Read off the limits: a=1a = 1 and b=3b = 3.
  2. Substitute: ∫13x2 dx=33−133=27−13=263\int_1^3 x^2\,dx = \frac{3^3 - 1^3}{3} = \frac{27 - 1}{3} = \frac{26}{3}.
  3. Sanity check: on [1,3][1,3] the curve lies between y=xy = x and y=3xy = 3x, so the area must lie between 44 and ∫133x dx=12\int_1^3 3x\,dx = 12, and 263≈8.67\frac{26}{3} \approx 8.67 does.

Answer: ∫13x2 dx=263\int_1^3 x^2\,dx = \frac{26}{3}.

Exercise 3

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

definite integralquadratic functiongeometric meaning

Approach: Compute the value with the formula, then compare it with the elementary areas that bracket the region.

Steps:

  1. Compute the integral: ∫01x2 dx=13−033=13\int_0^1 x^2\,dx = \frac{1^3 - 0^3}{3} = \frac{1}{3}.
  2. Geometric reading: the region is bounded by the parabola, the xx-axis, and the line x=1x = 1, so it lies inside the unit square and its area is at most 11. It contains the rectangle [12,1]×[0,14][\frac{1}{2}, 1] \times [0, \frac{1}{4}], since x2≥14x^2 \geq \frac{1}{4} there, so the area is at least 12⋅14=18\frac{1}{2} \cdot \frac{1}{4} = \frac{1}{8}.
  3. The value 13\frac{1}{3} lies between 18\frac{1}{8} and 11, and it is exactly one third of the unit square. Note that the area is smaller than the triangle under y=xy = x, which has area 12\frac{1}{2}, because x2≤xx^2 \leq x throughout [0,1][0,1].

Answer: ∫01x2 dx=13\int_0^1 x^2\,dx = \frac{1}{3}, the area of the curvilinear triangle under the parabola on [0,1][0,1].

Exercise 4

Evaluate ∫−11x2 dx\int_{-1}^{1} x^2\,dx and explain why the answer differs from the value of ∫−11x dx\int_{-1}^{1} x\,dx over the same interval.

definite integralsymmetryquadratic functiongeometric meaning

Approach: Evaluate the integral with the formula, and then compare the two integrands on the symmetric interval.

Steps:

  1. Evaluate: ∫−11x2 dx=13−(−1)33=1+13=23\int_{-1}^{1} x^2\,dx = \frac{1^3 - (-1)^3}{3} = \frac{1 + 1}{3} = \frac{2}{3}.
  2. Evaluate the comparison integral: ∫−11x dx=12−(−1)22=1−12=0\int_{-1}^{1} x\,dx = \frac{1^2 - (-1)^2}{2} = \frac{1 - 1}{2} = 0.
  3. The reason for the difference is parity: x2x^2 is an even function, so its values on [−1,0][-1,0] and [0,1][0,1] are equal and the two halves add instead of cancelling, while xx is odd, so its values on the two halves are opposite and they cancel exactly.

Answer: ∫−11x2 dx=23\int_{-1}^{1} x^2\,dx = \frac{2}{3}, whereas ∫−11x dx=0\int_{-1}^{1} x\,dx = 0 because the integrand is odd.


Summary

Running the definition of the definite integral on y=x2y = x^2 shows exactly where the extra difficulty comes from. Squaring the sample point expands the Riemann sum into three pieces instead of two, and each piece brings its own summation formula into play: the sum of the first nn natural numbers and the sum of the first nn squares. Once those are in hand the limit is mechanical, and it produces ∫abx2 dx=b3−a33\int_a^b x^2\,dx = \frac{b^3 - a^3}{3}, which agrees with the power rule for antiderivatives.

The idea that generalizes is the shape of the computation. Each term of the expansion survives the limit as a term of the answer, and the passage from n+1n→1\frac{n+1}{n} \to 1 and (n+1)(2n+1)n2→2\frac{(n+1)(2n+1)}{n^2} \to 2 is the same passage in every power. And as on the previous page, geometry still has a role: because x2x^2 is increasing, the right-endpoint sum is a rigorous lower bound on the area, and any computed answer that falls outside the elementary geometric bounds is wrong.

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
SSmathematical symbolSThe area of the region

Found an issue with this content?

Tell us what could be improved.