Introduction to Definite Integrals

While the indefinite integral f(x)dx\int f(x)\,dx represents a family of anti-derivatives differing by an arbitrary constant CC, a definite integral gives a single numerical value.

The definite integral of a function f(x)f(x) from x=ax=a to x=bx=b is written as: abf(x)dx\int_a^b f(x)\,dx Here:

  • aa is the lower limit
  • bb is the upper limit

If f(x)0f(x) \ge 0 for all x[a,b]x \in [a,b], then geometrically abf(x)dx\int_a^b f(x)\,dx represents the area bounded by the curve y=f(x)y=f(x), the x-axis, and the vertical lines x=ax=a and x=bx=b.

If f(x)f(x) takes negative values on part of the interval, then the definite integral represents signed area: area above the x-axis is taken positive and area below the x-axis is taken negative.

Definite Integral as the Limit of a Sum

The definite integral arises from the idea of approximating area under a curve by dividing the interval into many thin rectangles and then adding their areas.

Let f(x)f(x) be continuous on [a,b][a,b]. Divide the interval into nn equal parts, each of width h=ban.h = \frac{b-a}{n}. Then the points of division are: a, a+h, a+2h, , a+nh=b.a,\ a+h,\ a+2h,\ \dots,\ a+nh=b.

Using left endpoints, the definite integral is defined by the limit: abf(x)dx=limnh[f(a)+f(a+h)+f(a+2h)++f(a+(n1)h)].\int_a^b f(x)\,dx = \lim_{n\to\infty} h\,[f(a)+f(a+h)+f(a+2h)+\dots+f(a+(n-1)h)].

Equivalently, in sigma notation: abf(x)dx=limnr=0n1f(a+rh)h,h=ban.\int_a^b f(x)\,dx = \lim_{n\to\infty} \sum_{r=0}^{n-1} f(a+rh)\,h, \qquad h=\frac{b-a}{n}.

This is called a Riemann sum. In practice, however, evaluating definite integrals directly from this definition is cumbersome, so we use the Fundamental Theorem of Calculus.

First Fundamental Theorem of Calculus

Let ff be continuous on the closed interval [a,b][a,b]. Define the area function A(x)=axf(t)dt.A(x)=\int_a^x f(t)\,dt. Here tt is called a dummy variable; it is used only inside the integral.

First Fundamental Theorem of Calculus: If A(x)=axf(t)dtA(x)=\int_a^x f(t)\,dt, then A(x)=f(x).A'(x)=f(x).

This theorem shows that differentiation and integration are inverse processes. In other words, if you first accumulate area under the curve and then differentiate that area function, you recover the original function.

Second Fundamental Theorem of Calculus

This theorem is the practical tool used to evaluate definite integrals.

Let ff be continuous on [a,b][a,b] and let FF be any anti-derivative of ff, that is, F(x)=f(x).F'(x)=f(x). Then: abf(x)dx=[F(x)]ab=F(b)F(a).\int_a^b f(x)\,dx = [F(x)]_a^b = F(b)-F(a).

Working rule

  1. Find an anti-derivative F(x)F(x) of f(x)f(x).
  2. Evaluate F(b)F(b) at the upper limit.
  3. Evaluate F(a)F(a) at the lower limit.
  4. Subtract: F(b)F(a)F(b)-F(a).

There is no need to write the constant of integration CC, because it cancels automatically: [F(b)+C][F(a)+C]=F(b)F(a).[F(b)+C]-[F(a)+C]=F(b)-F(a).

Evaluation of Definite Integrals by Substitution

When using substitution in a definite integral, it is essential to change the limits according to the new variable.

Suppose we want to evaluate: abf(g(x))g(x)dx\int_a^b f(g(x))g'(x)\,dx Make the substitution: t=g(x),dt=g(x)dx.t=g(x), \qquad dt=g'(x)\,dx. Then the limits change as follows:

  • when x=ax=a, the new lower limit becomes t=g(a)t=g(a)
  • when x=bx=b, the new upper limit becomes t=g(b)t=g(b)

So the integral becomes: g(a)g(b)f(t)dt.\int_{g(a)}^{g(b)} f(t)\,dt.

A major advantage of this method is that once the limits are changed properly, you do not need to substitute back to the variable xx at the end.

