unable to parse integral - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : System : Error Message Guide : unable to parse integral

Error, unable to parse integral. Integrals must be terminated with the differential symbol followed by the variable of integration; use command/symbol completion, the palettes, or the int command to enter this symbol

Error, unable to parse integral, must be terminated with a differential containing DifferentialD

 

Description

Examples

Description

This error occurs when an integral is not formed correctly.  Integrals that are entered with the  symbol must end with a differential; however, simply typing 'dx' is not sufficient.  Maple requires a special character for the 'd' prefix of the integration variable (DifferentialD).

 

To correctly enter an integral in 2-D math, do one of the following:

• 

Type int, then use command completion.  Select the template integral(definite) or integral(indefinite) from the pop-up list.

• 

Use an integration template from the Calculus or Expression palette.

Using these methods ensures your expression is parsable Maple syntax.

 

Integrals can also be entered using the int command.

 

Tip: If an expression is executed accidentally, it can lead to error messages (if it is not valid Maple syntax). If this happens, toggling the expression to nonexecutable math removes the error message and changes the math to nonexecutable. To change an expression to nonexecutable math use the shortcut key Shift + F5.  For more information, see Executable and Nonexecutable Math.

Examples

Example 1. This integral is missing the differential.

sinx

Error, unable to parse integral. Integrals must be terminated with the differential symbol followed by the variable of integration; use command/symbol completion, the palettes, or the int command to enter this symbol

Solution - Use command completion

Type int and press Esc.  From the pop-up list, select the desired template.  

In this case we select int (indefinite).  It is inserted with the placeholder f selected.  Type sin(x).  Press Tab to go to the next placeholder, and enter x for the variable of integration.

sinx ⅆx

cosx

(2.1)

Example 2. This integral was formed by using the  symbol then typing sin(x)dx.  The dx is not recognized as a differential.

sinxdx

Error, unable to parse integral. Integrals must be terminated with the differential symbol followed by the variable of integration; use command/symbol completion, the palettes, or the int command to enter this symbol

Solution - Use the palettes 

From the Calculus palette, select the template fⅆx.  Replace the placeholder f  with sinx.  Use the Tab key to move to the next placeholder. Replace the placeholder x with x.  Execute.

sinx ⅆx

cosx

(2.2)

Solution - Use the int command

You can also enter an integral using the int command.

intsinx,x

cosx

(2.3)

Note: In Maple 2019 and earlier versions, error message that occurs in these examples is slightly different:

sinx

Error, unable to parse integral, must be terminated with a differential containing DifferentialD

The solutions to the problem are the same as described above.

See Also

command completion

Executable and Nonexecutable Math

Expression Palette

int