📐

Graph Plotter

Plot mathematical functions on an interactive canvas. Add multiple functions with different colors, zoom in/out, and explore math visually.

Functions
Zoomed outZoomed in
Graph
💡 Syntax

Supported Functions

  • Use JavaScript Math syntax: Math.sin(x), Math.cos(x), Math.tan(x), Math.log(x), Math.sqrt(x), Math.abs(x), Math.PI, Math.E, x**2 (power), Math.exp(x).
  • Use x as the variable.
🎯 Tips

Getting the best plots

  • Use zoom slider to fit the graph well
  • Add multiple functions to compare them
  • Wrap negative inputs with Math.abs() for sqrt
  • tan(x) has vertical asymptotes at π/2, 3π/2, etc.

Frequently Asked Questions

How do I plot x squared?
Type x**2 in the function input. For x cubed: x**3. For square root: Math.sqrt(x). For exponential: Math.exp(x).
Can I plot multiple functions?
Yes! Click "+ Add Function" to add more. Each gets a different color. You can have up to 6 functions plotted simultaneously.