Symbolic Derivative
derivativeCompute the symbolic derivative of a math expression with respect to a variable. Handles constants and simplifies the result automatically.
Instructions
Compute the symbolic derivative (differentiation) of a math expression with respect to a variable. Example: expression 'x^3 + sin(x)' with variable 'x' yields '3 * x ^ 2 + cos(x)'. Other symbols in the expression are treated as free constants; the result is simplified.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variable | Yes | The variable to differentiate with respect to, e.g. 'x'. | |
| expression | Yes | A mathematical expression to differentiate, e.g. 'x^3 + sin(x)'. |