integrate
Computes symbolic indefinite and definite integrals step by step with SymPy, showing each step on a visual whiteboard for methods like parts, substitution, and partial fractions.
Instructions
Integrate an expression step by step with a symbolic engine (SymPy) and show every step on a visual whiteboard. NEVER integrate by hand and never change the result. method: 'auto' (default) or the method the user asks for: 'parts' (give u, optionally dv), 'substitution' (give u as a function of the variable, e.g. 'x2'), 'partial_fractions'. Use exactly the method and u the user chose; if the tool returns an error, tell the user and do not switch methods on your own. The user already sees all the steps on the whiteboard: do NOT rewrite or recompute them in your reply. Answer with the result and at most one short sentence about the method. If the whiteboard is not displayed in this app, give the user board_url (or board_path). Indefinite: omit 'lower'/'upper'; the result includes + C. Definite: give both limits (0, pi/2, E, oo, -oo); discontinuities are handled as improper integrals and status may be 'diverges' with an explanation. 'verification' is 'verified' or 'inconclusive' (only numeric). If the user brings their own antiderivative, use verify_antiderivative instead. Expression syntax (SymPy): x2 (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).
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": "integrate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| u | No | ||
| dv | No | ||
| lower | No | ||
| upper | No | ||
| method | No | auto | |
| variable | No | x | |
| expression | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| latex | Yes | ||
| steps | Yes | ||
| method | Yes | ||
| result | Yes | ||
| status | No | ||
| board_id | Yes | ||
| improper | No | ||
| warnings | No | ||
| board_url | No | ||
| board_path | No | ||
| explanation | No | ||
| verification | Yes | ||
| discontinuities | No | ||
| generic_fallback | No |