Definition:
An indefinite integral is the antiderivative of a function.
I.e., given a function f(x), can we find a function F(x) such that F′(x)=f(x)?F(x) is called the antiderivative of f.
Example of antiderivative
f(x)=x2⟹F(x)=3x3or3x3−17or3x3+15… In general, F(x)=3x3+C(C∈R)
Notation:
We use the symbolic notation:
∫f(x)dx=F(x)+C
f(x) is called the integrand.
Basic Integrals — Very Important
∫cosxdx=sinx+C
∫sinxdx=−cosx+C
∫tanxdx=−ln∣cos(x)∣+C
∫exdx=ex+C
∫axdx=ln(a)ax+C
∫xndx=n+1xn+1+C
For n=−1
∫x−1dx=∫x1dx=ln∣x∣+C
∫1+x21dx=arctanx+C
∫cos2x1dx=tanx+C
∫sin2x1dx=−cotx+C
∫kdx=kx+C
∫lnxdx=xln(x)−x
Basic Properties
Suppose ∫f=F,∫g=G. ∫[f(x)+g(x)]dx=F(x)+G(x)+C
The derivative of a sum is the sum of the derivatives. Therefore, the integral of a sum is equal to the sum of the integrals. Basically, this means you can split up the integral where there are terms being added or subtracted.
Suppose ∫f=F,k∈R. ∫(kf)(x)dx=k⋅∫f(x)dx=kF(x)+C
The integral of a product of a constant and a function is the product of a constant and the integral of the function. Basically, this means you can pull constant coefficients outside of the integrand.
E.g, ∫5x3dx=5⋅∫x3dx=5⋅4x4+C=45x4+C
Combining properties 1 & 2, we get “linearity of the integral”:
Reversing the Chain Rule. Rule:
Suppose F′=f. Then by the chain rule, [F(u(x))]′=f(u(x))⋅u′(x). When we reverse the process, ∫f(u(x))⋅u′(x)dx=F(u(x))+C
Therefore, we deduce the following rule:
∫[f(u(x))⋅u′(x)]dx=F(u(x))+C
The key is to identify one factor of the integrand as the derivative of another part of the integrand; this other part will be your u′(x).
Another way to say that is to find a composed function (f∘g)(x) within the integrand such that g′(x) is being multiplied by the composed function
Example of Reversing the Chain Rule
∫f(u(x))3sin2xu′(x)cosxdx=F(u(x))sin3x+C
Where,
The composed function is 3sin2x
F(x)=x3
f(x)=F′(x)=3x2
u(x)=sinx
We use substitution to make this method technically easier:
Substitution
Denote u′(x)dx as du, and write f(u(x)) as f(u).
I.e., remove x from the integral entirely, rewrite it as an integral in the variable u.
Reversing the Product Rule
Recall the Product Rule: (f⋅g)′=f⋅g′+f′⋅g
Moving things around, we get this: f⋅g′=(f⋅g)′−f′⋅g
Integrating both sides gives us this rule:
∫u⋅v′dx=uv−∫u′⋅vdx
This is helpful when the integrand can be expressed as u⋅v′, where u′⋅v is easier to integrate. Picking an appropriate u and v′: u should become simpler - or at least, not more complicated when differentiating. v′ should become simpler - or at least, not more complicated when integrating.
Generally, but not always, you usually want to avoid having an exponential function as v′.
Specifically: xn should be u, not v′.
Example of Integration by Parts: ∫xexdx
Given ∫xexdx. We want to express xex as u⋅v′, so we choose u=x, and v′=ex.
Algebraic Methods for Integrating a Rational Function
∫Q(x)P(x)dx
First, let’s look at simple rationals that don’t need any special methods:
Simple example: ∫x2+7x+4dx
Break up x2+7x+4:
x2+7x+4=x2+7x+x2+74
Therefore,
∫x2+7x+4dx=∫x2+7xdx+∫x2+74dx
Simple example: ∫x4+2x2x+x3dx
Notice that the derivative of the denominator is 4x3+4x=4(x+x3), which is 4 times the numerator.
∫x4+2x2x+x3dx=41∫x4+2x24(x+x3)dx
Substitute u=x4+2x2,du=4(x+x3)dx
41∫udu=41ln∣u∣+C
Un-substitute
41ln∣u∣+C=41ln∣x4+2x2∣+C=41ln(x4+2x2)+C
Simple: When it works, just do it.
The last two examples are “easy” methods when they work:
Split the integrand into the sum of two ‘easier’ ones
Notice that the numerator is a derivative (or multiple thereof) of the denominator
However, it won’t always be so easy.
Cases where it’s not so simple:
The degree of the numerator is equal to or larger than the degree of the denominator
The denominator is a quadratic equation
deg P ≥ deg Q
When the numerator has a higher or equal degree than the denominator, first actually do the division:
Not-So-Simple Example ∫x2+4x4
First divide: x2+4x4=x2−4+x2+416 Then integrate:
∫x2−4+x2+416dx=∫x2dx−∫4dx+16∫x2+41dx
These are now simple integrals that we know how to solve.
Not-So-Simple Example ∫x2+2x+53x−4dx
We “complete the square” in the denominator, so we get the form ∫(x+a)2+b3x+4 x2+2x+5=(x2+2x+1)+4=(x+1)2+4 Substitute u=x+1du=1dx x=u−1⟹3x−4=3(u−1)−4=3u−7
∫x2+2x+53x−4dx=∫u2+43u−7du
Summary of method:
Complete the square in the denominator to change it from x2+ax+b to u2+c
This only works if the denominator Q(x)>0 for all x — i.e., it doesn’t break down into factors. When this condition is not met, we use Decomposition (see below).
Decomposition into Partial Fractions
A rational function of the form (Cx+D)(Mx+N)Ax+B can be broken down as Cx+DP+Mx+NQ, where the degrees of the numerators are less than that of the denominators.
If the numerator has a degree of 0 or 1, the denominator has a degree of 2.
Therefore, (P+2Q)x+(−2P+Q)=20
Comparing coefficients across numerators, we get:
P+2Q−2P+Q=0=20
Solving for P and Q, we get Q=4,P=−8. Plugging them into our desired form:
(2x+1)(x−2)20=2x+1−8+x−24
The integrals of the summands are much easier to calculate.
If the denominator has more than two factors:
(Cx+D)(Mx+N)(Sx+T)Ax+B=Cx+DP+Mx+NQ+Sx+TR
In each summand, the numerator can be of degree up to one less than that of the denominator. (deg(numerator)≤deg(denominator)−1). If the denominator is an irreducible polynomial of degree 2, set the numerator as degree 1. (Ax+B)