Integrate an expression (indefinite, or definite with bounds)

Integrates an expression. Pass lower and upper for a definite integral with its numeric value.

Request

POSThttps://math-solver.p.apihiver.com/v1/integral

JSON object. Required: expression.

Request Body

Edit the values below to test different scenarios.

Parameters and body structure are inherited from this endpoint's definition. Changes here only apply to this test run.

Language
Client
1curl --request POST \
2  --url https://math-solver.p.apihiver.com/v1/integral \
3  --header 'Accept: application/json' \
4  --header 'Content-Type: application/json' \
5  --header 'X-API-Key: YOUR_API_KEY' \
6  --data '{
7  "lower": "0",
8  "upper": "3",
9  "expression": "x^2"
10}'

Integrate an expression (indefinite, or definite with bounds): Math Solver API reference

Integrates an expression. Pass `lower` and `upper` for a definite integral with its numeric value. This endpoint is part of the Math Solver API: Evaluate expressions, solve equations, and compute derivatives, integrals and simplifications — with exact and decimal answers.

Example response (200, application/json)

Success.

1{
2  "numeric": "9.000000000",
3  "integral": "9",
4  "expression": "x^2"
5}

Errors

  • 400 — A required parameter is missing or a value has the wrong format.
    1{
    2  "error": {
    3    "code": "INVALID_INPUT",
    4    "message": "expression: Field required"
    5  }
    6}

Gateway errors (missing key, no subscription, rate limits) are listed in Error codes.