Methodology: How the Calculators Work
This page explains, in plain language, how the calculators turn what you type into a graph and a result — and where the results are approximations.
Last updated:
1. Reading what you type
Expressions are read by the site’s own parser. It recognises numbers, the variables x, y, t, θ and single-letter parameters, the constants π and e, and an allow-list of functions:
sin, cos, tan, sec, csc, cot, asin, acos, atan, arcsin, arccos, arctan, sinh, cosh, tanh, sqrt, cbrt, abs, exp, ln, log, log10, log2, floor, ceil, round, sign, min, max
- Implicit multiplication is supported:
2x,3sin(x),(x+1)(x−2). log(x)means base 10,ln(x)is the natural log andlog(x, b)uses base b.cbrt(x)and odd roots such asx^(1/3)return real values for negative x.- Typed input is never executed as code. Inputs are limited in length and complexity so the page stays responsive.
2. Drawing a graph
A function is evaluated at hundreds of evenly spaced points across the visible window (more on wider screens). Neighbouring points are joined with line segments. If the values jump by a large amount, change sign through a pole, or become undefined between two samples, the curve is broken there instead of drawing a false vertical line. That is how vertical asymptotes and gaps in the domain appear correctly.
3. Roots, intersections and turning points
- Roots are found by scanning for sign changes and refining each with bisection; roots where the graph only touches the axis are found by looking for local minima of |f(x)| near zero.
- Intersections are the roots of f(x) − g(x).
- Turning points are found by bracketing a change in direction and refining with golden-section search.
All three are numerical approximations inside the visible window. Results are shown to a sensible number of decimals; where an exact value is easy to recognise (a simple fraction or a square root) it is shown as well. Results outside the window are not searched — zoom out to look further.
4. Exact algebra in the focused tools
- The vertex form calculator completes the square exactly from the coefficients you enter, including fractions and surds.
- The asymptote calculator treats the numerator and denominator as polynomials (up to degree 4), finds common factors for holes, uses polynomial division for slant asymptotes, and compares degrees for horizontal asymptotes.
- The slope-intercept calculator keeps slopes as fractions where possible.
5. Inequalities and regions
For each inequality the boundary is drawn first (dashed for < and >, solid for ≤ and ≥). Shading is built in thin vertical strips: for each strip the calculator works out which y-values satisfy the inequality and fills that interval. For a system, the overlap is the intersection of those intervals, so it is accurate to the width of a strip.
6. Polar, parametric and 3D
Polar curves r = f(θ) and parametric curves (x(t), y(t)) are sampled over the chosen interval and drawn on axes with equal scales so circles look like circles. 3D surfaces are sampled on an n × n grid, projected, and painted from back to front; the 2D cross-section is sampled much more finely for exact readings.
7. Testing
The parser, root finder, intersection finder and rational-function analysis are covered by automated tests, and every figure in the guides is produced from the same engine at build time, so a guide cannot show a graph the calculator would not draw.
8. Your data
Calculations happen on your device. Graph state is stored in the page address only when you share a link, and in your browser’s local storage only when you press Save. See the privacy policy.