diff#
Differentiate an expression symbolically.
Available in: math cells, REPL.
Syntax#
diff(expression, variable)
Arguments and behavior#
Differentiates an expression symbolically. derivative is an alias for diff. Higher derivatives can use the optional order argument supported by diff. An array argument takes the differences between its elements. The example returns text.
Example#
Edit the inputs, then use Run or Reset. Changes stay in this example.
Example
diff("sin(x)","x")Interactive examples could not load. You can still copy the expressions.
Expected result: cos(x).