Session 1.8: Integration in Maple
> restart;
> fe1:=sin(x); <- Expression giving a function of x
> f:=x->x^2-2*cos(x); <- Mapping function of single variable
> int(fe1,x); <- Integral of sin(x)
> int(f(t),t); <- Integral of defined function
> int(fe1,x=0...3); <- Define limits of integration
> evalf(%); <- Evaluate answer
Note : % is used instead of typing in answer
> int(f(x),x);
> int(f(x),x=-1...1);
> int(f(x)*sin(x),x);
> sin(x)/f(x); <- Complicated function
> int(%,x); <- Maple cannot always calculate the
indefinite integral
I=sqrt(-1)
> evalf(int(sin(x)/f(x),x=0...1));
<- Maple however can calculate the
value of the definite integral over a
specified interval.
>