Function Grapher

Plot up to 4 mathematical functions simultaneously. Supports zoom, pan, grid, trace mode and PNG export.

f₁(x) = sin(x)

How It Works

Supported Math

Enter any JavaScript-compatible math expression using x as the variable. All standard math functions are available: sin, cos, sqrt, log, exp, constants PI and E, and more.

Pan & Zoom

Click and drag on the canvas to pan the viewport. Use the scroll wheel to zoom in and out. Alternatively, manually set the X/Y range in the View Range panel or use the Zoom In / Out buttons.

Export

Click Download PNG to save the current graph as a high-quality PNG image. The download captures the exact canvas state including all plotted functions, grid and axis labels.

Function Reference

FunctionDescriptionExample
sin(x)Sinesin(PI/2) = 1
cos(x)Cosinecos(0) = 1
tan(x)Tangenttan(PI/4) = 1
asin(x)Arc sineasin(1) = PI/2
acos(x)Arc cosineacos(1) = 0
atan(x)Arc tangentatan(1) = PI/4
sqrt(x)Square rootsqrt(9) = 3
cbrt(x)Cube rootcbrt(27) = 3
abs(x)Absolute valueabs(-5) = 5
log(x)Natural loglog(E) = 1
log2(x)Log base 2log2(8) = 3
log10(x)Log base 10log10(100) = 2
exp(x)e to the power xexp(1) = E
pow(x, n)x raised to npow(2,3) = 8
ceil(x)Ceilingceil(1.2) = 2
floor(x)Floorfloor(1.9) = 1
round(x)Roundround(1.5) = 2
sign(x)Signsign(-3) = -1
min(a, b)Minimummin(3, 5) = 3
max(a, b)Maximummax(3, 5) = 5
sinh(x)Hyperbolic sinesinh(0) = 0
cosh(x)Hyperbolic cosinecosh(0) = 1
tanh(x)Hyperbolic tangenttanh(0) = 0
hypot(a, b)Hypotenusehypot(3,4) = 5
PIπ constantPI ≈ 3.14159
EEuler numberE ≈ 2.71828

What is Function Grapher?

The Function Grapher is an interactive mathematical visualization tool that lets you plot up to four mathematical functions simultaneously on a coordinate plane. Whether you are studying algebra, calculus, trigonometry, or any other branch of mathematics that deals with functions, seeing an equation rendered as a curve makes abstract relationships tangible and easier to understand.

You can enter functions using standard mathematical notation — including trigonometric functions like sin, cos, and tan; exponential and logarithmic functions; polynomial expressions; and more. Each function is rendered in a distinct color, making it easy to compare curves at a glance. The graph supports zooming and panning so you can inspect specific regions closely or zoom out for a global view.

Once you are satisfied with the graph, you can export it as a PNG image for use in reports, assignments, or presentations. This makes the tool equally useful for students submitting homework, teachers creating instructional materials, and professionals preparing technical documentation. The grapher runs entirely in your browser with no plugins required.

How to Use Function Grapher

  1. Enter a function

    Type a mathematical expression in terms of x, such as 'x^2', 'sin(x)', or '2*x + 3', into the function input.

  2. Add more functions

    Click Add Function to plot additional curves. Up to 4 functions can be displayed simultaneously in different colors.

  3. Zoom and pan

    Use scroll to zoom in or out and drag to pan across the coordinate plane to inspect any region of the graph.

  4. Export as PNG

    Download the current view as a high-resolution PNG image for use in documents, slides, or assignments.

Key Benefits

Plot up to 4 functions

Compare multiple curves side by side on the same axes, each rendered in a distinct color for clarity.

Zoom and pan

Explore any region of the graph in detail with smooth zooming and panning controls.

PNG export

Save your graph as an image for use in homework submissions, reports, and presentations.

Instant rendering

Curves update immediately as you type, so you can iterate on expressions quickly without waiting.

Frequently Asked Questions

Standard mathematical notation is supported: use '^' for exponents, '*' for multiplication, and names like 'sin', 'cos', 'tan', 'log', 'sqrt', 'abs', 'exp' for common functions.

Yes. You can set the minimum and maximum values for both the x and y axes manually, or use zoom and pan to navigate to the range you need.

Errors occur when the expression uses unsupported syntax or contains a typo. Ensure you use explicit multiplication ('2*x' not '2x') and supported function names.

The grapher plots explicit functions of the form y = f(x). Implicit functions like x^2 + y^2 = 1 are not directly supported, but you can split them into two explicit functions.

Related Tools