Calculus/Integration
Definition of the Integral


The rough idea of defining the area under the graph of f is to approximate this area with a finite number of rectangles. Since we can easily work out the area of the rectangles we get an estimate of the area under the graph. If we use a larger number of rectangles we expect a better approximation, and the limit as we approach an infinite number of rectangles will give the exact area.
Suppose first that f is positive and a<b. We pick an integer n and divide the interval [a,b] into n subintervals of equal width (see Figure 2). As the interval [a,b] has width b-a each subinterval has width We denote the endpoints of the subintervals by so

Now for each pick a sample point in the interval and consider the rectangle of height and width (see Figure 3). The area of this rectangle is . By adding up the area of all the rectangles for we get that the area S is approximated by
A more convenient way to write this is with the summation notation as
For each number n we get a different approximation. As n gets larger the width of the rectangles gets smaller which yields a better approximation (see Figures 4 and 5). In the limit as as n tends to infinity we get the area of S.
Definition of the Definite Integral Suppose f is a continuous function on [a,b] and . Then the definite integral of f between a and b is
where are any sample points in the interval .
It is a fact that if f is continuous on [a,b] then this limit always exists and does not depend on the choice of the points . For instance they may be evenly spaced, or distributed ambiguously throughout the interval. The proof of this is technical and is beyond the scope of this section.
Notation When considering the expression the function f is called the integrand and the interval [a,b] is the interval of integration. Also a is called the lower limit and b the upper limit of integration.
One important feature of this definition is that we also allow functions which take negative values. If f(x)<0 for all x then so . So the definite integral of f will be strictly negative. More generally if f takes on both positive an negative values then will be the area under the positive part of the graph of f minus the area under the graph of the negative part of the graph (see Figure 6). For this reason we say that is the signed area under the graph.



