Student Package

The student package is a collection of special tools to help visualize and understand a few of the concepts in Calculus. I find that Maple's student package provides an excellent tool to help students appreciate Riemann sums.

> with(student);

[D, Diff, Doubleint, Int, Limit, Lineint, Product, ...
[D, Diff, Doubleint, Int, Limit, Lineint, Product, ...
[D, Diff, Doubleint, Int, Limit, Lineint, Product, ...
[D, Diff, Doubleint, Int, Limit, Lineint, Product, ...

> f := x -> x^3-6*x^2+9*x+2;

f := proc (x) options operator, arrow; x^3-6*x^2+9*...

The student package makes it easy to view a tangent line.

> showtangent(f(x),x=4,x=0..5);

[Maple Plot]

Riemann Sums

The next series of commands allow one to see the formulae and the geometric interpretation of the Riemann sums as they converge to the value of the integral.

> middlesum(f(x),x=0..5,5);

Sum((i+1/2)^3-6*(i+1/2)^2+9*i+13/2,i = 0 .. 4)

> evalf(%);

28.125

> middlebox(f(x),x=0..5,5);

[Maple Plot]

> middlesum(f(x),x=0..5,10);

1/2*Sum((1/2*i+1/4)^3-6*(1/2*i+1/4)^2+9/2*i+17/4,i ...

> evalf(%);

28.594

>

> middlebox(f(x),x=0..5,10);

[Maple Plot]

> middlesum(f(x),x=0..5,20);

1/4*Sum((1/4*i+1/8)^3-6*(1/4*i+1/8)^2+9/4*i+25/8,i ...

> evalf(%);

28.710

>

> middlebox(f(x),x=0..5,20);

[Maple Plot]

> middlesum(f(x),x=0..5,40);

1/8*Sum((1/8*i+1/16)^3-6*(1/8*i+1/16)^2+9/8*i+41/16...

> evalf(%);

28.740

>

> middlebox(f(x),x=0..5,40);

[Maple Plot]

> int(f(x),x=0..5);evalf(%);

115/4

28.750

> Int(f(x),x=0..5);

Int(x^3-6*x^2+9*x+2,x = 0 .. 5)