en
f(x)

Function Plotter

Type a function and see its graph straight away – with roots, maxima, minima and a table of values. Add a second function to find where the two intersect.

For example 2x^2 - 3, sin(x), sqrt(x), e^x or 1/x. You can leave out the multiplication sign: 3x, 2(x+1).

Result

Roots (zeros)–
y-intercept–
Maxima–
Minima–
Intersections of f and g–

How it is calculated

The plotter evaluates the function at 481 points across the chosen range and joins them into a graph. Where the function is undefined (e.g. √x for x < 0) or has a pole (e.g. 1/x at 0), the graph is broken.

Roots are found where the sign changes or the graph touches the x-axis, then refined to many decimal places. Maxima and minima are the points where the graph turns. Intersections are the roots of f(x) − g(x).

You can use + − * / ^, brackets, the constants pi and e, and sin, cos, tan, asin, acos, atan, sinh, cosh, tanh, sqrt, abs, ln, log (base 10), exp, floor, ceil, round and sign. Angles are in radians.

Example

The function f(x) = x^3 - 3x has the roots -1.7321, 0, 1.7321, a maximum at (-1, 2) and a minimum at (1, -2). It intersects g(x) = x at (-2, -2), (0, 0), (2, 2).

Frequently asked questions

How do I enter powers and roots?

Use ^ for powers, e.g. x^2 or 2^x. Square roots are sqrt(x); other roots work as powers: the cube root is x^(1/3).

Does sin(x) use degrees or radians?

Radians, as is usual in mathematics: sin(pi/2) = 1. For degrees, write sin(x*pi/180).

Why is a root missing?

Only roots within the chosen x range are shown. Widen the range if you expect more.

Can I move the view?

Yes, with “x from” and “x to”. The y-axis adjusts automatically; near poles, extreme values are cut off so the rest of the graph stays readable.

Embed this calculator on your website

You may embed this calculator on your website, blog or forum for free. Just copy this code: