Chapter 1
Chapter 1
Indefinite integrals
Contents
1.1 Indefinite integral and Antiderivative . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Direct integration method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.3 Integration By Substitution (Change of Variables) . . . . . . . . . . . . . . . 6
1.4 Integration by parts method . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.5 Integration of a rational function . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.6 Integration of irrational functions . . . . . . . . . . . . . . . . . . . . . . . . . 15
1.7 Integration of trigonometric functions . . . . . . . . . . . . . . . . . . . . . . 23
Example 1.1
∀x ∈ I; F ′ (x) = x4 = f (x).
√
2. Let I =]0,+∞[ and g : I → R be a√function defined by g(x) = x, then the function
G : I → R defined by G(x) = 32 x x is an antiderivative of g on I =]0, + ∞[ since:
√
∀x ∈ I; G′ (x) = x = g(x).
1
Chapter 01 Indefinite integrals
Proposition 1.1
Let f be a function defined and admit an antiderivative on I then:
Proof
1. Let’s assume that f admits an antiderivative F on I then, the functions defined
by: Gk (x) = F (x) + k/k ∈ R are also antiderivatives of f on I since:
Example 1.2
We have:
1
• The indefinite integral of the function on ] − ∞,0[ is defined by:
x
ż
dx
= ln(−x) + c1 /c1 ∈ R
x
1
• The indefinite integral of the function on ]0, + ∞[ is defined by:
x
ż
dx
= ln(x) + c2 /c2 ∈ R
x
1
=⇒ The indefinite integral of the function on R∗ is defined by:
x
ż
dx
= ln |x| + c/c ∈ R
x
Theorem 1.1
Let f : I → R be a function defined on I (I is an open interval), then we have the
following implication:
Example 1.3
Remark 1.4 The procedure for calculating an indefinite integral is called integration, and we
say integrate a function instead of calculating its indefinite integral.
ż !′
3. f (x)dx = f (x)
ż
4. f ′ (x)dx = f (x) + c, c ∈ R
ż
f (x) dx Domain of definition
ż
0 dx = c R
ż
a dx = ax + c/(a = const) R
1
ż
xn dx = xn+1 + c/(n ∈ N) R
n+1
1
ż
xn dx = xn+1 + c/(n ∈ Z − {−1}) R∗
n+1
1
ż
dx = ln |x| + c R∗
x
1
ż
xα dx = xα+1 + c/(α ∈ R − {−1}) R∗+
α+1
ż
ex dx = ex + c R
1 x
ż
ax dx = a + c /(a ∈ R∗+ − {1}) R
ln(a)
ż
cos(x) dx = sin(x) + c R
ż
f (x) dx Domain of definition
ż
sin(x) dx = − cos(x) + c R
dx
ż
= tan(x) + c R − { π2 + kπ/k ∈ Z}
cos2 (x)
1
ż
√ dx = arcsin(x) + c x ∈] − 1,1[
1 − x2
ż
−1
√ dx = arccos(x) + c x ∈] − 1,1[
1 − x2
1
ż
dx = arctan(x) + c R
1 + x2
ż
sh(x) dx = ch(x) + c R
ż
ch(x) dx = sh(x) + c R
dx
ż
= th(x) + c R
ch2 (x)
dx √
ż
√ = argsh(x) + c = ln(x + 1 + x2 ) + c R
1 + x2
dx √
ż
√ = argch(x) + c = ln(x + x2 − 1) + c ]1, + ∞[
x2 − 1
dx 1 1+x
ż
= argth(x) + c = ln +c ] − 1,1[
1−x 2 2 1−x
1
ż
f ′ (x)f n (x) dx = f n+1 (x) + c/n ∈ N Df ′
n+1
f ′ (x)
ż
−1
dx = + c/n ∈ N − {1} //
f (x)
n (n − 1)f n−1 (x)
f ′ (x)
ż
dx = ln |f (x)| + c //
f (x)
Example 1.4
1 √
ż
• Compute (cos2 (x) + + x) dx
1 + x2
Solution:
From indefinite integral property we have:
1 √ 1 √
ż ż ż ż
(cos (x) +
2
+ x) dx = cos (x) dx +
2
dx + x dx (1.1)
1+x 2 1+x 2
1 √ 1 1 2√ 3
ż
(cos2 (x) + + x) dx = sin(2x) + x + arctan(x) + x + c/c ∈ R
1 + x2 4 2 3
• f is a continuous function on J.
• g is a differentiable function on I.
Proof
We have:
∀x ∈ I; [F (g(x))]′ = g ′ (x)F ′ (g(x)) = g ′ (x)f (g(x))
.
ż
Practical method: To calculate the integral of type g ′ (x)f (g(x)) dx, we follow these steps:
=⇒ J = 2 arctan(ex ) + c, c ∈ R
• f is a continuous function on J.
Proof
We have:
1
∀x ∈ J; (H(g −1 (x)))′ = (g −1 (x))′ H ′ (g −1 (x)) = g ′ (g −1 (x))f (g(g −1 (x))) = f (x)
g ′ (g −1 (x))
ż
Practical method: To calculate the integral f (x) dx we follow the steps below:
Example 1.6
x2
ż
Compute I = √ ,dx on ] − 1,1[.
1 − x2
We make the following change of variable:
π π
x = sin(t) with t ∈ − , and dx = cos(t)dt
2 2
sin2 (t) sin2 (t)
ż ż ż
We obtain: I = q cos(t) dt = cos(t) dt = sin2 (t) dt
1 − sin (t)
2 | cos(t)|
i h
(since t ∈ − π2 , π2 we have: cos(t) > 0)
1 1
ż
On the other hand we have: sin (t) = 2 1
− cos(2t) =⇒ I =
1
( − cos(2t)) dt
2 2
2 2
=⇒ I = 12 t − 14 sin(2t) + c, c ∈ R. We have: x = sin(t) =⇒ t = arcsin(x)
Replacing t by arcsin(x), this gives: I = 21 arcsin(x) − 14 sin(2 arcsin(x)) + c, c ∈ R.
Using the following trigonometric formula, we obtain:
1 1 √
=⇒ I = arcsin(x) − x 1 − x2 + c/c ∈ R
2 2
Proof
Let f and g be two functions in class C 1 on I, we have:
ż ż
=⇒ f (x)g (x) dx = f (x)g(x) − f ′ (x)g(x) dx
′
Example 1.7
ż
1. Compute xe−2x dx on R.
Let’s put:
f (x) = x −→ f ′ (x) = 1
g (x) = e−2x −→
′
g(x) = − 12 e−2x
3 √ 1
ż √
1 − x2 dx = x 1 − x2 + arcsin(x) + c/c ∈ R
2 2
Proposition 1.6
P (x)
Let f (x) = be an improper rational fraction ( i.e. P (x) and Q(x) are two polyno-
Q(x)
mials of degree n1 and n2 respectively with n1 ≥ n2 ).
The Euclidean division of P (x) by Q(x) yields:
R(x)
f (x) = N (x) +
Q(x)
R(x)
is a proper rational fraction.
Q(x)
We deduce that:
P (x)
ż ż ż ż
R(x)
f (x) dx = dx = N (x) dx + dx
Q(x) Q(x)
Example 1.8
3x3 + 2x − 5
If we want to integrate the following improper fraction: f (x) = , we perform
3x2 − 5x − 2
Euclidean division as follows:
5 37
x − 35
=⇒ f (x) = x +
+ 23
3 3x − 5x − 2
3x3 + 2x − 5 5 37
x − 35
ż ż ż ż
=⇒ f (x) dx = dx = (x + ) dx + 3
dx
2x2 − 5x − 2 3 3x2 − 5x − 2
Remark 1.5 The difficulty of integrating a rational fraction is restricted to integrating a rational
fraction proper.
P (x)
Let f (x) = be an proper rational fraction such that:
Q(x)
Q(x) = c(x−x1 )m1 (x−x2 )m2 ....(x−xk )mk (x2 +p1 x+q1 )n1 (x2 +p2 x+q2 )n2 ....(x2 +pl x+ql )nl
where:
Remark 1.6 According to the previous theorem, we can decompose any proper fraction into a
finite sum of the following simple elements:
A
1. A simple element of the first kind is of the form such that: A,a ∈ R and m ∈ N∗
(x − a)m
Bx + C
2. A simple element of the second kind is of the form such that: n ∈
(x2 + px + q)n
N∗ ,B,C,p,q ∈ R and ∆ = p2 − 4q < 0
Example 1.9
Decompose the following fractions into simple elements.
P (x) 2x3 + 4x2 + x + 2
1. f (x) = =
Q(x) (x − 1)2 (x2 + x + 1)
P (x) 1 + 2x2
2. g(x) = = 2
Q(x) x (1 + x2 )2
Solution:
01) f (x) is a proper fraction, according to the fundamental theorem of decomposition we have:
2x3 + 4x2 + x + 2 A1 A2 B1 x + C1
= + + 2
(x − 1) (x + x + 1)
2 2 x − 1 (x − 1)2 x +x+1
2x3 + 4x2 + x + 2 A1 (x − 1)(x2 + x + 1) + A2 (x2 + x + 1) + (x − 1)2 (B1 x + C1 )
⇔ =
(x − 1)2 (x2 + x + 1) (x − 1)2 (x2 + x + 1)
2x + 4x + x + 2
3 2
(A1 + B1 )x + (A2 + C1 − 2B1 )x2 + (A2 + B1 − 2C1 )x − A1 + A2 + C1
3
⇔ =
(x − 1)2 (x2 + x + 1) (x − 1)2 (x2 + x + 1)
By identifying the numerator coefficients, we obtain:
+ B1 = 2
A1
2 + C1 − 2B1 = 4
A
A2 + B1 − 2C1 = 1
−A1 + A2 + C1 = 2
=⇒ A1 = 2, A2 = 3, B1 = 0 et C1 = 1
2x3 + 4x2 + x + 2 2 3 1
=⇒ = + + 2
(x − 1) (x + x + 1)
2 2 (x − 1) (x − 1)2 x +x+1
02) g(x) is a proper fraction, according to the fundamental theorem of decomposition we have:
1 + 2x2 A1 A2 B1 x + C1 B2 x + C2
= + 2 + + 2
x (1 + x )
2 2 2 x x x2 + 1 (x + 1)2
A1 x(x2 + 1)2 + A2 (x2 + 1)2 + x(B1 x + C1 )(x2 + 1) + x2 (B2 x + C2 )
=
x2 (1 + x2 )2
A1 x5 + (A2 + B1 )x4 + (2A1 + B2 + C1 )x3 + (2A2 + B1 + C2 )x2 + (A1 + C1 )x + A2
=
x2 (1 + x2 )2
A1 = 0
A2 + B1 = 0
2A + B + C =0
1 2 1
2A2 + B1 + C2 = 2
A 1 + C1 = 0
A = 1
2
Bx + C
2. A simple element of second kind: V (x) = such that:
(x2 + px + q)n
n ∈ N∗ , B,C,p,q ∈ R and ∆ = p2 − 4q < 0
How to calculate ?
Bx + C
ż
To calculate the integral of type: I = ,we follow the steps below:
(x2 + px + q)n
• We have:
1 1
x2 + px + q = (x + p)2 + q − p2
2 4
1 2 1 2
= (x + p) − (p − 4q)
2 4
1 2 1
= (x + p) − ∆
2 4
∆ 4 1
=− − (x + p)2 + 1
4 ∆ 2
!2
∆ 2x + p
=− √ + 1
4 −∆
2t 1
ż ż
let’s put: In = dt and J n = dt =⇒ I = αIn + βJn
(t2 + 1)n (t2 + 1)n
!2n−2 !2n−1
B 2 2 2C − Bp
with: α = √ et β = √
2 −∆ −∆ 2
• Calculation of In and Jn .
(a) We have:
2t
ż
I1 = dt = ln(t2 + 1) + c/c ∈ R
t2 + 1
2t 1
ż
= dt = + c/c ∈ R et n > 1
In −
(t2 + 1)n (n − 1)(t2 + 1)n−1
Proof
1
ż
• For n = 1, we have: J1 = dt =⇒ J1 = arctan(t) + c/c ∈ R
t2 +1
• For n > 1, using integration by parts in the following way: Let’s
put:
f (t) = (t2 +1)
1
n −→ f ′ (t) = − (t2 +1)
2nt
n+1
g ′ (t) = 1 −→ g(t) = t
1 t2
ż ż
t
=⇒ Jn = dt = + 2n dt
(t2 + 1)n (t2 + 1)n (t2 + 1)n+1
1 1
ż !
t
=⇒ Jn = + 2n − dt
(t2 + 1)n (t2 + 1)n (t2 + 1)n+1
t
=⇒ Jn = + 2nJn − 2nJn+1
(t + 1)n
2
2n − 1 t
=⇒ Jn+1 = Jn +
2n 2n(t + 1)n
2
• Finally, we replace t by √2 t
−∆
+ √p
−∆
we obtain the result.
Example 1.10
2x3 + 4x2 + x + 2
ż
• Calculate dx
(x − 1)2 (x2 + x + 1)
Solution:
• Step 01:(The decomposition into simple elements) From example (1.9) we have:
2x3 + 4x2 + x + 2 2 3 1
= + + 2
(x − 1) (x + x + 1)
2 2 x − 1 (x − 1)2 x +x+1
1. We immediately obtain:
2
ż
dx = 2 ln |x − 1| + c1
x−1
ż et
3 3
dx = − + c2
(x − 1) x−1
2
1
ż
2. For the integral J = dx we follow the following method:
x2 + x + 1
We have:
1 1 1 3 3 4 1
2 2 " 2 #
x +x+1= x+
2
− +1= x+ + = x+ +1
2 4 2 4 4 3 2
!2
3 2 1
= √ x+ √ + 1
4 3 3
We get:
1 2 1 2
ż ż
J= dx = √ dt = √ arctan(t) + c3
x +x+1
2
3 t2 +1 3
So we replace t by √2 x
3
+ √1 ,
3
we find:
2 2 1
!
J = √ arctan √ x + √ + c3
3 3 3
2x3 + 4x2 + x + 2 3 2 2 1
ż !
=⇒ dx = 2 ln |x − 1| − + √ arctan √ x + √ + c/c ∈ R
(x − 1) (x + x + 1)
2 2 x−1 3 3 3
Example 1.11
1. A polynomial of two variables x,y of degree 1 is defined by:
Definition 1.5
The quotient of two polynomials of variables x,y is called a rational fraction of two
variables x,y. i.e. a rational fraction R(x,y) of two variables is defined by:
P (x,y)
R(x,y) =
Q(x,y)
Where P (x,y) and Q(x,y) are two polynomials of two variables x,y.
Example 1.12
x + xy 2 + y + 5
1. R(x,y) =
x3 y + y 2 + 1
√
x + xy + 1 √ x + x x2 + 1 + 1
2. If we have: R(x,y) = , then R(x, x + 1) =
2 √
x + 4xy + 1 x + 4x x2 + 1 + 1
x2 + xy + 1
3. If we have: R(x,y) = , then:
x + 4xy + 1
√
Remark 1.7 The fraction R(x, x2 + 1) is an irrational function of the variable x.
+ b1
ż v
n a1 x
u
dx/ a1 b2 −
u
1.6.2 The process of calculating this type: R x, t
a2 x + b2
a2 b1 ̸= 0
In this case, we follow the steps below:
a1 x + b 1 a1 x + b 1
s
1. let’s set t = n
=⇒ tn =
a2 x + b 2 a2 x + b 2
b2 tn − b1
After computation, we obtain : x =
a1 − a2 tn
2. Therfore
!′
b2 tn − b1 nb2 (a1 − a2 tn )tn−1 + na2 (b2 tn − b1 )tn−1
dx = dt = dt
a1 − a2 tn (a1 − a2 tn )2
n(a1 b2 − a2 b1 )tn−1
=⇒ dx = dt
(a1 − a2 tn )2
b2 tn − b1 n(a1 b2 − a2 b1 )tn−1
3. Replacing x by and dx by dt in the integral, we obtain:
a1 − a2 tn (a1 − a2 tn )2
a1 x + b 1
ż s ż
R x, n
dx = R(t) dt
a2 x + b 2
a1 x + b1
ż s
4. Finally, we calculate the integral R(t) dt then we replace in the result t by n
.
a2 x + b2
Example 1.13
ż √
x+4
Compute I = dx.
x
Solution:
a1 x + b 1
ż s
We note that this integral is of type: R x, n dx with:
a2 x + b 2
n = 2, a1 = 1, b1 = 4, a2 = 0, b2 = 1 et a1 b2 − a2 b1 ̸= 0
So we’ll take the following steps:
√
1. We put t = x + 4 =⇒ t2 = x + 4 =⇒ x = t2 − 4
4. żBy using the rational fraction decomposition method we calculate the integral
t2
dt.
t2 − 4
t2 t2 − 4 + 4 4 1 1
= = 1 + = 1 + −
t2 − 4 t2 − 4 t2 − 4 t−2 t+2
t2 1 1
ż ż ż ż
=⇒ dt = dt + dt − dt
t −4
2 t−2 t+2
t2 t−2
ż
which implies that I = 2 dt = 2t + 2 ln + c/c ∈ R.
t −4
2 t+2
√
5. Finally, we replace t in the result by x + 4 and we obtain:
√
√ x+4−2
I = 2 x + 4 + 2 ln √ + c/c ∈ R
x+4+2
Remark 1.8 We can apply the previous method to calculate integrals of type:
a1 x + b 1
by posing: tα = with: α = LCM(n1 ,n2 ,....,nk )
a2 x + b 2
(LCM(n1 ,n2 ,....,nk ) is the smallest common multiple of n1 ,n2 ,....,nk )
Example 1.14
ż √
x
Compute I = √ dx
x +1
4 3
Solution:
We note that the type of this integral is:
v !m1 v !m2
a1 x + b 1 a1 x + b 1
ż u u
dx
u
nt
u
nt
R x, 1
, 2
a2 x + b 2 a2 x + b 2
t4 = x =⇒ dx = 4t3 dt
t5
ż
I=4 dt
t3 + 1
t5
ż
Calculating the integral dt by the decomposition method
t3 + 1
We have:
t5 t2
= t 2
−
t3 + 1 t3 + 1
t5 1 3t2
ż ż ż
=⇒ dt = t dt −
2
dt
t3 + 1 3 t3 + 1
4 4
=⇒ I = t3 − ln |t3 + 1| + c, c ∈ R
3 3
√
Finally, we replace t by x to obtain the result:
4
4 3 4 3
I = x 4 − ln |x 4 + 1| + c, c ∈ R
3 3
ż √
1.6.3 The process of calculating this type: R(x, ax2 + bx + c) dx/a ̸= 0
To calculate integrals of this kind, there’s a general method called theżEuler substitution me-
√
thod. The principle of this method is based on transforming the integral R(x, ax2 + bx + c) dx
into a rational fraction integral using the following three types of variable change:
t2 − c
=⇒ x = √
2t a + b
√ !′ √
2t2 a + 2bt + 2 ac
t2 − c
so, dx = dt = √ √ dt
2t a + b
(b + 2t a)2
√ √ !
t2 a + bt + ac
=⇒ dx = 2 √ dt
(b + 2t a)2
√ √ √
!
t2 − c
Finally; ax2 + bx + c = t − ax = t − a √
2t a + b
√ 2 √
√ at + bt + ac
=⇒ + bx + c =
ax2 √
2t a + b
√
By replacing żthe expressions x,dx and ax2 + bx + c in the integral, we obtain an integral
of the type: R(t) dt where R(t) is a rational fraction. For return to x in the result, we
√ √
replace t by ax2 + bx + c + ax.
Example 1.15
x2
ż
Compute I = √ dx
x2 + 9
Solution:
We put: √
x2 + 9 = t − x =⇒ x2 + 9 = t2 − 2tx + x2
t2 − 9 t2 + 9
!
=⇒ x = and dx = dt
2t 2t2
√
We have: x2 + 9 = t − x then
√ t2 − 9 √ t2 + 9
x2 + 9 = t − =⇒ x2 + 9 =
2t 2t
x2 1 (t2 − 9)2
ż ż
I= √ 2 dx = dt
4
ż x +9 ż
t3
1 18 1 81 1
ż
= t dt − dt + dt
4 4 t 4 t3
1 18 81
= t2 − ln |t| − 2 + c/c ∈ R
8 4 8t
√
We replace t by x2 + 9 + x, we obtain:
1 √ 18 √ 81
I = ( x2 + 9 + x)2 − ln | x2 + 9 + x| − √ 2 + c, c ∈ R
8 4 8( x + 9 + x)2
Example 1.16
1
ż
Compute I = √ dx
x x −x+1
2
Solution: ż √
We have: I of type R(x, ax2 + bx + c) dx with c > 0.
Let’s put: √
x2 − x + 1 = xt + 1
2t + 1 2(t2 + t + 1) √ t2 + t + 1
=⇒ x = , dx = dt, and x 2−x+1 =
1 − t2 (1 − t2 )2 1 − t2
Replacing in I, we obtain:
1 1
ż
I= dt = ln |2t + 1| + c/c ∈ R
2t + 1 2
√
x2 − x + 1 − 1
We replace t in the result by /x ̸= 0, we obtain:
x
√
1 2 x2 − x + 1 − 2 + x
I = ln + c/c ∈ R
2 x
=⇒ a(x − x2 ) = t2 (x − x1 )
t2 t2 + 1 − 1 1 1
= = 2 − 2
(t + 1)
2 3 (t + 1)
2 3 (t + 1) 2 (t + 1)3
t2 1 1
ż ż ż
=⇒ dt = dt − dt
(t + 1)
2 3 (t + 1)
2 2 (t + 1)3
2
t2
ż
=⇒ dt = J2 − J3
(t2 + 1)3
1 t
=⇒ J2 − J3 = J2 −
4 4(t + 1)2
2
1 t t
=⇒ J2 − J3 = arctan(t) + − + c, c ∈ R
8 8(t + 1) 4(t + 1)2
2 2
Finally, we find:
t 2t
I = −8(J2 − J3 ) = − arctan(t) − + 2 + k, k ∈ R
t2 + 1 (t + 1)2
ż ż
1.7.1 Integrals of type R(cos(x)) sin(x) dx or R(sin(x)) cos(x) dx with
R(x) is a rational fraction
ż
• If we have: I = R(cos(x)) sin(x) dx, we make a change of variable of the form:
ż
• If we have: I = R(sin(x)) cos(x) dx, we make a change of variable of the form:
Example 1.18
cos3 (x)
ż
calculate I = dx
sin2 (x)
Solution:
cos3 (x) 1 − sin2 (x)
ż
We have: = cos(x) =⇒ I of type R(sin(x)) cos(x) dx
sin2 (x) sin2 (x)
So we perform the following change of variable:
t = sin(x) =⇒ dt = cos(x)dx
1 − t2 1
ż ż ż
=⇒ I = dt = dt − dt
t2 t2
1
=⇒ I = − − t + c, c ∈ R
t
Finally, if we replace t by sin(x) we obtain:
1
I=− − sin(x) + c, c ∈ R
sin(x)
ż
1.7.2 Integrals of type R(cos(x), sin(x)) dx
The following change of variable can be used for integrals of this kind:
We put
x 1 − t2 1 − t2 2dt
t = tan , cos(x) = , sin(x) = , and dx =
2 1+t 2 1+t 2 1 + t2
By replacing
ż the expressions dx, cos(x) and sin(x) in the integral, we obtain an integral of
type: R(t) dt where R(t) is a rational fraction. To return to the variable x in the result,
replace t by tan x
2
Proof
1. We put t = tan x
2
, then dt = 1
2
1 + tan2 x
2
dx = 21 (1 + t2 ) dx
2
=⇒ dx = dt
1 + t2
2. We have: sin(x) = 2 sin x
2
cos
=⇒ sin(x) = 2 tan x2 cos2 x2
x
2
1 1
On the other hand tan2 x2 + 1 = =⇒ cos2 x =
cos2 2x 2
t +1
2
2t
=⇒ sin(x) = 2
t +1
3. We have: cos(x) = cos2 x
2
− sin2 x
2
= cos2 x
2
1 − tan2 x
2
1 − t2
=⇒ cos(x) =
1 + t2
Example 1.19
1
ż
Compute I = dx
1 − cos(x)
1 − t2 2
We put: t = tan x
, cos(x) = and dx = dt
2
1+t 1 + t2
Replacing in I gives us:
1 1
ż
I= 2
dt = − + c, c ∈ R
t t
. Finally, we replace t by tan x
2
, we find:
1
I=− + c, c ∈ R
tan x
2