Simplify / expand / factor an expression

Simplifies an algebraic expression, and also returns its expanded and factored forms.

Request

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

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

Simplify / expand / factor an expression: Math Solver API reference

Simplifies an algebraic expression, and also returns its expanded and factored forms. 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  "expanded": "x**2/(x - 1) - 1/(x - 1)",
3  "factored": "x + 1",
4  "expression": "(x^2-1)/(x-1)",
5  "simplified": "x + 1"
6}

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.