Learning lab / Functions

Type a function. See its shape.

A safe grapher that reads your expression directly, no code execution. Plot curves, compare two functions, or orbit a 3D surface with the keyboard.

Expression

Curve y = f(x)

Presets

Supports + - * / ^, parentheses, |x|, implicit multiplication (2x, 3(x+1)), pi, e and sin cos tan asin acos atan sinh cosh tanh sqrt abs exp ln log floor ceil round sign. Trig uses radians. -x^2 means -(x^2).

Live graph
Graph of y = x^2 - 2x - 3Plotted for x from -5 to 5. 0 of 600 samples undefined.-4-20240102030f = -4xy
  • A: y = x^2 - 2x - 3

Drag on the graph to move the probe. Gaps mark undefined values (for example sqrt of a negative or division by zero) and vertical asymptotes; the curve is never joined across them.

f(1)
-4
Undefined samples
0
Reading the graph

What to look for

Roots are where the curve crosses y = 0. Gaps appear where the function is undefined, such as sqrt(x) for x < 0 or 1/x at 0.

Precedence: powers bind before a leading minus, so -x^2 is always negative. Write (-x)^2 to square first.

In 3D, each cell of the surface is colored by height. x^2 + y^2 is a bowl; x^2 - y^2 is a saddle.

Worked example

Factor x^2 - 2x - 3

x^2 - 2x - 3 = (x - 3)(x + 1), so the roots are x = 3 and x = -1.

The vertex is at x = -b / 2a = 1, giving f(1) = -4. Set Probe x to 1 to confirm.

Add 2x - 3 as function B: the curves meet where x^2 - 4x = 0, at x = 0 and x = 4.