Math Workbench
Simplify, factor, differentiate, integrate, solve, take limits, series and plots in one box.
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.
Use this tool in an app
These free programs for your browser have this tool built in, next to everything else the task needs.
-
Proofline Math notebook
Solve, graph, test and visualise in one notebook — with data, findings and a report.
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.
How to use the Math Workbench
Type one command to simplify, factor, differentiate, integrate, solve, take limits, expand series or plot, with exact answers and the steps behind them.
What it is for
You have an integral from a homework sheet, a derivative you want to double-check, or a limit that keeps coming out as 0/0. The Math Workbench is a small computer algebra system in a single text box: you write a command in plain notation and get an exact answer, the method that produced it and a short list of steps.
It understands simplify, expand, factor, derivative (or d/dx, d^2/dx^2), integrate with or without limits, solve, limit … as x -> a, evaluate … at x = 2, series … at a order n and plot. Implicit multiplication such as 2x or x sin x works, and log means the natural logarithm.
It is not Mathematica. Most trigonometric identities are not applied automatically, and when no exact method works the tool falls back to a numeric approximation and labels it clearly.
Worked example
Take the classic integration-by-parts exercise: integrate x*e^x from 0 to 1.
The tool returned the antiderivative x·e^x − e^x + C, listed its methods as "exponential rule; integration by parts (u = x)", evaluated F(1) − F(0) and reported the exact result 1. An adaptive Simpson cross-check also gave 1, so the symbolic and numeric answers agree.
Now try an integrand with no elementary antiderivative: integrate e^(-x^2) from 0 to 2. The result was ≈ 0.882081390762 (numeric), with the warning "Result is numeric, not exact" and a note that no antiderivative was found by the implemented rules. That honesty is the point: you know which answers you can copy as exact and which are approximations (about 10 correct digits for smooth integrands).
A few more real outputs:
| Command | Result |
|---|---|
limit (1 - cos(x))/x^2 as x -> 0 | 1/2 (L'Hôpital's rule twice) |
series ln(1+x) at 0 order 5 | x − x²/2 + x³/3 − x⁴/4 + x⁵/5 + O(x⁶) |
factor x^4 - 5x^2 + 4 | (x − 1)(x − 2)(x + 1)(x + 2) |
d^2/dx^2 sin(x)^2 | 2 − 4sin(x)² |
How to read the result
- Result: the exact answer in text and typeset form, plus a decimal value where one exists.
- Method: what solved it, for example "fundamental theorem of calculus", "quadratic formula" or "adaptive Simpson rule". A numeric method here means the answer is approximate.
- Steps: the reasoning in order. For limits you see each L'Hôpital step; for integrals the substitution or parts choice and the differentiation check.
- Items: intermediate pieces such as F(x), f′(x) and f″(x), or the Taylor coefficients c0, c1, ….
- Notes and warnings: read these. They tell you when factoring is only over the rationals or a value is numeric.
Tips and common mistakes
2 - 4sin(x)^2and2cos(2x)are the same function. The tool doesn't rewrite trig identities, so don't assume your textbook answer is wrong just because it looks different.- Write
e^xorexp(x)for the exponential.logis ln; uselog10orlog2when you mean another base. factorworks over the rationals. An irreducible quadratic like x² − 2 stays as it is even though it factors over the reals.- For a limit at a point where the function jumps, compare it with a one-sided numeric check. The tool marks numeric limits as such.
plotaccepts several functions separated by commas, such asplot sin(x), x - x^3/6 from -4 to 4, which is a quick way to see how well a Taylor polynomial fits.
FAQ
Can it show me the steps of an integral?
Yes. You see the methods used (table form, substitution, parts, partial fractions) and a check that differentiating the antiderivative gives back the integrand.
Why does my answer look different from the book?
Antiderivatives can differ by a constant, and trig expressions have many equivalent forms. Compare decimal values with evaluate … at x = 1 for both versions.
Does it handle several variables?
Commands work on one variable at a time and treat other letters as constants: solve x + y = 2 gives x = 2 − y. For systems of equations, use the Equation Solver with Steps or the Matrix & Linear Algebra Lab.
Is a numeric result wrong?
No, it's an approximation. It's labelled so you never mistake it for an exact value.
Guide last updated:
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"}'