## Tips to Remember

### Remember this if nothing else

- "e" is
**not Euler's number**, use the Expression palette; "exp(1)" wjhen you need it in popup applet windows

- "Pi" is the 3.14159 number when you need it in popup applet windows.

- Variable names or expressions to be
**multiplied**must be separated by a**space**or**explicit asterisk**or will be interpreted as a new variable name: x y, not xy, and x (x+2) not x(x+2); hard numbers require an asterisk: 2.3*2.718, not 2.3 2.718.

### Getting Started

**Worksheets versus Documents.**

Maple opens with a workspace that allows the choice ofor**New Document**(or start by using the**New Worksheet**and selecting**File menu,**then**New****Document Mode**). Document mode is a blank document with no input prompts just white space, but usually we want to work in the more structured worksheet mode, which has input prompts and separate output regions, and shows the user what Maple commands are used by the right click menus, which can often be edited to modify easily without foreknowledge of the command.*Worksheet Mode*

[One can include document blocks in worksheet mode as well through Format Menu, Document Block, which removes the left margin execution grouping line. One can switch to worksheet mode from document mode simply by introducing a prompt. View, Expand Document Block will show the underlying computations hidden in Document mode.]

Right-clicking on output expressions once entered with the Enter key opens a menu of operations that can be applied to the expression. Maple then inserts the underlying command and the result in a new input/output pair of regions.

If you choose to start with ainstead, there are no input prompts, and results of right-clicking on expressions follow them after an arrow and commands are suppressed. [A short 3 minute training video helps the new user understand how to use the Clickable Calculus interface of Maple Document mode: clickable calculus.]**New Document**

**2d math movements**

An important tip for Maple 2d math input (black, math italic) is that you must use the**right arrow key**to continue inputting an expression after raising to an**exponent**or dividing by a**denominator**(using the forward slash for division, asterisk for multiplication), in fact you can use all 4 arrows to move around an expression to edit its various pieces, while when entering from the palette, the tab key moves you through the placeholder characters to be replaced. Right clicking on expressions gives you menus to select operations you wish to perform.

[The input mode "1d math = bold red character input" like in help pages) is not the default in Maple (you can change it in Tools, Options, Input Display for the session), but each time you enter a blank input region after the Maple prompt ">" you can click on the leftmost "Text" button on the inside window toolbar to switch to it, while the "Math" button switches back to 2d math input. This can be useful for inputting little Maple programs in a more organized way than the 2d math line breaking spacing rules allow.]

### Pallette use and display

- Initially close all palettes (click on triangle in header) and left-click drag Expressions, Common Symbols, Calculus, Matrices to the top of the list in this order, then open the top two for ready use.
- When the cursor is in an input or even math mode text region, clicking on an icon will insert it with its placeholders to fill in moving between them with the Tab key. It is relatively easy to learn how to combine palette input with typing to create any mathematical expression or equation. If it is in an input region, entering it to produce an output allows the user to right click on that output and take actions from the context sensitive menu. In a math mode text region, one can directly right click on the expression/equation to select an action, like execute in-line (Cntrl =).

### Predefined Constants and Variable Names

- Maple is
**case-sensitive**like mathematics, distinguish uppercase and lowercase letters and be consistent.is reserved for Maple function differentiation.

D - Pi is the number π, exp(
*x*) is e^{x},**exp(1)**is*e*

*but in typing Maple, e or e is never the Euler number and e^x is never the exponential function*π

[use the Common Symbol palette or the Greek letter palette; both entries for*now correspond to the 1d math symbol Pi standing for 3.14159...].*The

**complex number***i*= sqrt(-1) is represented by the uppercase letter*I*in Maple, also available from the Common Symbol palette.

You still need to know these 1d math names to enter them in the pop up interactive windows, like the plot range in the plot builder for trig functions where ranges like 0.. 2*Pi are frequently required.

- A
**variable name**in its simplest form is a letter followed by zero or more letters, digits, underscore characters (_) and question marks (?), with lowercase and uppercase letters distinct. Any convenient string that conveys meaning about its interpretation is useful.

