### Riemann’s integral

Assume, that we are given a function , and we would like to calculate (intuitively and somehow imprecisely speaking) the area under the graph of , meaning the measure of the area between the axis and the graph in a given interval , but taking the areas under the axis (if there are some) in the negative. How to calculate it?

We can divide the area into some rectangular bars and calculate the sum of areas of those bars, and (if our function is not very weird), the more precise our partition will be the more accurately we will get the area. In other words we speak about a limit, called the Riemann’s integral.

Assume we are given a sequence of partitions of into subintervals, namely in the -th step let be such that the distance between two consequent points is near to zero, precisely such that , and let , then the Riemann’s integral is the following limit:

which is the limit of the sum of areas of those bars, if this limit exists and does not depend on the choice of the partitions and points .

This integral exists, if is a nice function, e.g. it exists if is continuous or if is monotone. In such a case we can take any partition into bars (if its maximal width decreases in the limit to zero).

E.g.: let us calculate — take partition , . And . We get:

### Definite and indefinite integrals

Actually, the primitive function and the Riemann’s integral are very similar ideas, namely if , is a primitive function of , then:

Often we denote by .

So, e.g.:

### Integration by parts

Integration by parts works in the same way as in the indefinite case:

E.g.:

### Integration by substitution

Integration by substitution can also be used but one needs to remember to change the limits of the integral respectively.

E.g. we would like to calculate , and we will use substitution . We get and and , and therefore:

### Improper integral

Sometimes we would like to integrate functions in such a way that one of the integral limits is or any other point in which the indefinite integral in undefined. Such a integral can be understood as a limit of integrals, e.g.:

### Measuring area

Obviously, it means that we can measure an area just subtracting integrals. E.g. area between line and curve (they intersect at i and the line is above), is:

### Length of a curve

We can also calculate a length of a curve using integrals. Given a parametrization of a curve , its length between and , is given by the following formula:

Let us check this formula for the line between and . Such a line has parametrization . Therefore its length is:

### Definite integral and derivatives

Consider a function

It is a function of , and we can calculate its derivative. This is easy. Let be such that . Then

so

e.g. if , then .