Calculus1 Single Stepping
The Calculus1 subpackage of the Student package includes commands that single-step through the basic problems of single-variable calculus, namely limit, differentiation, and integration problems. This worksheet demonstrates the basics of 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][Rule], it is easier, and often clearer, to load the package, and then use the short form command names.
>
|
|
>
|
|
Several commands in the Calculus1 package provide helpful information through the Maple userinfo facility. To see these information messages, set the corresponding infolevel table entry, using Student or Student[Calculus1] as the index.
>
|
|
The single stepping functionality consists of sets of rules for each basic operation, limit, differentiation, and integration. Rules are applied by calling the package command Rule, providing the name of a rule and a problem to which that rule is applied. Problems are represented using the inert forms Limit, Diff, and Int.
>
|
|
| (1.1) |
>
|
|
| (1.2) |
Notice that the rule is specified as the index to the Rule command, while the problem is given as the argument.
The output from a call to Rule is normally an equation in which the left-hand side is the original problem and the right-hand side is the current state of that problem. This output can be passed to another application of the Rule command.
>
|
|
| (1.3) |
To see the steps from the initial state of a problem to its current state, use the ShowSteps command.
>
|
|
| (1.4) |
A differentiation example.
>
|
|
| (1.5) |
The more common rules have short form equivalents: difference = `-`, product = `*`, power = `^`, quotient = `/`, constantmultiple = `c*`. For completeness, there is also sum = `+`, though both are 3 characters long.
>
|
|
| (1.6) |
The name of any univariate function can be given as a rule.
>
|
|
| (1.7) |
The Calculus1 package maintains a record of each problem you have worked on in a session. You can switch between problems using the GetProblem command.
>
|
|
| (1.8) |
You can display the state of any problem, or of all problems, using the Show command.
>
|
|
| (1.9) |
>
|
|
|
|
Asking for a Hint
|
|
If you are uncertain about which rule to apply next to a problem, ask for a hint.
>
|
|
| (2.1) |
>
|
|
| (2.2) |
The output from the Hint command can always be used as the index to the Rule command.
>
|
|
| (2.3) |
>
|
|
| (2.4) |
>
|
|
| (2.5) |
>
|
|
| (2.6) |
>
|
|
| (2.7) |
>
|
|
Creating problem #5
Rewrite the expression as an exponential to prepare for using l`Hopital's rule
| |
| (2.8) |
>
|
|
| (2.9) |
>
|
|
| (2.10) |
>
|
|
| (2.11) |
>
|
|
| (2.12) |
>
|
|
| (2.13) |
>
|
|
| (2.14) |
|
|
Learning with You
|
|
As you develop expertise with the elementary rules of single-variable calculus, you can automatically apply those rules so that you can concentrate on learning new material. You do this with the Understand command. The first argument to Understand is the name of the operation; the remaining arguments are the rules to apply automatically to a problem using that operation.
>
|
|
| (3.1) |
After the product rule is applied, the system applies each applicable understood rule.
>
|
|
| (3.2) |
To apply all applicable understood rules, use an empty index on the Rule command.
>
|
|
| (3.3) |
|
|
A More Complicated Example
|
|
Consider this integration problem.
>
|
|
| (4.1) |
>
|
|
| (4.2) |
When Maple applies this change of variables, the end points of the definite integration must be addressed. In this case, the new end points are a^(1/6) and b^(1/6). Because this involves the introduction of radicals, the end points remain in the original variable.
>
|
|
Applying substitution w = u^6, u = w^(1/6) with dw = 6*u^5*du, du = 1/6/w^(5/6)*dw
| |
| (4.3) |
>
|
|
| (4.4) |
>
|
|
| (4.5) |
>
|
|
>
|
|
| (4.6) |
>
|
|
| (4.7) |
>
|
|
| (4.8) |
>
|
|
| (4.9) |
At this point, there are two integration subproblems. The system maintains each of these subproblems separately, and assigns each a label. To work on a specific subproblem, for example, the more complicated one, obtain its label using the ShowIncomplete command, and then use that label in a call to Rule or Hint.
>
|
|
| (4.10) |
(Because this worksheet must execute correctly independent of the labels, it uses a programmatic approach to obtain the label corresponding to the more complicated subproblem.)
>
|
|
| (4.11) |
If the hint is complicated, a message providing additional information may be provided. As mentioned above, to see these messages you must assign a number (at least 1) to infolevel[Calculus1] or infolevel[Student].
>
|
|
Rewrite the numerator in a form which contains the derivative of the denominator
| |
| (4.12) |
Warning: These subproblem labels are maintained internally by the Calculus1 package and can change between applications of the Rule command. Therefore, before referencing a subproblem by a label, use the ShowIncomplete command to verify that the label is correct.
>
|
|
| (4.13) |
>
|
|
Note that the derivative of u^2-u+1 is 2*u-1, so we can make a change of variable.
| |
| (4.14) |
>
|
|
Applying substitution u = 1/2+1/2*(-3+4*u1)^(1/2), u1 = u^2-u+1 with du = 1/(-3+4*u1)^(1/2)*du1, du1 = (2*u-1)*du
| |
| (4.15) |
>
|
|
| (4.16) |
Since the variable u1 does not appear in any incomplete subproblems, revert the corresponding substitution.
>
|
|
| (4.17) |
>
|
|
Reverting substitution using u1 = u^2-u+1
| |
| (4.18) |
>
|
|
Complete the square and make a change of variable.
| |
| (4.19) |
>
|
|
Applying substitution u = u1+1/2 with du=du1
| |
| (4.20) |
>
|
|
Integrals involving expressions of the form (x^2+a^2)^n or sqrt(x^2+a^2)^n can often be simplified using the substitution x = a*tan(u).
Applying substitution u1 = 1/2*3^(1/2)*tan(u2), u2 = arctan(2/3*u1*3^(1/2)) with du1 = 1/2*3^(1/2)*(1+tan(u2)^2)*du2, du2 = 2/3*3^(1/2)/(4/3*u1^2+1)*du1
| |
| (4.21) |
>
|
|
Reverting substitution using u2 = arctan(2/3*u1*3^(1/2))
| |
| (4.22) |
After Maple reverts this last u1 substitution, this subproblem is done. The system then substitutes the result of the subproblem into the larger problem.
>
|
|
Reverting substitution using u1 = u-1/2
| |
| (4.23) |
>
|
|
Applying substitution u = u1-1 with du=du1
| |
| (4.24) |
>
|
|
| (4.25) |
>
|
|
Reverting substitution using u1 = u+1
| |
| (4.26) |
Finally, revert the original substitution. The problem is done.
>
|
|
Reverting substitution using u = w^(1/6)
| |
| (4.27) |
|
|
Experimenting
|
|
Integration problems, in particular, can be quite difficult, and learning by experimentation is a valuable technique. To facilitate this, the Calculus1 package includes an Undo command, which can be used to reverse to a previous state of a problem.
>
|
|
| (5.1) |
>
|
|
Creating problem #9
Applying substitution x = tan(u), u = arctan(x) with dx = (1+tan(u)^2)*du, du = 1/(x^2+1)*dx
| |
| (5.2) |
>
|
|
| (5.3) |
>
|
|
Applying substitution x = sin(u), u = arcsin(x) with dx = cos(u)*du, du = 1/(1-x^2)^(1/2)*dx
| |
| (5.4) |
|
|
Tutors
|
|
These tutors provide the same functionality as single stepping through a single problem in a worksheet, in a graphical environment
>
|
|
| (6.1) |
>
|
|
| (6.2) |
>
|
|
| (6.3) |
>
|
|
|
Return to Index for Example Worksheets
|