### Delimiters, spaces, ranges

- All Maple
**commands**or**functions**obey function notation with**rounded parentheses**(,) enclosing their inputs separated by commas, as in "plot(x,...)" or "cos(x)" with**no space before the left parenthesis**. All**groupings**overriding the usual rules for order of performing the basic operations are done using matching rounded parentheses only (no brackets or braces of any kind). **Square brackets**[,] enclose a list of objects (numbers, functions, color names) whose order is to be maintained, like vector components, or a list of functions to coordinate with a list of colors in a plot command.

[Square brackets are also used for subscripts on vectors or matrices: v[1] becomes v_{1}, A[1,2] becomes A_{1,2}.]{,} are used to enclose sets of objects whose order is unimportant, as in a set of equations to be solved.

Curly brackets

**Triangle brackets**< , > are used for listing vector components with entries separated by commas, which appear in the output as column matrices.**%**stands for the last output in time (not necessarily the previous output in position in the worksheet). When a series of inputs using "%" goes bad and has to be re-edited and executed, you must re-execute from the first statement to which they refer to reset the sequence. %% stands for the next to last output in time.**Shift Enter**. Holding the Shift key and pressing the Enter key at the end of a Maple input allows you to go to the next line.

If you wish to put two Maple inputs together in 2d math notation, they must be separated by a**semicolon**";"

(or a**colon**":" to suppress the output of the preceding command).- In
**2d math mode input**,**spaces are needed between variables to imply multiplication**:between variables or between a variable and a constant (

spaces*x y*or 2*x*or 3 I but not 2 2)**imply multiplication**but an asterisk "*" or centered dot from the Common Symbols palette is required in 1d mode and between hard numbers like 2 and 3^{1/2}in 2d input as well as before parentheses:*x*(*x*+2) must have a space before the "(" or Maple will misbehave,*xy*will be interpreted as a new variable name, not as the product*x y*of two variables.

