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
| 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 |