Function Graph Plotter f(x)
Type an expression such as sin(x) or x^2-2 and instantly plot its graph over a chosen x range. Maximum, minimum, zeros, and sample point values are shown alongside.
Input
Example expressions (tap to fill in)
Operators: + - * / ^ (power). Functions: sin cos tan asin acos atan sinh cosh tanh exp log (natural log) ln log10 sqrt cbrt abs. Constants: pi (π), e. The only variable is x.
Result
f(x) = sin(x)
-1 ≦ f(x) ≦ 1
Maximum
1
x = 1.57
Minimum
-1
x = -1.57
Zeros (x-axis crossings)
3
-3.142, 0, 3.142
Sample point values
| x | f(x) |
|---|---|
| -6.28 | 0.0032 |
| -5.024 | 0.9518 |
| -3.768 | 0.5862 |
| -2.512 | -0.5888 |
| -1.256 | -0.9509 |
| 0 | 0 |
| 1.256 | 0.9509 |
| 2.512 | 0.5888 |
| 3.768 | -0.5862 |
| 5.024 | -0.9518 |
| 6.28 | -0.0032 |
How it works
- Enter a function f(x) together with the minimum and maximum x, and the tool draws the graph over that interval automatically. A larger number of points yields a smoother curve (200 points when left blank).
- Usable operators are + - * /, the power operator ^ (or **), parentheses, and unary minus. Implicit multiplication such as 2x or 2sin(x) is also supported.
- Supported functions: sin, cos, tan, asin, acos, atan, sinh, cosh, tanh, exp, log (natural log), ln, log10, sqrt, cbrt, abs. The constants pi (π) and e are available, and the only variable is x. Trigonometric angles are treated in radians.
- Below the graph, the tool shows the maximum and minimum within the input range (each with the x value where it occurs) and the approximate positions of the zeros where the curve crosses the x-axis.
- The sample point table lists x and f(x) values at equally spaced points across the range. Points outside the domain (such as the square root of a negative number, or 1/x at x=0) are shown as "Out of domain".
- Your expression and the results are never sent anywhere; everything is processed inside your browser, so you can use it with peace of mind.
Related calculators
Graph Two Functions f(x) and g(x)
NumericalPlot two expressions f(x) and g(x) on the same axes in distinct colors, and automatically find their max, min, and intersection points.
Open calculator →Data Point f(x) Graph Plotter
NumericalJust paste your (x, y) data points to instantly draw a line-and-point chart. See the point count plus the minimum, maximum, and average of y at the same time.
Open calculator →Plot Data Points f(x), g(x)
NumericalPaste two sets of (x, y) data points and get f(x) and g(x) drawn as color-coded overlaid line graphs, with each series' point count and min/max.
Open calculator →Bisection Method Equation Solver
NumericalSolve f(x)=0 with the bisection method. Enter a function and an interval to get the approximate root, f(root), the iteration count, and the error, plus a per-step table of intervals and midpoints and a function graph.
Open calculator →