The**right arrow key**is needed to climb down from a superscript and continue or climb up from a denominator (use**/**for division and fractions) and continue entering input. Always use parentheses ( ) when needed for grouping! All 4 arrow keys and the Tab key can be used to move around in 2d math input.

- When you give a
**range of values**for a variable:*x*= 1..4, but when decimals are entered do*x*= 0.1..0.4 for clarity but*x*= .1...4 will also work correctly now.

### HELP!

**F1**gives you the short list of keystroke hints.

[The long list is under Help, Table of Contents, Advanced Features, Worksheet Interface, Windows. Like Control +4 for zoom 4 times.]gives you the Quick Reference Card summary of Maple interface help.

Control F2

When you put the cursor on a Maple command,gives you the Maple help for that command, or you can then go to the Help menu and find "Help on ..." listed to release the mouse on to achieve the same result.

F2

When a command is in a package like plots, or Student[Calculus1], by loading the package with no punctuation or a semicolon first, one can click on the desired command in the list and hit F2. Then you can suppress the list by inserting a colon after the input line as in "> with(plots): ".**Control Space**invokes auto-complete when entering Maple commands to choose from a popup menu of all commands which begin with the typed letters. This is really useful for "ReducedRowEchelonForm" and "BackwardsSubstitute" from the LinearAlgebra package.- If the output of a worksheet on the web has been removed (Edit Menu, bottom, Remove Output, from entire worksheet), it can be restored by Edit Menu, Execute Worksheet or by clicking on the !!! icon on the upper tool bar. You may also select a region and execute it with the ! icon.
- After deleting a range of Maple stuff, you must use the Edit Menu, Delete Element to get rid of the last input/output/text region of the selected stuff.

### 2d plotting: multiple function graphs versus parametrized curves

- Right-clicking on an output expression with no unevaluated constants to plot it, choose
**Plots, Plot Builder**to predecide the window range of the independent variable and get more control over what you see [the other plot choices are sometimes problematic with students].

- Square brackets around a list of expressions maintains their order, while curly "set" braces do not, since sets are not supposed to have a preferred order.

> plot([*x*],^{2},x^{3}*x*=0..1) will plot two power functions,

> plot([*x*,^{2},x^{3}*x*=0..1]) will plot the second expression versus the first as a parametrized curve, equivalent to graphing the function*y*=*x*. [Note you need the^{3/2}**surd**command to plot odd fractional roots for negative inputs.]

Alternatively just entering

> [*t*]^{2},t^{3}

allows you to right click and choose plot builder and parametric plot.

- If you enter an expression for a real function that you want to plot (or a sequence of functions separated by commas and surrounded by curly set braces), choose
**plot builder**from the right click menu, not 2d plots (where you have to further right click on the smartplot and choose axes, range to reset the window). If you click on an equation say*y = f(x)*you must right click and first choose right hand side to get the expression to then plot with plot builder. - To 2d
**plot multiple expressions**by right-click menu, one can also enter one expression and plot it by right-clicking on the output and selecting plot builder, then enter the other expressions in a new input region and select and drag them one by one from their output onto the plot. Avoid**smartplot**, it is not smart enough.

### 2d plotting: new features

There are a few new features that are useful to know for plots. First click on a plot to make it "live" (you see the resize box border). Then:

- Right click on the plot and choose "
**Probe Info, Cursor Position**" from the context menu to get two crosshair lines centered on the cursor in the plot with a numerical readout of the cursor position. You can also zoom into any plot with a right click choice, but you might need "pan" to recenter the zoom window.

- Click on the black grid icon on the plot context toolbar line that appears when the plot is live to get
**gridlines**on the plot, very helpful for understanding how points on curves relate to the axis tickmarks. [Or use the plot option "gridlines = true" when using the plot command.]

### sections and restart

- When doing multiple independent problems in a single worksheet, it might be helpful to "
**indent**" each one into a section, and include "**restart**" at the beginning of each one to prevent assignments from interfering in different problems. You can also**insert**a new section from the insert menu. These are opened and closed by clicking on the arrow in the section title. Subsection allows more structure to your document.

### Matrices or Vectors (1 row or 1 column):

**Matrices**and**Vectors**can be entered with the Matrix palette in 2d math input mode. A superscript of -1 will produce the inverse of a square matrix, while a space " " between matrices will multiply them, without loading the LinearAlgebra or Student[LinearAlgebra] packages. Matrices and Vectors can also be directly entered using < > to enclose a row or list of rows, commas to separate entries in a Vector or separate entries vertically in a column and " | " the vertical symbol to separate entries horizontally in a row. To "augment" a set of Vectors into a matrix, use Matrix([u1,u2]). Vectors are treated by default as column matrices and are shown as column matrices in Maple output.

To retain this column matrix output when using the Student[VectorCalculus] package, you need an extra command:

> with(Student[VectorCalculus]): BasisFormat(false)

Without it a basis vector notation*a*_{1}**e**_{x}+*a*_{2}**e**_{y}+*a*_{3}**e**_{z}is the default for Maple output.

Note: <<1|2|3>,<4|5|6>> and <<1,4>|<2,5>|<3,6>> are the same 2x3 matrix, first input as 2 rows, then as 3 columns. [Commas are vertical separators, "verticals" are horizontal separators.]

The LinearAlgebra or Student[Linearalgebra] package should be loaded: > with(LinearAlgebra):

when doing anything more than right click menu operations on matrices.**Transpose**then converts between row and column matrices.

- Right-clicking on a matrix and selecting
**Standard Operations**allows the**determinant**to be evaluated. Selecting**Eigenvalues, etc**allows one to get the eigenvalues and eigenvectors, or the preliminary characteristic polynomial. Selecting**Solvers and Forms**, R**ow Echelon Form, Reduced**is also a right click away. Then right clicking on the rref matrix allows**Solvers and Forms, Linear Solve**to solve the linear system for which it is the rref augmented matrix.

**evalf**(evaluate to floating point number) can be applied to a single expression, to a Vector or Matrix of expressions, or to a list of expressions [..., ..., ...], but not to a sequence of expressions ... , ... , ... (no delimiters);**evalf(...,5)**will limit the evaluation to 5 significant figures, so if it matters in the internal evaluation procedures, do**evalf(...):****evalf(...,5)**so that the 10 digit final number is then rounded off to 5 significant figures, for example. Alternately just right clicking on an expression allows you to approximate it to various numbers of decimal places.

- [
To add a row or column to an existing matrix in input mode:**Advanced:****Control Shift R**(for Row) or**Control Shift C**(for Column). The former also works to add lines to the Expression palette**piecewise**template: another row for each extra condition.

- Sometimes in rare cases it is not enough to place a space between matrices to multiply them (rtable error), in which case a period between the matrices will do the job.

### Subscripts

- Maple has
**literal subscripts**"x__1" for part of a symbol name (appropriate for indexing variable names in equations or as in "x__h" for symbolic subscripts which are not positive integers) and**indexed subscripts**"a[1]" or "A[1,2]" to indicate an entry in an array (vector or matrix), both of which appear in 2D math mode as subscripts; the Expression palette has both icons for insertion.

There are still no**literal superscripts**for tensor notation.

### Prime derivative notation and Maple function notation:

**Standard function notation**holds once a Maple function arrow function is defined:*f*:=*t*→*t*then^{4},*f ''(t)*is the second derivative,*f*is the 4th derivative, etc. For partial derivatives the D[1,2](^{(4)}(t)*f*) notation is preferable for Maple functions.- Using
**unapply**instead of the arrow Maple function definition:

Although in most cases the arrow definition available in the Expression palette is sufficient, one must occasionally use an alternative approach:

> f*:= t→ t*g^{2};*:= t →*f*'(t)/t;*g(1)*t*= 1 is substituted, after which the derivative does not work

> f*:= t→ t*g^{2};*:=*unapply*(*f*'(t)/t,t);*g(1)*;*here*t*= 1 is substituted at the end of the procedure and it works

One "unapplies" the formula to the variable to create a function independent of the dummy variable used in the formula.

Alternatively,**unapply**fully evaluates an expression by substituting the values of all variables at the moment it is executed, while the**arrow definition**leaves the variables unevaluated until the function is called. See this example:

> p:=2: f :=*x →*x^{p}; f(*x*);*p*:=3; f(*x*) [change: f(*x*) =*x*^{3}]

> p:=2: f := unapply(*x*); f(x);^{p},x*p*:=3; f(*x*) [no change, f(*x*) =*x*^{2}]

The**arrow definition**is convenient if you wish to update the value of a parameter in the Maple function after its definition.**unapply**is convenient if you want to finalize a function at its present form for present values of all parameters etc that may be present.

- The
**default differentiation variable***x*for prime notation in 2d input can be changed by the View Menu, Typesetting Rules selection, lower left Differential Options section, prime derivative variable (change from x to t, for example): the default is that y' stands for dy/dx, but when t is the independent variable (time) it is often convenient to change the default, which can be done by the command:

> Typesetting:-Settings(prime = t): - For stating
**differential equations**using prime notation, the default differentiation variable is assumed. Input a list of differential equations and initial conditions separated by commas, and right-clicking on the output allows**Solve DE**to solve the system

> x1''=x2, x2''=x1,x1(0)=1,x1'(0)=0,x2(0)=0,x2'(0)=1

Omitting the initial conditions gives the general solution. - If you want a
**different default differentiation variable**without being bothered to change it (students especially!), simply use explicit function notation with the desired variable:

> x1''(t)=x2(t), x2''(t)=x1(t),x1(0)=1,x1'(0)=0,x2(0)=0,x2'(0)=1 - Don't waste time using subscripted variables like
*x*_{1}with prime notation, just call it*x1*unless you like being elegant. Such subscripts should be literal: "x__1" since you are naming the variable and niot indexing it as a vector.