Topic 9 Techniques of Integration
9.1 Integrations of trigonometric functions
When evaluating integrations of trigonometric functions, one idea is to reduce the total degree (power) of trigonometric functions using trigonometric identities.
In Maple, you may use the command combine
to rewrite the expression.
Example 9.1 Rewrite \(\cos^4x\) into an expression with single terms and evaluate the integral \(\int \cos^4x\mathrm{d} x\).
Solution.
# combine terms into a single term
combine((cos(x))^4)
# use DiffTutor to evaluate the integral of the resulting function.
with(Student[Calculus1])
IntTutor(%, x)
You may compare the above solution with the solution given by IntTutor((cos(x))^4, x)
.
Exercise 9.1 Evaluate the integral \[ \int \tan ^{5} x \mathrm{d} x \]
Exercise 9.2 Evaluate the integral \[ \int \sin 5 x \sin^2 x \mathrm{d} x \]
9.2 Trigonometric Substitution
Surely, you may learn some trigonometric substitution tricks using IntTutor
.
Here I want to introduce another useful command which when integrating functions, we may need to complete a square and then do a substitution. In Maple, we can complete squares using the command CompleteSquare(f, x)
which supported by the package Student[Precalculus]
.
Example 9.2 Evaluate the integral \[ \int\dfrac{1}{x^2+x+1} \mathrm{d} x. \]
Solution.
We first complete the square for the denominator.
#load package Student[Precalculus]
with(Student[Precalculus])
#Complete square for the denominator
CompleteSquare(x^2+x+1, x)
Now you may try DiffTutor
and/or evaluate it by hand.
#load package Student[Calculus1]
with(Student[Calculus1])
DiffTutor(1/%, x)
Exercise 9.3 Evaluate the integral \[ \int \sqrt{3+2 x-x^{2}} \mathrm{d} x \]
Exercise 9.4 Evaluate the integral \[ \int_{0}^{\pi / 2} \frac{\cos t}{\sqrt{1+\sin ^{2} t}} \mathrm{d} t \]
9.3 Integrations of Rational Functions by Partial Fractions
In Maple, we can factor a polynomial using the command factor(polynomial)
or find partial fraction decomposition using convert(function, parfrac)
.
Example 9.3 Find the sum of partial fractions for the rational function \[ f(x)=\frac{x^3+4x+3}{x^4+5x^2+4} \]
Solution.
This can be done easily in Maple:
# use the command convert
convert((x^3+4*x+3)/(x^4+5x^2+4), parfrac)
Exercise 9.5 Find the sum of partial fractions for the rational function \[ f(x)=\frac{x^{4}}{\left(x^{2}-x+1\right)\left(x^{2}+2\right)^{2}}. \]
Exercise 9.6 Find the sum of partial fraction and evaluate the integral
\[ \int \frac{2}{3x^{2}+2x-1} \mathrm{d} x \]
Exercise 9.7 Find the sum of partial fraction and evaluate the integral
\[ \int \frac{x^{3}+6 x-2}{x^{4}+6 x^{2}} \mathrm{d} x \]
Exercise 9.8 Find the sum of partial fraction and evaluate the integral
\[ \int \frac{\sin x}{\cos ^{2} x-3 \cos x} d x \]