Calculus1 Integration - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Calculus 1:  Integration

The Student[Calculus1] package contains two routines that can be used to both work with and visualize the concepts of approximating integrals and antiderivatives.  This worksheet demonstrates this functionality.

 

For further information about any command in the Calculus1 package, see the corresponding help page.  For a general overview, see Calculus1.

Getting Started

While any command in the package can be referred to using the long form, for example, Student[Calculus1][ApproximateInt],  it is easier, and often clearer, to load the package, and then use the short form command names.

restart

withStudentCalculus1:

The following sections show how the routines work.

Approximating an Integral

The methods of approximating an integral are divided into two categories:

     1.  Riemann sums, and

     2.  Newton-Cotes methods.

Riemann sums approximate an integral by summing the areas of adjacent rectangles, where the height of the rectangle depends on the value of function in that interval.

 

Newton-Cotes methods assume knowledge of integration of polynomials. These methods interpolate the function on each subinterval, and integrate this interpolating polynomial.  The trapezoid rule approximates integrals using linear functions. Simpson's rule uses quadratic functions to approximate the expression.

ApproximateIntsinx,x=0..20,method=midpoint,output=plot

ApproximateIntsinx,x=0..20,method=simpson,output=plot

In every case, an animation, in which each frame shows a refinement of the previous partition, can be returned.

ApproximateIntsinx,x=0..3π2,output=animation

An interesting variation begins with a random partition, and at each step, chooses a refinement that randomly divides the largest subinterval.

ApproximateIntsinx,x=0..4π,partition=random2,subpartition=width,refinement=random,output=animation,iterations=50

When using this method with a partition, note how the total area appears to converge to a value and then jumps to another.

ApproximateInt1x22,x=2..2,partition=random2,subpartition=width,refinement=random,output=animation,iterations=50

You can also compute and visualize approximate integrals using the ApproximateIntTutor tutor.

ApproximateIntTutor

Antiderivatives

Given a function fx, an antiderivative of fx is any function Fx such that ⅆⅆxFx=fx.  By this definition, if Fx is an antiderivative of fx, so is Fx+c for any constant c.
The routine AntiderivativePlot can plot a single antiderivative or a class of antiderivatives.

AntiderivativePlotx32x24x+2,x=2..2

AntiderivativePlotx32x24x+2,x=2..2,showclass

You can also learn about antiderivative plots using the AntiderivativeTutor command.

AntiderivativeTutor

Main: Visualization

Previous: Applications of Derivatives

Next: Applications of Integration