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.
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.
Creating problem #1
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.
To see the steps from the initial state of a problem to its current state, use the ShowSteps command.
A differentiation example.
Creating problem #2
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.
The name of any univariate function can be given as a rule.
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.
You can display the state of any problem, or of all problems, using the Show command.
Asking for a Hint
If you are uncertain about which rule to apply next to a problem, ask for a hint.
Creating problem #3
The output from the Hint command can always be used as the index to the Rule command.
Creating problem #4
Creating problem #5
Rewrite the expression as an exponential to prepare for using l`Hopital's rule
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.
After the product rule is applied, the system applies each applicable understood rule.
Creating problem #6
To apply all applicable understood rules, use an empty index on the Rule command.
Creating problem #7
A More Complicated Example
Consider this integration problem.
Creating problem #8
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
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.
(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.)
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
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.
Note that the derivative of u^2-u+1 is 2*u-1, so we can make a change of variable.
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
Since the variable u1 does not appear in any incomplete subproblems, revert the corresponding substitution.
Reverting substitution using u1 = u^2-u+1
Complete the square and make a change of variable.
Applying substitution u = u1+1/2 with du=du1
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
Reverting substitution using u2 = arctan(2/3*u1*3^(1/2))
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
Applying substitution u = u1-1 with du=du1
Reverting substitution using u1 = u+1
Finally, revert the original substitution. The problem is done.
Reverting substitution using u = w^(1/6)