Graphing Calculator Online

Visualize mathematical functions and plot data points instantly. This interactive tool is perfect for algebra, geometry, and calculus students.

Calculator Inputs

f(x) =

Examples:

Controls:

You can also click and drag the graph to pan.

Results

How to Use This Calculator

  1. Enter a Function: In the input box next to `f(x) =`, type a mathematical function using `x` as the variable. You can use standard JavaScript syntax.
  2. Plot Your Function: Click the "Plot Function" button to render your equation on the graph. You can also click one of the example buttons to see how different functions look.
  3. Zoom: Use the `+` and `-` buttons to zoom in and out, allowing you to see the function's behavior at different scales.
  4. Pan: Click and drag anywhere on the graph to move the viewing window around.
  5. Reset: If you get lost, click the reset button (circular arrow) to return the view to the default zoom and position.

Frequently Asked Questions

What syntax and functions are supported?

You can use standard JavaScript mathematical syntax. This includes operators like +, -, *, /, and ** (for exponents). You also have access to the Math object, allowing for functions like Math.sin(x), Math.cos(x), Math.tan(x), Math.log(x), Math.sqrt(x), and Math.pow(x, 2).

How do I enter powers or exponents?

You can use the exponentiation operator `**`. For example, to plot x-squared, you would enter `x**2`. For x-cubed, `x**3`. Alternatively, you can use the `Math.pow()` function, like `Math.pow(x, 2)`.

Why am I seeing an 'Invalid function' error?

This error usually means there's a syntax mistake in your equation. Check for things like mismatched parentheses, invalid characters, or incorrect function names (e.g., use 'Math.sin(x)' not 'sin(x)').

Can I zoom or pan the graph?

Yes! Use the '+' and '-' buttons to zoom in and out. To pan the view, simply click and drag the graph with your mouse.