# 7. Indefinite integral

### Antiderivative

Given a function , we try to find a function such that , called antiderivative of . Such a function may not exist, but it certainly exists if is continuous. If if exists, there exist infinitely many of them. Indeed, if is an antiderivative of , then , where is an arbitrary constant, also is an antiderivative, because .

The set of all antiderivatives of , will be called its indefinite integral and denoted by . We know how to calculate derivatives, so we can also easily guess integrals of some simple functions. E.g: , because .

It is worth noticing that:

if , and:

it is also clear that:

Therefore, e.g.:

If we additionally assume that we are looking for a function such that , then we know that .

### Integration by parts

But sometimes it is hard to guess a function such that the function we would like to integrate is its derivative. There are two methods which may make it easier, but even those methods require some guessing.

The first one is called the integration by parts. Recall that , therefore . And so:

— and this is the theorem of integration by parts.

How to use it? It may happen that we are not able to guess the left-hand side integral, but the right-hand side integral is easy. Usually the hard part is to guess what are the functions i .

E.g, let us calculate . We need to write as . Let therefore (so ) and . Then: . Now we use the theorem and get :

### Integration by substitution

The second method is called integration by substitution. This time we make use of the formula for integrating composition of functions. Recall that , where is an antiderivative of , so . Therefore, . So finally:

It looks quite complicated but it is easy to use. E.g. let us calculate — it is easy to see what substitution we should use. Simply let and , then and . It may be even convenient to use the traditional notation of the derivative: . Therefore (remember to use substitute back at the end):

sin x^3\, dx=\int \sin t\, dt=-\cos t+C=-\cos x^3+C.\]

### Integrating rational functions

Rational functions can be integrated by a following method. First we will have to put a given rational function into a form of a sum of simple fractions i.e. functions of form:

and

where the polynomial in the denominator has no roots (), and then we will only need to know how to integrate simple fractions.

How to calculated simple fractions from a given ration functions? Those fractions are given by multiplicative form of the polynomial in the denominator. E.g. if:

first we should notice that , and then we know that:

and we can calculate summing the right side of the equation — in this case .

So now we shall calculate integrals of those simple fractions

are easy, because we know that

The second type of simple fractions:

are more complicated.
Notice, that:

and again the first integral is easy, because:

As for the second one we will need a following tricky substitution , then and , and so:

Finally can be easily calculated for , because:

and for larger , we have the following formula which can be deduced from the integration by parts:

Examples of integration of some rational functions can be found in the second part of exercises.

### Substitutions leading to a rational function

Many functions can be changed to a rational function by some simple substitutions. The following substitutions can be used:

• if we deal with a fraction with and expressions of form , we can substitute ,
• if we deal with a fraction with to any powers, we can use substitution ,
• if we deal with a fraction with and , it makes sense to substitute . Then and (by trigonometric transformations).

E.g.:

we substitute and get: