Function Graph Online

Enter a function y = f(x) and the graph appears at once. You can add up to six functions, zoom with the wheel or a pinch, find zeros, extrema and intersections, and build a table of values and a tangent at a point.

Enter data

Education

Functions

Quick examples

Graph window

Drag the graph with the mouse or a finger; the wheel or a pinch changes the scale, a double click zooms in. Zeros, extrema and intersections are marked with dots.

Settings

Decimal places
Angles
Grid
Key points

Graph

CalcCore

Move the cursor over the graph to see the values.

What the function grapher does

The calculator plots the graph of a function y = f(x) and lets you explore it: zoom, find zeros, extrema and intersection points, build a table of values, and find the derivative and the tangent line at a point. Up to six functions can be shown on one canvas, each has its own colour, and the dot next to a function switches it on or off.

How to enter functions

Write the expression as on paper: x^2 − 4x + 3, 2x + 1 (the multiplication sign can be omitted), 1/x, sqrt(x) or √x, abs(x) or |x|. The power is «^», for example x^3 or 2^x. Supported are sin, cos, tan (tg), cot, asin, acos, atan, sinh, cosh, tanh, ln, lg (log), log2, exp, sqrt, cbrt, abs, sign, floor, ceil, and the numbers π (pi) and e. Enter a vertical line as x = 3. In the settings you can choose degrees instead of radians.

Zeros, extrema and intersections

Zeros are the points where f(x) = 0, that is, the crossings with the x-axis. Extrema are local maxima and minima, where the derivative changes sign. For x² − 4x + 3 the zeros are 1 and 3, and the vertex (2; −1) is a minimum. The intersection points of two graphs solve f₁(x) = f₂(x): for x² − 4x + 3 and x − 1 they are x = 1 and x = 4. The calculator finds them numerically and suggests the exact form: a fraction, a multiple of π or √n.

Table of values

In the «Table of values» tab enter x from, to and a step, and all visible functions appear in columns. For polynomials and fractions with rational x the values are exact (for example 1/3), for other functions they use the chosen number of decimals. The table can be copied.

The derivative and the tangent

The derivative is found symbolically by the differentiation rules: (x³ − 3x)' = 3x² − 3. The tangent to the graph at x₀ is y = f(x₀) + f'(x₀)(x − x₀). For f(x) = x³ − 3x and x₀ = 2 we get f(2) = 2, f'(2) = 9, so the tangent is y = 9x − 16. The normal is the line perpendicular to the tangent at the same point, with slope −1/f'(x₀).

Typical graphs

A linear function y = kx + b is a line, k is the slope. A quadratic y = ax² + bx + c is a parabola with the vertex at x = −b/(2a). The hyperbola y = 1/x has asymptotes x = 0 and y = 0. The root y = √x is defined for x ≥ 0, the logarithm y = ln x for x > 0. Sine and cosine are periodic with period 2π, the tangent has vertical asymptotes at π/2 + πn. The exponential y = eˣ increases and never crosses the x-axis.

All calculations run in your browser. The expression is parsed by our own parser, and nothing is sent to a server.

FAQ

How do I plot a function online?

Enter the expression in the f₁(x) field, for example x^2 − 4x + 3, and the graph appears at once. To add another function, press «Add a function».

How do I find the zeros of a function?

Open the «Function analysis» tab or keep «Key points» on: zeros are shown as green dots. For x² − 4x + 3 they are 1 and 3.

How do I find the intersection of two graphs?

Enter both functions: the intersection points are marked in purple and listed under the graph. For x² − 4x + 3 and x − 1 they are x = 1 and x = 4.

How do I find an extremum?

An extremum is a point where the derivative changes sign. The calculator finds minima and maxima and shows them on the graph and in the «Function analysis» tab.

How do I find the tangent to a graph?

In the «Tangent» tab choose a function and a point x₀. The equation is y = f(x₀) + f'(x₀)(x − x₀). For x³ − 3x at x₀ = 2 it is y = 9x − 16.

How do I write a function with a root, absolute value or power?

sqrt(x) or √x, abs(x) or |x|, x^3, 2^x. The multiplication sign can be omitted: 2x, 3(x + 1).

Can I use degrees?

Yes: choose «Degrees» in the settings and sin(30) will equal 0.5. By default angles are in radians.

How do I change the scale?

With the mouse wheel, a two-finger pinch, a double click or the «+» and «−» buttons. You can also type the x and y limits.

How do I draw a vertical line?

Enter x = 3 (a number, not an expression with x): a vertical line at that point is drawn.

Why is the function missing at some points?

It is undefined there: for example 1/x at x = 0, ln x at x ≤ 0, √x at x < 0. The graph has a break there.

How do I save the graph?

The «Save PNG» button downloads the picture. The «Share link» button copies a link that restores the functions and the view.

Is my data sent anywhere?

No. All calculations run in your browser.