Context Panel solution
|
•
|
Control-drag the differential equation
|
•
|
Context Panel: Solve DE Interactively
|
|
|
|
|
Maple uses for the arbitrary constant. Names generated internally by Maple usually start with an underscore. For this reason, users are cautioned not to form names with a leading underscore.
Stepwise solution via the Student ODEs package
|
•
|
Tools≻Load Package: Student ODEs
|
|
Loading Student:-ODEs
|
•
|
Context Panel: Student ODEs≻Solve≻Generic≻General Solution with Steps≻
(See Figure 5.6.1(a). Unfortunately, the "Solve" option is not visible in this figure.)
|
|
Figure 5.6.1(a) Context Panel access to annotated solution with steps
|
|
|
|
|
|
|
Below, a stepwise Maple solution is implemented with commands, then interactively via the Context Panel system.
A stepwise Maple solution implemented with commands
|
•
|
Assign the differential equation to the name .
|
|
|
•
|
Divide by .
(The variables are now separated.)
|
|
|
•
|
Obtain the antiderivative of both sides.
(The map command places the int command onto each side of the equation.)
|
|
|
•
|
Add a constant of integration to the right side.
(The "equation" is added to the equation as a device to append to the right-hand side.)
|
|
|
•
|
Exponentiate both sides.
(The map command applies the exponential function exp to both sides of equation
|
|
|
•
|
Apply the appropriate law of exponents.
(The expand command converts to .)
|
|
|
•
|
Replace with .
(Evaluate equation with set equal to .)
|
|
|
|
|
Interactive stepwise solution via the Context Panel system
|
•
|
Control-drag (or copy/paste) the differential equation.
Press the Enter key.
|
|
| (1) |
|
•
|
Use the equation label to divide by .
Press the Enter key.
|
•
|
Context Panel: Map Command Onto
(Figure 5.6.1(a))
|
|
Figure 5.6.1(a) Dialog for Map Command Onto
|
|
|
|
| (2) |
|
•
|
To equation , add the "equation" and press the Enter key.
|
•
|
Context Panel:
Solve≻Isolate Expression for≻
|
•
|
Context Panel: Expand≻Expand
|
|
| (4) |
| (5) |
| (6) |
|
|
|
The traditional approach to solving separable differential equations makes liberal use of the differentials and . Maple does not use this notation for differentials, except within typeset integrals where the differentials are written by Maple, and not by the user. Hence, the stepwise approach to solving a separable differential equation necessarily deviates from the standard textbook approach.
Notice how the integral on the left, that is, the integral of , is in terms of the independent variable . That's because the differential equation itself carries the independent variable explicitly. When the variables are separated, Maple still sees , not just the symbol . To integrate on the left would require a rewrite of the left side to just and then it would be impossible to map integration across both sides of the equation - the left side is integrated with respect to , but the right side is integrated with respect to .
Hence, rigorously following the textbook methodology is a lot more work. If Maple is to be used to implement the solution stepwise, accommodations must be made for the structure and functioning of Maple's tools.