Operator D vs. Function diff - Maple Programming Help

Home : Support : Online Help : Mathematics : Calculus : Differential Calculus : operators/D

Operator D vs. Function diff

Description

 • The D operator computes derivatives of operators, while diff computes derivatives of expressions.
 • The argument and result of D are functional operators, while the argument and result of diff are expressions.
 • The following diagram illustrates the transitions that occur using D, diff, unapply, and function application.

 function application --> f   -----------------------------   f(x) <-- unapply |                                    | |                                  d | ^ |                                  i | | |D()                               f | | |                                f | i | |                                  | n | V                                | | t |                                  V | |                                    | function application --> D(f) ----------------------------   f'(x) <-- unapply

Examples

 > $\mathrm{D}\left(\mathrm{sin}\right)\left(x\right)$
 ${\mathrm{cos}}{}\left({x}\right)$ (1)
 > $\mathrm{diff}\left(\mathrm{sin}\left(x\right),x\right)$
 ${\mathrm{cos}}{}\left({x}\right)$ (2)
 > $\mathrm{D}\left(\mathrm{@}\left(f,g\right)\right)$
 ${\mathrm{D}}{}\left({f}\right){@}{g}{}{\mathrm{D}}{}\left({g}\right)$ (3)
 > $\mathrm{diff}\left(\left(\mathrm{@}\left(f,g\right)\right)\left(x\right),x\right)$
 ${\mathrm{D}}{}\left({f}\right){}\left({g}{}\left({x}\right)\right){}\left(\frac{{ⅆ}}{{ⅆ}{x}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{g}{}\left({x}\right)\right)$ (4)