Example 1: Evaluating a Polynomial Definite Integral

Evaluate: 13(x2+2x)dx\int_1^3 (x^2+2x)\,dx

Solution: Step 1: Find an anti-derivative of x2+2xx^2+2x. (x2+2x)dx=x33+x2\int (x^2+2x)\,dx = \frac{x^3}{3}+x^2 So we take: F(x)=x33+x2F(x)=\frac{x^3}{3}+x^2

Step 2: Apply the Second Fundamental Theorem of Calculus. 13(x2+2x)dx=[x33+x2]13\int_1^3 (x^2+2x)\,dx = \left[\frac{x^3}{3}+x^2\right]_1^3

Step 3: Evaluate at the upper limit x=3x=3. F(3)=273+9=9+9=18F(3)=\frac{27}{3}+9=9+9=18

Step 4: Evaluate at the lower limit x=1x=1. F(1)=13+1=43F(1)=\frac{1}{3}+1=\frac{4}{3}

Step 5: Subtract. F(3)F(1)=1843=5443=503F(3)-F(1)=18-\frac{4}{3}=\frac{54-4}{3}=\frac{50}{3}

Answer: 503\frac{50}{3}

Example 2: Evaluating a Trigonometric Definite Integral

Evaluate: 0π/4sec2xdx\int_0^{\pi/4} \sec^2 x\,dx

Solution: Step 1: Recall the anti-derivative: sec2xdx=tanx\int \sec^2 x\,dx = \tan x So we take: F(x)=tanxF(x)=\tan x

Step 2: Apply the limits. 0π/4sec2xdx=[tanx]0π/4\int_0^{\pi/4} \sec^2 x\,dx = [\tan x]_0^{\pi/4}

Step 3: Evaluate. =tan(π4)tan(0)=10=1= \tan\left(\frac{\pi}{4}\right)-\tan(0)=1-0=1

Answer: 11

Example 3: Definite Integral of an Exponential Function

Evaluate: 01exdx\int_0^1 e^x\,dx

Solution: Step 1: The anti-derivative of exe^x is itself. F(x)=exF(x)=e^x

Step 2: Apply the limits. 01exdx=[ex]01\int_0^1 e^x\,dx = [e^x]_0^1

Step 3: Evaluate at the endpoints. =e1e0=e1= e^1-e^0=e-1

Answer: e1e-1

Example 4: Definite Integral by Substitution

Evaluate: 012x1+x2dx\int_0^1 \frac{2x}{1+x^2}\,dx

Solution: Step 1: Use substitution. Let: t=1+x2t=1+x^2 Then: dt=2xdxdt=2x\,dx

Step 2: Change the limits. When x=0x=0, t=1+02=1t=1+0^2=1 When x=1x=1, t=1+12=2t=1+1^2=2

Step 3: Rewrite the integral completely in terms of tt. 121tdt\int_1^2 \frac{1}{t}\,dt

Step 4: Integrate. 1tdt=lnt\int \frac{1}{t}\,dt = \ln|t| So, 121tdt=[lnt]12\int_1^2 \frac{1}{t}\,dt = [\ln|t|]_1^2

Step 5: Evaluate the limits. =ln2ln1=ln20=ln2= \ln 2 - \ln 1 = \ln 2 - 0 = \ln 2

Answer: ln2\ln 2

Example 5: Substitution with Trigonometric Functions

Evaluate: 0π/2sin3xcosxdx\int_0^{\pi/2} \sin^3 x \cos x\,dx

Solution: Step 1: Use substitution. Let: t=sinxt=\sin x Then: dt=cosxdxdt=\cos x\,dx

Step 2: Change the limits. When x=0x=0, t=sin0=0t=\sin 0=0 When x=π/2x=\pi/2, t=sin(π2)=1t=\sin\left(\frac{\pi}{2}\right)=1

Step 3: Rewrite the integral. 01t3dt\int_0^1 t^3\,dt

Step 4: Integrate. t3dt=t44\int t^3\,dt = \frac{t^4}{4} So, [t44]01=144044=14\left[\frac{t^4}{4}\right]_0^1 = \frac{1^4}{4}-\frac{0^4}{4}=\frac{1}{4}

Answer: 14\frac{1}{4}