Look for this session in /home/ceng303/maple/sessions as: ch1_8.mw
Session 1.8: Integrals of expressions and functions
> 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 to insert the last result instead of typing in the 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.
>