integration.mws

Click on a box with a + inside to expland the section.

Substitutions

Maple can do substitutions for you. I'm not sure how valuable this is, though.

> R:=Int((sin^2)(x)*cos(x),x);

R := Int(sin(x)^2*cos(x),x)

> R1:=changevar(u=sin(x),R,u);

R1 := Int(u^2,u)

> S:=Int((2+3*x)^3,x);

S := Int((2+3*x)^3,x)

> S1:=changevar(u=2+3*x,S,u);

S1 := Int(1/3*u^3,u)

Integration by parts

Here are some examples of integrals which use integration by parts.

Each problem is grouped into a section. You can make sections like this by highlighting the section,

then pressing the right arrow key above (just under the word Options). Then you can add a title

to the section. You can compress or expand each section by clicking on the box at the beginning

of the section. You can begin a section by using Insert, Section (above).

Example 1

The box to the left of "Example 1" can be clicked to shrink this part.

> a:=x*exp(x); Define an expression called a.

a := x*exp(x)

> b:=int(a,x);

b := x*exp(x)-exp(x)

Example 2

> a:=x*cos(x);

a := x*cos(x)

> b:=int(a,x);

b := cos(x)+x*sin(x)

Example 3

> a:=x*ln(x);

a := x*ln(x)

> b:=int(a,x);

b := 1/2*x^2*ln(x)-1/4*x^2

Example 4

> a:=(x^3)*sqrt(x^2+3);

a := x^3*sqrt(x^2+3)

> b:=int(a,x);

b := 1/5*x^2*(x^2+3)^(3/2)-2/5*(x^2+3)^(3/2)

> c:=(1/3)*x^2*(x^2+3)^(3/2) -(2/15)*(x^2+3)^(5/2);

c := 1/3*x^2*(x^2+3)^(3/2)-2/15*(x^2+3)^(5/2)

> simplify(b-c); These two are really the same

0

Example 5

> a:=ln(x);

a := ln(x)

> b:=int(a,x);

b := x*ln(x)-x

Example 6

> a:=(x^n)*ln(x);

a := x^n*ln(x)

> b:=int(a,x);

b := x*ln(x)*exp(n*ln(x))/(1+n)-x*exp(n*ln(x))/(2*n...

Partial Fractions

Here are some examples which require partial fractions.

Example 1

> a:=(x^2+2*x)/((x+1)^2);

a := (x^2+2*x)/((x+1)^2)

> b:=int(a,x);

b := x+1/(x+1)

Example 2

> a:=1/(x^2+x-6);

a := 1/(x^2+x-6)

> b:=int(a,x);

b := -1/5*ln(x+3)+1/5*ln(x-2)

Trigonometric integrals

Note that Maple can do the integrals, but its answer is not always in the simplest form, nor does it always look like what we get using substitutions and other tricks.

> int((sin^3)(x),x);

-1/3*sin(x)^2*cos(x)-2/3*cos(x)

> diff((1/3)*(cos^3)(x)-cos(x),x);

-cos(x)^2*sin(x)+sin(x)

> int(cos(x)*(sin^2)(x),x);

1/3*sin(x)^3

> int((cos^3)(x)*(sin^4)(x),x);

-1/7*sin(x)^3*cos(x)^4-3/35*sin(x)*cos(x)^4+1/35*co...

> int((sin^4)(x),x);

-1/4*sin(x)^3*cos(x)-3/8*cos(x)*sin(x)+3/8*x

> int(tan(x),x);

-ln(cos(x))

> int(tan(x)*sec(x)^2,x);

1/2*sec(x)^2

> int(1/sqrt(1-x^2),x);

arcsin(x)

> int((x^2)/sqrt(4-x^2),x);

-1/2*x*sqrt(4-x^2)+2*arcsin(1/2*x)