Math Calculators
Function Grapher - Interactive f(x) Graph Plotter
Plot any mathematical function f(x) interactively in your browser. Supports trig, logarithms, exponents, and more. Pan and zoom with mouse or touch.
sin(x)
Presets:
Supported syntax
Enter a mathematical expression in x. The following functions and constants are supported:
| Syntax | Meaning |
|---|---|
sin(x), cos(x), tan(x) | Trigonometric functions (radians) |
asin(x), acos(x), atan(x) | Inverse trigonometric functions |
exp(x) | Euler’s number raised to the power x: eˣ |
log(x) or ln(x) | Natural logarithm (base e) |
log10(x) | Common logarithm (base 10) |
sqrt(x) | Square root |
abs(x) | Absolute value |
floor(x), ceil(x) | Round down / round up |
x^2 or x**2 | Exponentiation |
PI | π ≈ 3.14159… |
E | e ≈ 2.71828… |
Example functions to try
sin(x)/x- the sinc function; central to signal processing and opticsx^2 - 2- a simple parabola crossing the x-axis at ±√2abs(sin(x))- absolute-value sine: all arches above the axisfloor(x)- the staircase functionexp(-x^2)- the Gaussian (bell curve) shapesin(1/x)- infinitely oscillating near x = 0
Graph navigation
- Scroll or pinch to zoom in or out.
- Click and drag to pan the view.
- Double-click to reset to the default view.
Common function families
| Family | Example | Key feature |
|---|---|---|
| Linear | 2x + 1 | Constant slope; straight line |
| Quadratic | x^2 − 3x + 2 | Parabola; symmetric about vertex |
| Trigonometric | sin(x) | Periodic; amplitude 1, period 2π |
| Exponential | exp(x) | Grows without bound; never negative |
| Logarithmic | log(x) | Inverse of exponential; defined only for x > 0 |
| Rational | 1/x | Asymptotes; undefined at x = 0 |
Discontinuities and asymptotes
- Vertical asymptotes: occur where the function is undefined, such as 1/x at x = 0. The function approaches ±∞ as x approaches the asymptote.
- Horizontal asymptotes: describe the function's behavior as x -> ±∞. For 1/x, y -> 0 as x -> ±∞, giving a horizontal asymptote at y = 0.
- Jump discontinuities: the floor function floor(x) is defined everywhere but jumps at each integer, creating a staircase pattern with one-sided limits that differ.
- Removable discontinuities: sin(x)/x has a hole at x = 0 (undefined there) but the limit as x -> 0 is 1, so it could be continuously extended.