A geometrical proof that anti-derivative gives the area
Suppose we have an function F(x) which returns the area between x and some unknown point u. (Actually, u is the first number before x which satisfies F(u) = 0, but our solution is independent from u, so we won't bother ourselves with it.) We don't even know if something like F exists or not, but we're going to investigate what clue do we have if it does exists.
We can use F to calculate the area between a and b, for instance, which is obviously F(b)-F(a); F is something general. Now, consider a rather peculiar situation, the area bounded at and , in the limit of . Of course it can be calculated by using F, but we're looking for another solution this time. As the right border approaches the left one, the shape seems to be an infinitesimal rectangle, with the height of f(x) and width of . So, the area reads:
Of course, we could use F to calculate this area as well:
By combining these eqautions, we have
If we divide both sides by , we get
which is an interesting result, because the left-hand side is the derivative of F with respect to x. This remarkable result doesn't tell us what F itself is, however it tells us what the derivative of F is, and it is f.
Independence of Variable
It is important to notice that the variable x did not play an important role in the definition of the integral. In fact we can replace it with any other letter, so the following are all equal: Each of these is the signed area under the graph of f between a and b.
Left and Right Handed Riemann Sums
We could have decided to choose all our sample points to be on the right hand side of the interval (see Figure 7). Then for all i and the approximation that we called for the area becomes
This is called the right-handed Riemann sum, and the integral is the limit
Alternatively we could have taken each sample point on the left hand side of the interval. In this case (see Figure 8) and the approximation becomes
Then the integral of f is
The key point is that, as long as f is continuous, these two definitions give the same answer for the integral.


Example 1
In this example we will calculate the area under the curve given by the graph of for x between 0 and 1. First we fix an integer n and divide the interval into n subintervals of equal width. So each subinterval has width
To calculate the integral we will use the right-handed Riemann Sum. (We could have used the left-handed sum instead, and this would give the same answer in the end). For the right-handed sum the sample points are
Notice that . Putting this into the formula for the approximation,
Now we use the formula
to get
To calculate the integral of f between 0 and 1 we take the limit as n tends to infinity,
Example 2
Next we show how to find the integral of the function between x=a and x=b. This time the interval [a,b] has width b-a so
Once again we will use the right-handed Riemann Sum. So the sample points we choose are
Thus
We have to calculate each piece on the right hand side of this equation. For the first two,
For the third sum we have to use a formula
to get
Putting this together
Taking the limit as n tend to infinity gives
Basic Properties of the Integral
The Constant Rule
From the definition of the integral we can deduce some basic properties. We suppose that f and g are continuous on [a,b].
Integrating Constants
If c is constant then
When and this integral is the area of a rectangle of height c and width b-a which equals c(b-a).
Example
Constant Rule
When f is positive, the height of the function cf at a point x is c times the height of the function f. So the area under cf between a and b is c times the area under f. We can also give a proof using the definition of the integral, using the constant rule for limits,
Example We saw in the previous section that
- .
Using the constant rule we can use this to calculate that
Example We saw in the previous section that
- . We can use this and the constant rule to calculate that
The addition and subtraction rule
Addition and Subtraction Rules of Integration
As with the constant rule, the addition rule follows from the addition rule for limits:
= = =
The subtraction rule can be proved in a similar way.
Example From above and so
Example
The Comparison Rule
Comparison Rule
- Suppose for all x in [a,b]. Then
- Suppose for all x in [a,b]. Then
- Suppose for all x in [a,b]. Then
If then each of the rectangles in the Riemann sum to calculate the integral of f will be above the y axis, so the area will be non-negative. If then and by linearity of the integral we get the second property. Finally if then the area under the graph of f will be greater than the area of rectangle with height m and less than the area of the rectangle with height M (see Figure 9). So

Linearity with respect to endpoints
Additivity with respect to endpoints Suppose . Then
Again suppose that f is positive. Then this property should be interpreted as saying that the area under the graph of f between a and b is the area between a and c plus the area between c and b (see Figure 8)

Extension of Additivity with respect to limits of integration
When we have that so
Also in defining the integral we assumed that a<b. But the definition makes sense even when b<a in which case so has changed sign. This gives
With these definitions,
whatever the order of a,b,c.
Fundamental Theorem of Calculus
Statement of the Fundamental Theorem
Suppose that f is continuous on [a,b]. We can define a function F by
Fundamental Theorem of Calculus Part I Suppose f is continuous on [a,b] and F is defined by
Then F is differentiable on (a,b) and for all ,
- o
Now recall that F is said to be an antiderivative of f if .
Fundamental Theorem of Calculus Part II Suppose that f is continuous on [a,b] and that F is any antiderivative of f. Then

Note: a minority of mathematicians refer to part one as two and part two as one. All mathematicians refer to what is stated here as part 2 as The Fundamental Theorem of Calculus.
Proofs
Proof of Fundamental Theorem of Calculus Part I
Suppose x is in (a,b). Pick so that is also in (a, b). Then
and
- .
Subtracting the two equations gives
Now
so rearranging this we have
According to the mean value theorem for integration, there exists a c in [x, x + Δx] such that
- .
Notice that c depends on . Anyway what we have shown is that
- ,
and dividing both sides by Δx gives
- .
Take the limit as we get the definition of the derivative of F at x so we have
- .
To find the other limit, we will use the squeeze theorem. The number c is in the interval [x, x + Δx], so x≤ c ≤ x + Δx. Also, and . Therefore, according to the squeeze theorem,
- .
As f is continuous we have
which completes the proof.
Proof of Fundamental Theorem of Calculus Part II
Define Then by the Fundamental Theorem of Calculus part I we know that P is differentiable on (a,b) and for all
So P is an antiderivative of f. Now we were assuming that F was also an antiderivative so for all ,
A consequence of the Mean Value Theorem is that this implies there is a constant C such that for all ,
- ,
and as P and F are continuous we see this holds when x=a and when x=b as well. Since we know that P(a)=0 we can put x=a into the equation to get 0=F(a) +C so C=-F(a). And putting x=b gives
Integration of Polynomials
Using the power rule for differentiation we can find a formula for the integal of a power using the Fundamental Theorem of Calculus. Let . We want to find an antiderivative for f. Since the differentation rule for powers lowers the power by 1 we have that
As long as we can divide by n+1 to get
So the function is an antiderivative of f. If a,b>0 then F is continuous on [a,b] and we can apply the Fundamental Theorem of Calculus we can calculate the integral of f to get the following rule.
Power Rule of Integration I
as long as and
Notice that we allow all values of n, even negative or fractional. If n>0 then this works even if a or b are negative.
Power Rule of Integration II
as long as
Example
To find we raise the power by 1 and have to divide by 4. So
Example
The power rule also works for negative powers. For instance
Example
We can also use the power rule for fractional powers. For instance
Example
Using the linearity rule we can now integrate any polynomial. For example
Indefinite Integrals
The Fundamental Theorem of Calculus tells us that if f is continuous then the function is an antiderivative of f (i.e. . However it is not the only antiderivative. We can add any constant to F without changing the derivative.
We write if the derivative of F is
Example
Since the derivative of is the general antiderivative of is plus a constant. Thus
Example: Finding antiderivatives
Let us return to the previous example, that of . How would we go about finding the integral of this function? Recall the rule from differentiation that
In our circumstance, we have:
This is a start! We now know that the function we seek will have a power of 3 in it. How would we get the constant of 6? Well,
Thus, we say that is an antiderivative of .
Basic Properties of Indefinite Integrals
Constant Rule for indefinite integrals
If c is constant then
Sum/Difference Rule for indefinite integrals
Indefinite integrals of Polynomials
Since
we have the following rule for indefinite integrals.
Power rule for indefinite integrals If then
Integral of the Inverse function
Since
We know that
Note that the polynomial integration rule does not apply when the exponent is -1. This technique of integration must be used instead. Since the argument of the natural logarithm function must be positive (on the real line), the absolute value signs are added around its argument to ensure that the argument is positive.
Integral of Sine and Cosine
In this section we will concern ourselves with determining the integrals of the sin and cosine function.
Recall that
So sin x is an antiderivative of cos x and -cos x is an antiderivative of sin x. Hence we get the following rules for integrating sin x and cos x.
We will find how to integrate more complicated trigonometric functions in the chapter on Further integration techniques.
Integral of the Exponential function
Since
we see that is its own antiderivative. Perhaps a more useful definition of this rule can be given as:
hence:
Where the exponent (x) is differentiated to give a value of 1
Simplified:
Becomes:
So the integral of an exponential function can be found thusly:
Integration Rules
The Substitution Rule
Suppose that we want to find
The Fundamental theorem of calculus tells us that we want to find an antiderivative of the function:
Since differentiates to as a first guess we might try the function . But by the Chain Rule
which is almost what we wanted apart from the fact that there is an extra factor of 2 in front. But this is easily dealt with because we can divide by any constant so
So using the Fundamental Theorem of Calculus,
In fact this technique will work for more general integrands. Suppose u is a differentiable function. Then to evaluate we just have to notice that by the Chain Rule
As long at is continuous the Fundamental Theorem applies and tells us that
Now the right hand side of this equation is just the intgral of but with respect to u. If we write u instead of u(x) this becomes
So for instance if we have worked out that
Now there was nothing special about using the cosine function in the discussion above, and it could be replaced by any other function. Doing this gives us the substitution rule for indefinite integrals.
Substitution rule for indefinite integrals Assume u is differentiable with continuous derivative and that f is continuous on the range of u. Then
Notice that it looks like you can cancel in the expression to leave just a . This does not really make any sense as is not a fraction, but is a good way to remember the substitution rule.
There is a similar rule for definite integrals, but we have to change the endpoints.
Substitution rule for definite integrals Assume u is differentiable with continuous derivative and that f is continuous on the range of u. Suppose and . Then
Examples
Consider the integral
By using the substitution u = x2 + 1, we obtain du = 2x dx and
Note how the lower limit x = 0 was transformed into u = 02 + 1 = 1 and the upper limit x = 2 into u = 22 + 1 = 5.
Proof of the substitution rule
We will now prove the substitution rule for definite integrals. Let F be an anti derivative of f so
- . By the Fundamental Theorem of Calculus
Next we define a function by the rule
Then by the Chain rule G is differentiable with derivative
Integrating both sides with respect to x and using the Fundamental Theorem of Calculus we get
But by the definition of F this equals
Hence
which is the substitution rule for definite integrals.
Integration of even and odd functions
Recall that a function f is called odd if it satisfies and is called even if
Suppose f is a continuous odd function then for any a,
If f is a continuous even function then for any a,
Caution: For improper integrals (e.g. if a is infinity, or if the function approaches infinity at 0 or a, etc.), the first equation above is only true if exists. Otherwise the integral is undefined, and only the Cauchy principal value is 0.
Suppose f is an odd function and consider first just the integral from -a to 0. We make the substitution u=-x so du=-dx. Notice that if x=-a then u=a and if x=0 then u=0. Hence Now as f is odd, so the integral becomes Now we can replace the dummy variable u with any other variable. So we can replace it with the letter x to give
Now we split the integral into two pieces
The proof of the formula for even functions is similar, and is left as an exercise.
Integration by Parts
Integration by parts for indefinite integrals Suppose f and g are differentiable and their derivatives are continuous. Then
If we write u=f(x) and v=g(x) then using the Leibnitz notation du=f'(x) dx and dv=g'(x) dx and the integration by parts rule becomes
For definite integrals the rule is essentially the same, as long as we keep the endpoints.
Integration by parts for definite integrals Suppose f and g are differentiable and their derivatives are continuous. Then
- .
This can also be expressed in Leibniz notation.
Example Find
Here we let:
- , so that ,
- , so that .
Then:
where C is an arbitrary constant of integration.
Example
In this example we will have to use integration by parts twice.
Here we let
- , so that ,
- , so that .
Then:
Now to calculate the last integral we use integration by parts again. Let
- , so that ,
- , so that
and integrating by parts gives
So in the end
Example
Find
The trick here is to write this integral as
Now let
- so ,
- so .
Then using integration by parts,
where, again, C is an arbitrary constant.
Example
Find
Again the trick here is to write the integrand as . Then let
- u = arctan(x); du = 1/(1+x2) dx
- v = x; dv = 1·dx
so using integration by parts,
Example Find : This example uses integration by parts twice. First let,
- u = ex; thus du = exdx
- dv = cos(x)dx; thus v = sin(x)
so
Now, to evaluate the remaining integral, we use integration by parts again, with
- u = ex; du = exdx
- v = -cos(x); dv = sin(x)dx
Then
Putting these together, we get
Notice that the same integral shows up on both sides of this equation. So we can simply add the integral to both sides to get: