How to plot a function
Type the right-hand side of your function, such as x^2 − 3 or sin(2x), and the graph appears as you type. Add more functions with + Add function to compare them on the same axes; click a colored dot to hide or show a curve.
- Zoom: scroll the mouse wheel or pinch on a touch screen. The zoom centers on the pointer, so aim at the part you want to enlarge. Hold Shift while scrolling to stretch only the x-axis, or Alt/Option for only the y-axis. Double-click zooms in.
- Pan: drag the graph.
- Trace: hover (or tap on a phone) to read the exact value of every curve at that x.
- Exact range: type the x and y limits under View. Limits can be expressions like 2pi.
- Reset: the house button returns to the automatic view.
3D surface plots
Switch to 3D to graph a surface z = f(x, y), where the height depends on both x and y. Drag to rotate the surface, scroll or pinch to zoom, and Shift-drag to move across the x–y plane. Colors show height, from low to high, and you can change the color scheme, turn mesh lines on or off, or let the surface rotate on its own. Parts of the surface outside the z range are cut off, so lower or raise the z limits to see more.
Writing functions
Write functions the way you would on paper. Multiplication signs are optional: 2x, 3sin(x), x(x+1) and (x+1)(x−1) all multiply. Parentheses after a function can be skipped for simple arguments, so sin 2x means sin(2x). You can also type a leading y = or f(x) =; it's ignored.
| Type | Meaning | Example |
|---|---|---|
| + − * / ^ | Arithmetic and powers | x^3 − 2x |
| sqrt, cbrt, root(x, n) | Square, cube and nth roots | sqrt(9 − x^2) |
| sin, cos, tan, sec, csc, cot | Trig functions (radians) | sin^2(x) |
| asin, acos, atan | Inverse trig | atan(x) |
| sinh, cosh, tanh | Hyperbolic functions | cosh(x) |
| ln, log, log2, logb(x, b) | Natural, base-10, base-2 and any-base logs | logb(x, 3) |
| exp or e^ | Exponential | e^(−x^2) |
| abs or |x| | Absolute value | |x − 1| |
| floor, ceil, round, sign | Rounding and sign | floor(x) |
| min, max, mod | Two-value functions | max(sin x, cos x) |
| x!, gamma | Factorial (extended to all reals) | x! |
| pi, e | Constants π and e | sin(pi x) |
How the automatic scale works
A fixed window like −10 to 10 hides a lot: sin(50x) becomes a solid block, and (x − 300)² disappears off screen. Instead, the plotter searches each function at several scales for its roots, turning points, domain edges and jumps, then frames what it finds. Repeating functions show a couple of full cycles. The vertical range fits the curve but ignores the spikes near vertical asymptotes, so tan(x) and 1/x stay readable. If a function is only defined on part of the line, like √x or ln(x), the view focuses on that part. The automatic view keeps following your functions as you edit them until you zoom or pan; press reset to turn it back on.
Frequently asked questions
How is the starting scale chosen?
The plotter scans your function for roots, peaks and valleys, gaps in its domain and jumps, then frames them. Repeating functions such as sin(x) show a couple of full cycles, and the vertical range ignores the spikes near asymptotes so the shape stays readable. Zoom or pan any time; the reset button returns to this automatic view.
Are trig functions in degrees or radians?
Radians, as in calculus and most graphing tools. sin(x) completes one cycle every 2π (about 6.28), and when trig functions are plotted the x-axis is labeled in multiples of π. To use degrees, convert inside the function: sin(x·π/180).
Why does my graph have gaps?
Gaps appear where the function isn't defined as a real number, such as √x for negative x or ln(x) for x ≤ 0, and at vertical asymptotes like tan(x) at π/2, where the curve jumps from very large to very negative values. The plotter breaks the line there instead of drawing a false vertical connection.
Can I plot a circle or other equation in x and y?
Equations like x² + y² = 1 aren't supported directly yet. Solve for y and plot the two halves as separate functions: √(1 − x²) and −√(1 − x²). Then press the 1:1 button so the circle isn't stretched.
How do I save or share a graph?
Use Download PNG to save an image of the current view, or Copy link to get a web address that reopens the same functions and zoom level. Your functions are also remembered in this browser for next time.