Differentiate an expression

Differentiates an expression with respect to a variable.

Request

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

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/derivative \
3  --header 'Accept: application/json' \
4  --header 'Content-Type: application/json' \
5  --header 'X-API-Key: YOUR_API_KEY' \
6  --data '{
7  "expression": "x^3"
8}'

Differentiate an expression: Math Solver API reference

Differentiates an expression with respect to a variable. 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  "derivative": "3*x**2",
3  "expression": "x^3"
4}

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.