differentiation_rule - Maple Help

return the differentiation rule of a given mathematical function

Parameters

 differentiation_rule - literal name; 'differentiation_rule' math_function - Maple name of mathematical function

Description

 • The FunctionAdvisor(differentiation_rule, math_function) command returns both the differentiation rule (first derivative) and the symbolic differentiation rule (${n}^{\mathrm{th}}$ derivative) for the function. The result thus consists of a sequence of two equations, with inert derivatives on the left-hand sides (represented using Diff) and the corresponding values of these derivatives on the right-hand sides.

Examples

 > $\mathrm{FunctionAdvisor}\left(\mathrm{differentiation_rule},\mathrm{arcsin}\right)$
 $\frac{{ⅆ}}{{ⅆ}{z}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{\mathrm{arcsin}}{}\left({z}\right){=}\frac{{1}}{\sqrt{{-}{{z}}^{{2}}{+}{1}}}{,}\frac{{{ⅆ}}^{{n}}}{{ⅆ}{{z}}^{{n}}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{\mathrm{arcsin}}{}\left({z}\right){=}\frac{{{2}}^{{n}{-}{1}}{}{{z}}^{{1}{-}{n}}{}{\mathrm{MeijerG}}{}\left(\left[\left[{0}{,}\frac{{1}}{{2}}{,}\frac{{1}}{{2}}\right]{,}\left[\right]\right]{,}\left[\left[{0}\right]{,}\left[{-}\frac{{1}}{{2}}{+}\frac{{n}}{{2}}{,}\frac{{n}}{{2}}\right]\right]{,}{-}{{z}}^{{2}}\right)}{\sqrt{{\mathrm{\pi }}}}$ (1)
 > $\mathrm{FunctionAdvisor}\left(\mathrm{differentiation_rule},\mathrm{dilog}\right)$
 $\frac{{ⅆ}}{{ⅆ}{z}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{\mathrm{dilog}}{}\left({z}\right){=}\frac{{\mathrm{ln}}{}\left({z}\right)}{{1}{-}{z}}{,}\frac{{{ⅆ}}^{{n}}}{{ⅆ}{{z}}^{{n}}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{\mathrm{dilog}}{}\left({z}\right){=}\left\{\begin{array}{cc}{\mathrm{dilog}}{}\left({z}\right)& {n}{=}{0}\\ {\left({-1}\right)}^{{n}}{}{\mathrm{MeijerG}}{}\left(\left[\left[{1}{-}{n}{,}{1}{-}{n}\right]{,}\left[\right]\right]{,}\left[\left[{0}\right]{,}\left[{-}{n}\right]\right]{,}{z}{-}{1}\right)& {\mathrm{otherwise}}\end{array}\right\$ (2)

The variables used by the FunctionAdvisor command to create the calling sequence are local variables. To make the FunctionAdvisor command return results using global variables, pass the actual function call instead of the function name.  Compare the following two input and output groups.

 > $\mathrm{eq1}≔\mathrm{FunctionAdvisor}\left(\mathrm{diff},\mathrm{Zeta}\right)$
 * Partial match of "diff" against topic "differentiation_rule".
 ${\mathrm{eq1}}{≔}\frac{{\partial }}{{\partial }{s}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{\mathrm{\zeta }}{}\left({n}{,}{s}{,}{a}\right){=}{\mathrm{\zeta }}{}\left({n}{+}{1}{,}{s}{,}{a}\right){,}\frac{{\partial }}{{\partial }{a}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{\mathrm{\zeta }}{}\left({n}{,}{s}{,}{a}\right){=}{-}{s}{}{\mathrm{\zeta }}{}\left({n}{,}{s}{+}{1}{,}{a}\right){-}\left(\left\{\begin{array}{cc}{0}& {n}{=}{0}\\ {n}{}{\mathrm{\zeta }}{}\left({n}{-}{1}{,}{s}{+}{1}{,}{a}\right)& {\mathrm{otherwise}}\end{array}\right\\right)$ (3)
 > $\mathrm{has}\left(\left[\mathrm{eq1}\right],a\right),\mathrm{has}\left(\left[\mathrm{eq1}\right],b\right),\mathrm{has}\left(\left[\mathrm{eq1}\right],z\right)$
 ${\mathrm{false}}{,}{\mathrm{false}}{,}{\mathrm{false}}$ (4)
 > $\mathrm{eq2}≔\mathrm{FunctionAdvisor}\left(\mathrm{diff},\mathrm{Zeta}\left(a,b,z\right)\right)$
 * Partial match of "diff" against topic "differentiation_rule".
 ${\mathrm{eq2}}{≔}\frac{{\partial }}{{\partial }{b}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{\mathrm{\zeta }}{}\left({a}{,}{b}{,}{z}\right){=}{\mathrm{\zeta }}{}\left({a}{+}{1}{,}{b}{,}{z}\right){,}\frac{{\partial }}{{\partial }{z}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{\mathrm{\zeta }}{}\left({a}{,}{b}{,}{z}\right){=}{-}{b}{}{\mathrm{\zeta }}{}\left({a}{,}{b}{+}{1}{,}{z}\right){-}\left(\left\{\begin{array}{cc}{0}& {a}{=}{0}\\ {a}{}{\mathrm{\zeta }}{}\left({a}{-}{1}{,}{b}{+}{1}{,}{z}\right)& {\mathrm{otherwise}}\end{array}\right\\right)$ (5)
 > $\mathrm{has}\left(\left[\mathrm{eq2}\right],a\right),\mathrm{has}\left(\left[\mathrm{eq2}\right],b\right),\mathrm{has}\left(\left[\mathrm{eq2}\right],z\right)$
 ${\mathrm{true}}{,}{\mathrm{true}}{,}{\mathrm{true}}$ (6)

For functions which accept different numbers of parameters, you can specify for which function call you want the differentiation rule by specifying the function with the appropriate number of arguments. For example, for Zeta, if given with only one argument specified, it represents the Hurwitz Zeta function and its differentiation rule is the following.

 > $\mathrm{FunctionAdvisor}\left(\mathrm{diff},\mathrm{Zeta}\left(z\right)\right)$
 * Partial match of "diff" against topic "differentiation_rule".
 $\frac{{ⅆ}}{{ⅆ}{z}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{\mathrm{\zeta }}{}\left({z}\right){=}{\mathrm{\zeta }}{}\left({1}{,}{z}\right){,}\frac{{{ⅆ}}^{{n}}}{{ⅆ}{{z}}^{{n}}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{\mathrm{\zeta }}{}\left({z}\right){=}{\mathrm{\zeta }}{}\left({n}{,}{z}\right)$ (7)

As another example, consider the exponential integral Ei.

 > $\mathrm{FunctionAdvisor}\left(\mathrm{differentiation_rule},\mathrm{Ei}\left(z\right)\right)$
 $\frac{{ⅆ}}{{ⅆ}{z}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{\mathrm{Ei}}{}\left({z}\right){=}\frac{{{ⅇ}}^{{z}}}{{z}}{,}\frac{{{ⅆ}}^{{n}}}{{ⅆ}{{z}}^{{n}}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{\mathrm{Ei}}{}\left({z}\right){=}\left\{\begin{array}{cc}{\mathrm{Ei}}{}\left({z}\right)& {n}{=}{0}\\ {-}{{ⅇ}}^{{z}}{}\left({\sum }_{{\mathrm{_k1}}{=}{0}}^{{n}{-}{1}}{}\frac{\left({n}{-}{1}\right){!}{}{\left({-1}\right)}^{{n}{-}{\mathrm{_k1}}}{}{{z}}^{{\mathrm{_k1}}{-}{n}}}{{\mathrm{_k1}}{!}}\right)& {\mathrm{otherwise}}\end{array}\right\$ (8)
 > $\mathrm{FunctionAdvisor}\left(\mathrm{differentiation_rule},\mathrm{Ei}\left(a,z\right)\right)$
 $\frac{{\partial }}{{\partial }{a}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{{\mathrm{Ei}}}_{{a}}{}\left({z}\right){=}{-}{{z}}^{{a}}{}{\mathrm{MeijerG}}{}\left(\left[\left[\right]{,}\left[{0}{,}{0}\right]\right]{,}\left[\left[{-1}{,}{-1}{,}{-}{a}\right]{,}\left[\right]\right]{,}{z}\right){,}\frac{{\partial }}{{\partial }{z}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{{\mathrm{Ei}}}_{{a}}{}\left({z}\right){=}{-}{{\mathrm{Ei}}}_{{a}{-}{1}}{}\left({z}\right){,}\frac{{{\partial }}^{{n}}}{{\partial }{{z}}^{{n}}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{{\mathrm{Ei}}}_{{a}}{}\left({z}\right){=}{-}\frac{{\left({-1}\right)}^{{n}}{}{\mathrm{MeijerG}}{}\left(\left[\left[{0}{,}{a}\right]{,}\left[\right]\right]{,}\left[\left[{0}\right]{,}\left[{a}{-}{1}{,}{n}\right]\right]{,}{z}\right)}{{\left({-}{z}\right)}^{{n}}}{+}\frac{{\mathrm{\pi }}{}{{z}}^{{a}{-}{1}{-}{n}}}{{\mathrm{\Gamma }}{}\left({a}{-}{n}\right){}{\mathrm{sin}}{}\left({\mathrm{\pi }}{}{a}\right)}$ (9)

Compatibility

 • The FunctionAdvisor/differentiation_rule command was updated in Maple 2016.