diff - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

# Online Help

###### All Products    Maple    MapleSim

Units[Simple]

 diff
 differentiation and partial differentiation in the Simple Units environment

 Calling Sequence diff(a, x)

Parameters

 a - algebraic expression x - name or name multiplied by a unit

Description

 • In the Simple Units environment, the diff function differentiates an expression a with respect to a name x that can have a unit.  The result is the derivative of a with respect to x; its unit is the unit of a divided by the unit of x.
 • Every command in the Simple Units environment that needs to determine whether an expression is valid or not, does so using the Units:-TestDimensions command.
 • For other properties, see the global function diff.

Examples

Notes:

 – To enter a unit in 2-D Math input, select the unit from the appropriate Units palette. If the unit you want is not there, select $\mathrm{unit}$ and then enter the unit.
 – When you edit a unit, double brackets appear around it.
 > $\mathrm{with}\left({\mathrm{Units}}_{\mathrm{Simple}}\right):$
 > $-3.532{x}^{2}⟦'J'⟧$
 ${-}{3.532}{}{{x}}^{{2}}{}⟦{J}⟧$ (1)
 > $\mathrm{diff}\left(,x⟦'s'⟧\right)$
 ${-}{7.064}{}{x}{}⟦{W}⟧$ (2)
 > $32{x}^{2}⟦'\mathrm{ft}'⟧+7x⟦'\mathrm{inch}'⟧+45⟦'m'⟧$
 $\left(\frac{{6096}}{{625}}{}{{x}}^{{2}}{+}\frac{{889}}{{5000}}{}{x}{+}{45}\right){}⟦{m}⟧$ (3)
 > $\mathrm{diff}\left(,x⟦'s'⟧,x⟦'s'⟧\right)$
 $\frac{{12192}}{{625}}{}⟦\frac{{m}}{{{s}}^{{2}}}⟧$ (4)
 > $4{x}^{4}-3x+2$
 ${4}{}{{x}}^{{4}}{-}{3}{}{x}{+}{2}$ (5)
 > $\mathrm{diff}\left(,x⟦'s'⟧\right)$
 $\left({16}{}{{x}}^{{3}}{-}{3}\right){}⟦\frac{{1}}{{s}}⟧$ (6)

 See Also