## Introductory videos

For the new user one can watch a three minute Clickable Math video get acquainted introduction to Maple. For a little more payoff, there is a 15 minute Quick Start Tutorial viideo and for someone who has an hour to invest in getting a comprehensive overview of Maple as a new user, there is a 55 minute Getting Started with Maple video introduction to Maple.

## Maple worksheets on the web?

If Maple is installed locally on your machine or network, you can just click on the link to a Maple worksheet and it will open. Try it below.

For the **Engineering and Science Calculus** course sequence there are example files (perhaps most useful for instructors):

To save these files, please **right-click** on them and choose **Save Link As**.

- MAT1500 Calculus 1 for Science and Engineering - cmdlist1.mw
- MAT1505 Calculus 2 for Science and Engineering - cmdlist2.mw
- MAT2500 Calculus 3 for Science and Engineering - cmdlist3.mw
- MAT2705 Differential Equations with Linear Algebra - cmdlist4.mw

The first example worksheet has many live tips on using 2d math, palettes and right-click menus before starting the calculus examples. You are free to type literally old style 1d math (character mode) found in textbook examples right into the 2d input mode, but you can also take advantage of 2d features while doing so, mixing 1d and 2d entry. **Fortunately the Maple "Clickable Calculus" approach makes it very easy to use palette entry and context sensitive right click menus to do most of what is needed in these courses without special instruction!**

These files have their output removed [Edit Menu, Remove Output, All] and must be re-executed by clicking on the Execute Worksheet icon "!!!" on the toolbar. This saves a lot of server space since the executed files can be much larger, especially when 3d graphics are present. However, when executing with "!!!" instead of step by step, sometimes help pages pop up, leading to many simultaneous open windows [Window menu, first file in list is original], or pop up Java applet interactive windows appear (from Tutor commands), each of which must be closed in turn before the worksheet can proceed executing. To execute step by step, just hit the Enter key for each execution of an input group to see its output appear. Then move on to the next step.

## Tips to Remember

### Remember this if nothing else

- "e" is
**not Euler's number**, use the Expression palette.
- 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 of **New Document** or **New Worksheet** (or start by using the **File menu, **and selecting **New** then* ***Document Mode **or** ***Worksheet 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.

[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 a **New Document** instead, 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.]

**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.

D is reserved for Maple function differentiation.
- 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}.]

Curly brackets {,} are used to enclose sets of objects whose order is unimportant, as in a set of equations to be solved.

**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**:

spaces between variables or between a variable and a constant (*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.]

Control F2 gives you the Quick Reference Card summary of Maple interface help.

When you put the cursor on a Maple command,

F2 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.

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*^{3/2}. [Note you need the** 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.
- 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.]

### Advanced Users Only

- Want to include text or math formulas in your plots? It is easy with Maple's
**plot Drawing tools**. See the example file.
- Want to include plots with sliders to change the parameters in a family of functions?

See the example file.
- You can display vectors or matrices with more than 10 rows by for example:

>* interface*(*rtablesize*=50)
- To show datapoints plotted by plot as a 2 column matrix:

> A:=plot(x^2,x=0..1): N := nops(convert(A, listlist)); interface(rtablesize = N); A

- You can
**show the code**; for example, to see the code for "plot" do:

> interface(verboseproc=2);

> readlib(plot);

To read code of a command in a package use something like:

> readlib(linalg:-charpoly);

- To
**update** an older Classic .mws worksheet with 1d math inputs, open it in Standard Maple and save it as a Standard worksheet, then go to Format, Styles, C 2d input, Modify, Restore to Default, OK, OK. Then you can select each range of only 1d inputs (avoiding text regions) and do Format, Convert to, 2d math input. This requires some fiddling, since the autolinebreaking feature is not perfect and there are a few other possible minor glitches. Remove final semicolons from a single input or from the final input of a multiple input line execution group; they are now only needed to separate multiple inputs.
- To put a
**figure and text side by side** in a document block region, just insert a 2x1 Table from the Insert Menu [turn off the exterior and interior borders in Properties] and copy and paste your plot into one of the two table cells, and type your text into the other cell. In a worksheet, you must first introduce a document block with the Format Menu, Create Document Block. Center the figure with the text center icon.

- View Menu,
**Palettes**, Arrange Palettes lets you put the most used palettes first: Expressions, Common Symbols, Matrix, Greek, Operators (for cross product symbol), Punctuation (for underscore in 2d math input).
- To
**extract contents of the various tutors** [Tools Menu, Tutors] which are not inserted as the final output of the applets into the worksheet, one must select contents of internal applet windows with the mouse, and then Control C copy and then paste into the worksheet after exiting the applet.
- You can convert a
**document block** to a **worksheet block** to reveal the underlying Maple commands which generated it. Select View menu, **Show Markers** to show a left strip marking off the individual document blocks, the right clicking on the marker for a given block allows it to be expanded, and then collapsed.

Please share your tips by emailing robert.jantzen@villanova.edu.