Math Workbench
Simplify, factor, differentiate, integrate, solve, take limits, series and plots in one box.
Try an example: Definite integral by parts · Second derivative · Solve a quadratic · Classic limit · Taylor series · Factor a polynomial · Plot two functions · Integral without elementary antiderivative
How it works
A small computer algebra system: type commands such as "integrate x*e^x from 0 to 1", "derivative sin(x)^2", "solve x^2 - 5x + 6 = 0", "limit sin(x)/x as x -> 0" or "series cos(x) at 0 order 6". Results are exact (fractions, roots, π) where possible, and the tool says clearly when it falls back to a numeric answer.
- Input is tokenised and parsed with a Pratt parser that understands implicit multiplication (2x, 3(x+1), x sin x), powers of functions (sin^2(x)), |x| and the usual functions; log means the natural logarithm, log10/log2 are explicit.
- All numbers are exact fractions (BigInt rationals); expressions are kept in a canonical form (like terms collected, powers merged, exact values of roots and special angles).
- Derivatives use the sum, product, power and chain rules. Integrals use a table of standard forms, linearity, substitution, integration by parts, partial fractions and the e^(ax)·sin(bx) formula; every antiderivative is verified by differentiating it numerically at several points.
- Definite integrals use F(b) − F(a) when an antiderivative exists and the integrand has no singularity inside the interval, cross-checked by adaptive Simpson (or tanh–sinh quadrature for endpoint singularities and infinite ranges); otherwise the numeric value is shown and labelled as such.
- Limits try direct substitution, then L’Hôpital’s rule on 0/0 and ∞/∞ quotients, degree comparison at infinity, and finally numeric one-sided evaluation with extrapolation (marked as numeric).
- Equations: linear, quadratic, rational, radical and higher polynomial equations (rational root theorem, then Durand–Kerner for the rest); systems of linear equations by exact Gaussian elimination.
A compact computer algebra system, not a full replacement for Mathematica or SymPy: some simplifications (e.g. most trigonometric identities) are not applied, and numeric fallbacks are approximations.
For scripts and AI agents
- JSON API:
POST https://mathworkbench.usefulweb.site/api/v1/calculate(same calculation as this page) - Interface description: OpenAPI 3.1 · AI guide: llms.txt
- MCP server (Streamable HTTP):
https://mathworkbench.usefulweb.site/mcp· tool namemath_workbench
Example request
curl -s -X POST https://mathworkbench.usefulweb.site/api/v1/calculate \
-H 'content-type: application/json' \
-d '{"query":"integrate x*e^x from 0 to 1"}'Related tools
- Step-by-Step Equation Solver – Solve linear, quadratic, rational and radical equations or linear systems with every step shown.
- Graphing Calculator – Plot up to 6 functions or parametric curves with roots, extrema, intersections and SVG/PNG export.
- Matrix & Linear Algebra Lab – Exact-fraction RREF with steps, determinant, inverse, null space, eigenvalues, LU/QR and Ax = b.