Derivative Calculator
derivativeCompute symbolic and numerical derivatives of mathematical expressions, including higher-order and partial derivatives, with optional evaluation at a given point.
Instructions
Compute symbolic and numerical derivatives with support for higher orders and partial derivatives.
Examples:
FIRST DERIVATIVE: expression="x^3 + 2x^2", variable="x", order=1 Result: derivative="3x^2 + 4*x"
SECOND DERIVATIVE (acceleration/concavity): expression="x^3", variable="x", order=2 Result: derivative="6*x"
EVALUATE AT POINT: expression="sin(x)", variable="x", order=1, point=0 Result: derivative="cos(x)", value_at_point=1.0
PRODUCT RULE: expression="sin(x)*cos(x)", variable="x", order=1 Result: derivative="cos(x)^2 - sin(x)^2"
PARTIAL DERIVATIVE: expression="x^2*y", variable="y", order=1 Result: derivative="x^2" (treating x as constant)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | Optional annotation to label this calculation (e.g., 'Bond A PV', 'Q2 revenue'). Appears in results for easy identification. | |
| output_mode | No | Output format: full (default), compact, minimal, value, or final. See batch_execute tool for details. | full |
| expression | Yes | Mathematical expression to differentiate (e.g., 'x^3 + 2*x^2', 'sin(x)') | |
| variable | Yes | Variable to differentiate with respect to (e.g., 'x', 't') | |
| order | No | Derivative order (1=first derivative, 2=second, etc.) | |
| point | No | Optional point for numerical evaluation of the derivative |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |