if d is meant to be the differential symbol - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : System : Error Message Guide : if d is meant to be the differential symbol

Warning, if d is meant to be the differential symbol (and not just a variable d), use command completion or palettes to enter this expression, or use the diff command

 

Description

Examples

Description

In Maple, you have the freedom to use almost any letter as a variable, even when that letter is also used to represent a particular mathematical symbol or constant, such as the exponential constant ⅇ,the differential symbol ⅆ, or the imaginary unit .  To achieve this flexibility, these characters need to be entered as special symbols.

This warning occurs if you enter something that resembles a differential expression, but use the variable d, not the differential symbol ⅆ. In order to enter the differential symbol, use command completion, the palettes, or the diff command, as demonstrated in the examples below.

If in fact you did want to use d or dx as simply a variable and you do not want to see this message, you can turn off this and similar warning messages by using Typesetting:-Settings(parserwarnings=false).  See Example 2.

Examples

Example 1

Typing d/dx by hand does not create a differential expression.  Instead, the d is simply a variable (and the same with dx).

ddxx2

Warning, if d is meant to be the differential symbol (and not just a variable d), use command completion or palettes to enter this expression, or use the diff command

dx2dx

(2.1)

Solution 1 - Use the command completion

Use command completion to enter a differential expression.  Start by typing 'diff', then press Esc.  From the pop-up list, select the desired template.

 

 

In this case, we select .  It is inserted with the placeholder x selected.  Type x (or whatever your variable is).  Use the right arrow to exit the denominator, then type x^2.

 

ⅆⅆxx2

2x

(2.2)

Tip: If you only need the ⅆ symbol and not the full template, type d and press Esc, and then select Differential 'd' from the pop-up list.

 

Solution 2 - Use the Calculus palette

The Calculus palette (along with the Expression palette) provide templates for entering differential expressions.

 

Place your cursor in your document, then click the   template.  Press Tab to go to the first placeholder x.  Type x.  Press Tab to go to the second placeholder.  Type x^2.  Press enter to execute.  You can see this is now an expression for the derivative of x2 with respect to x.

ⅆⅆ xx2

2x

(2.3)

Note the parentheses around the expression that is being differentiated.  In this case it works with or without the parenthesis, but for another expression, for example the polynomial x240 x6, you must use parentheses:

 

ⅆⅆxx240 x6

2x40

(2.4)

 

Solution 3 - The diff command

You can also use the diff command to perform differentiation:

diffx2,x

2x

(2.5)

See the diff help page for additional information.

Example 2 - Prevent this warning from appearing

Suppose do you want to use d as a name (a variable), and did not intend it to mean the differential symbol

dt0.01

dt0.01

(2.6)

ddt

Warning, if d is meant to be the differential symbol (and not just a variable d), use command completion or palettes to enter this expression, or use the diff command

100.d

(2.7)

Solution

You can control whether parse warning messages appear via Typesetting:-Settings.

Typesetting:-Settingsparserwarnings=false:

ddt

100.d

(2.8)

Now you do not see the warning message.

See Also

Palettes

Command Completion

diff

Typesetting:-Settings