Enter an expression - Maple Help

Home : Support : Online Help : Getting Started : How Do I... : Enter an expression

How Do I

 Enter a Simple Expression?

In Maple, mathematical expressions, such as $\sqrt{{x}^{2}+\mathrm{π}}$, can be entered in a natural, textbook-like notation. In Maple, this is called 2-D Math notation. The following examples demonstrate the process of entering expressions.

To begin, create a new document in Document mode. To begin entering a 2-D mathematical expression, ensure that you are in Math mode. In this mode, the cursor is inside a box with a dotted outline that indicates the boundaries of the mathematical expression. By default, all new documents created in Document mode start in Math mode so that you can begin entering mathematical expressions immediately. To switch between Math mode and Text mode, press F5.

Example:

Ensure that you are in Math mode, and follow the steps below to enter the expression .

 Step Description Illustration 1 Type $2$, then $x$. 2 Press forwards slash (/) to enter the denominator. 3 Type $5$. 4 To bring the cursor back onto the base line, press the right arrow (→) key on your keyboard. 5 Type (+). There is no need to type a space, as Maple automatically adjusts the spacing for you. 6 Repeat steps 1 through 4 to type . 7 If you wish to continue typing non-mathematical text, press F5 to switch to Text mode.

Note on Multiplication: In general, you need to indicate multiplication by using * or a space.  In 2-D math, * appears as a center dot ($\cdot$).  In this example, the multiplication of a number by a name is typed as simply 2, then x: .  However, in other cases you will need to make sure to use * or a space.  Here are a few examples:

$\left(x+1\right)\cdot \left(x-2\right)$

$x\cdot y$

Example: $\sqrt{{x}^{2}+\mathrm{π}}$
Ensure that you are in Math mode, and follow the steps below to enter the expression $\sqrt{{x}^{2}+\mathrm{\pi }}$.
 Step Description Illustration 1 Click the $\sqrt{{a}}$ template in the Expression palette. The green placeholder is selected automatically. 2 Type $x$ to overwrite the ${a}$. 3 To place the cursor in the exponent position, press Shift + ^. Type $2$. 4 To bring the cursor back onto the base line, press the right arrow [→] key on your keyboard. 5 Type +. There is no need to type a space, as Maple automatically adjusts spacing for you. 6 Type the word pi, and press Esc. The command completion list appears, listing every available symbol and command whose name begins with pi. For the Greek symbol for pi, select $\mathbf{π}$. 7 If you wish to continue typing non-mathematical text, press F5 to switch to Text mode.