Function Grapher
Plot up to 4 mathematical functions simultaneously. Supports zoom, pan, grid, trace mode and PNG export.
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
| Function | Description | Example |
|---|---|---|
sin(x) | Sine | sin(PI/2) = 1 |
cos(x) | Cosine | cos(0) = 1 |
tan(x) | Tangent | tan(PI/4) = 1 |
asin(x) | Arc sine | asin(1) = PI/2 |
acos(x) | Arc cosine | acos(1) = 0 |
atan(x) | Arc tangent | atan(1) = PI/4 |
sqrt(x) | Square root | sqrt(9) = 3 |
cbrt(x) | Cube root | cbrt(27) = 3 |
abs(x) | Absolute value | abs(-5) = 5 |
log(x) | Natural log | log(E) = 1 |
log2(x) | Log base 2 | log2(8) = 3 |
log10(x) | Log base 10 | log10(100) = 2 |
exp(x) | e to the power x | exp(1) = E |
pow(x, n) | x raised to n | pow(2,3) = 8 |
ceil(x) | Ceiling | ceil(1.2) = 2 |
floor(x) | Floor | floor(1.9) = 1 |
round(x) | Round | round(1.5) = 2 |
sign(x) | Sign | sign(-3) = -1 |
min(a, b) | Minimum | min(3, 5) = 3 |
max(a, b) | Maximum | max(3, 5) = 5 |
sinh(x) | Hyperbolic sine | sinh(0) = 0 |
cosh(x) | Hyperbolic cosine | cosh(0) = 1 |
tanh(x) | Hyperbolic tangent | tanh(0) = 0 |
hypot(a, b) | Hypotenuse | hypot(3,4) = 5 |
PI | π constant | PI ≈ 3.14159 |
E | Euler number | E ≈ 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
- 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.
- Add more functions
Click Add Function to plot additional curves. Up to 4 functions can be displayed simultaneously in different colors.
- 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.
- Export as PNG
Download the current view as a high-resolution PNG image for use in documents, slides, or assignments.
Key Benefits
Compare multiple curves side by side on the same axes, each rendered in a distinct color for clarity.
Explore any region of the graph in detail with smooth zooming and panning controls.
Save your graph as an image for use in homework submissions, reports, and presentations.
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.