Graphing Calculator
Plot functions in real time. Type your equations, set the window, and click Plot. You can add up to 3 functions to compare shapes, intersections, and behavior.
Functions f(x)
Syntax: use * for multiply (2*x), pi, e, abs(), sqrt(), log(x,10), etc.
Window (view)
Graph
If a function is undefined for part of the range (e.g. sqrt of negative), that segment is skipped.
How the graphing calculator works
To plot a function, we:
- Take your x-range (for example −10 to 10).
- Sample N points (default 300) evenly spaced across that range.
- Evaluate each function at those x values using a math parser.
- Feed the resulting x–y pairs into a charting engine to draw the curves.
If a function returns NaN or Infinity for some x, we drop that point, producing gaps for asymptotes.
Common functions to try
Linear: 2*x + 3
Quadratic: x^2 - 4*x + 2
Trigonometric: sin(x), cos(x), sin(x)/x
Exponential / log: exp(0.3*x), log(x,10)
Absolute value: abs(x)
Piecewise (basic): use if(x < 0, -x, x) kind of structures (math.js style).
FAQs
Can I plot parametric or polar?
This version focuses on Cartesian y = f(x). For parametric/polar you’d need a specialized plotter, but you can often rewrite simple cases as y = f(x).
Why is my graph cut off?
Your y-values may be outside the current view. Increase Y min/Y max and plot again.
Does it work on mobile?
Yes, it’s responsive and lightweight, unlike some desktop graphers.