Function Grapher — Plot y = f(x)
Plot y = f(x) for any expression over a custom range — powers, trig, logs, roots. Client-side.
How to use
- 1 Type a function of x, e.g. x^2 - 4, sin(x), or 2*x + 1.
- 2 Set the x range to zoom in or out.
- 3 The graph redraws as you type.
Why use this tool
- Plot any single-variable function instantly.
- Supports powers, trig, logs, roots, π and e.
- Runs entirely in your browser.
Frequently asked questions
What functions can I plot?
Any expression in x using + − × ÷, ^ (powers), parentheses, and functions like sin, cos, tan, ln, log, sqrt, abs, exp, plus the constants π (pi) and e.
Do I need to write the multiplication sign?
Usually no — 2x and 3(x+1) are understood. When in doubt, write * explicitly (2*x).
How is the curve drawn?
The function is sampled at 500 points across the x range and connected; gaps appear where the function is undefined (e.g. dividing by zero).
Can I plot trigonometric functions?
Yes — sin(x), cos(x), tan(x) and their inverses. Angles are in radians.
What is Function Grapher?
A function grapher plots the graph of a single-variable function y = f(x) over a chosen x range, supporting polynomials, trigonometric, logarithmic and exponential expressions.
Features
Live plotting
Graphs functions of x on a canvas as you type the expression.
Pan & zoom
Explore the curve across different domains and scales.
Free & private
Runs on your device — nothing is uploaded.
Example
Input
y = x^2
Output
Parabola through (−2,4), (0,0), (1,1), (2,4)
Common use cases
-
1
Visualize functions
See the shape of a polynomial, trig, or exponential function.
-
2
Compare curves
Plot several functions together to compare behaviour.
-
3
Teach & study
Illustrate roots, turning points, and asymptotes graphically.
Zerethon's function grapher plots one or more mathematical functions of x on an interactive canvas in your browser, with pan and zoom. Enter expressions like x^2 or sin(x) and see the curves rendered live. Everything runs client-side — nothing is uploaded.
- Category
- Math
- Pricing
- Free
- Privacy
- Browser-based
- Signup
- Not required
References
- Graph of a function — Wikipedia
- Canvas API — MDN
Privacy
Your data never leaves your browser unless explicitly stated. Function Grapher runs entirely client-side — no server upload, no logging, no tracking of your input.
Related tools
Percentage Calculator
Three-in-one percentage calculator: X% of Y, X as a % of Y, and % increase/decrease. Instant, client-side.
Open toolScientific Calculator
Online scientific calculator — trig, log, powers, roots, factorial, π/e, DEG/RAD, with a proper expression parser. Client-side.
Open toolFraction Calculator
Add, subtract, multiply and divide fractions with automatic simplification, decimal and mixed-number output. Client-side.
Open toolCombinations & Permutations Calculator
Exact nCr, nPr and n! with big-integer precision. Client-side, no signup.
Open toolBuild, share, and grow on Zerethon Social
Free signup. Earn points, collect achievements, and connect with creators worldwide.