Function Graph Plotter

Type a function of x and see it drawn. Standard shapes such as x², x³, 1/x and y = 2x are one click away, and the axis ranges are yours to set.

The shapes worth knowing by sight

FunctionShapeWhat to notice
y = xStraight line through the originGradient 1, odd symmetry
y = 2xStraight line, steeperGradient 2, still through the origin
y = x²Parabola opening upwardMinimum at the origin, symmetric about the y axis
y = x³Rising S-curvePoint of inflection at the origin, odd symmetry
y = 1/xRectangular hyperbola, two branchesAsymptotes along both axes; undefined at x = 0
y = 1/x²Both branches above the axisAlways positive, asymptotic to both axes
y = x + 1/xTwo branches with a gapMinimum 2 at x = 1, maximum −2 at x = −1

Reading a graph

Three things carry most of the marks. Intercepts: set x = 0 for the y intercept, solve f(x) = 0 for the x intercepts. Asymptotes: a vertical asymptote sits wherever the denominator vanishes, and a horizontal one is the value the curve approaches as x runs off to ±∞. Symmetry: if f(−x) = f(x) the curve is symmetric about the y axis (even, like x²); if f(−x) = −f(x) it has rotational symmetry about the origin (odd, like x³ and 1/x).

Why 1/x is drawn as two pieces

At x = 0 the function is undefined, and either side of it the values run to opposite infinities. Joining the two branches with a line through the origin, which many plotters do by accident, draws something that is not the graph at all. The plotter above breaks the curve whenever consecutive samples jump further than the visible height, so asymptotes appear as gaps rather than as near-vertical strokes.

Worked example

Sketch y = x + 1/x

  1. Domain: all x except 0, so expect a vertical asymptote at x = 0
  2. f(−x) = −x − 1/x = −f(x), so the curve is odd
  3. dy/dx = 1 − 1/x², zero when x² = 1, so x = ±1
  4. At x = 1, y = 2 — a local minimum; at x = −1, y = −2 — a local maximum
  5. For large |x| the 1/x term vanishes, so the curve hugs the line y = x
  6. No x intercept: x + 1/x = 0 needs x² = −1, impossible for real x

The odd result that the local minimum (2) sits above the local maximum (−2) is correct here, and is a standard trap — the two turning points are on different branches, so they never have to be ordered.

Frequently asked questions

How do I plot the graph of x squared?

Type x^2 into the function box. It draws a parabola with its minimum at the origin, symmetric about the y axis, rising equally on both sides.

What does the graph of 1 by x look like?

It is a rectangular hyperbola with two separate branches, one in the first quadrant and one in the third. Both axes are asymptotes and the function is undefined at x equals zero.

What is the graph of x plus 1 by x?

Two branches with a vertical asymptote at x equals zero. It has a local minimum of 2 at x equals 1 and a local maximum of minus 2 at x equals minus 1, and it approaches the line y equals x for large values of x.

How is the graph of x cubed different from x squared?

x squared is a parabola that stays above the axis and is symmetric about the y axis. x cubed is an S-shaped curve that takes negative values for negative x and has rotational symmetry about the origin.

Which functions can this plotter handle?

Polynomials, roots, reciprocals, exponentials, logarithms and all the trigonometric and inverse trigonometric functions. Use the caret for powers, sqrt for square root, ln for natural log and log for base ten.

Related calculators

Inverse TrigonometryCubic Equation SolverHCF & LCMDegree to Radian