verify_antiderivative
Checks whether a provided antiderivative is correct by differentiating it symbolically; reports verified, inconclusive, or incorrect results, and accepts answers that differ by a constant.
Instructions
Check whether 'antiderivative' is a correct antiderivative of 'integrand' by differentiating it with a symbolic engine (SymPy). Use it whenever the user brings their own integration result: never compare or check by hand. Results that differ by a constant are correct. status: 'verified' (proven), 'inconclusive' (numerically correct but not proven symbolically) or 'incorrect' (with the simplified difference d/dx(antiderivative) - integrand). 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). A '+ C' in the antiderivative is fine.
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": {
"integrand": "<integrand>",
"antiderivative": "<antiderivative>"
},
"name": "verify_antiderivative"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variable | No | x | |
| integrand | Yes | ||
| antiderivative | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| status | Yes | ||
| difference | No | ||
| difference_latex | No |