Integral Calculator
integralCompute symbolic antiderivatives or definite integrals numerically. Input an expression and variable; optionally set bounds and method for exact or approximate results.
Instructions
Compute symbolic and numerical integrals (definite and indefinite).
Examples:
INDEFINITE INTEGRAL (antiderivative): expression="x^2", variable="x" Result: "x^3/3"
DEFINITE INTEGRAL (area): expression="x^2", variable="x", lower_bound=0, upper_bound=1 Result: 0.333
TRIGONOMETRIC: expression="sin(x)", variable="x", lower_bound=0, upper_bound=3.14159 Result: 2.0 (area under one period)
NUMERICAL METHOD (non-elementary): expression="exp(-x^2)", variable="x", lower_bound=0, upper_bound=1, method="numerical" Result: 0.746824 (Gaussian integral approximation)
SYMBOLIC ANTIDERIVATIVE: expression="1/x", variable="x" Result: "log(x)"
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 integrate (e.g., 'x^2', 'sin(x)') | |
| variable | Yes | Integration variable (e.g., 'x', 't') | |
| lower_bound | No | Lower bound for definite integral (omit for indefinite) | |
| upper_bound | No | Upper bound for definite integral (omit for indefinite) | |
| method | No | Integration method: symbolic=exact/analytical, numerical=approximate (requires bounds) | symbolic |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |