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
with⁡StudentCalculus1:
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.
ApproximateInt⁡sin⁡x,x=0..20,method=midpoint,output=plot
ApproximateInt⁡sin⁡x,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.
ApproximateInt⁡sin⁡x,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.
ApproximateInt⁡sinx,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.
ApproximateInt⁡1x2−2,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 f⁡x, an antiderivative of f⁡x is any function F⁡x such that ⅆⅆx⁢F⁡x=f⁡x. By this definition, if F⁡x is an antiderivative of f⁡x, so is F⁡x+c for any constant c. The routine AntiderivativePlot can plot a single antiderivative or a class of antiderivatives.
AntiderivativePlot⁡x3−2⁢x2−4⁢x+2,x=−2..2
AntiderivativePlot⁡x3−2⁢x2−4⁢x+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
Download Help Document