differentiate
Compute symbolic derivatives of expressions with respect to a chosen variable using SymPy, returning results in SymPy syntax and LaTeX. Use it whenever an exact derivative is needed.
Instructions
Differentiate an expression with respect to a variable using a symbolic engine (SymPy). ALWAYS use it when a derivative is needed: do not differentiate by hand or adjust the result. Expression syntax (SymPy): x**2 (or x^2), 3*x (explicit multiplication), sin(x), cos(x), tan(x), exp(x), log(x) (natural log), sqrt(x), asin(x), atan(x). Also accepts sen, tg and ln. Constants: pi, E, oo (infinity). Returns the result in SymPy syntax and in LaTeX.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"expression": "<expression>"
},
"name": "differentiate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variable | No | x | |
| expression | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| latex | Yes | ||
| result | Yes | ||
| variable | Yes |