Skip to content
Toolcroft

Math Calculators

Function Grapher - Interactive f(x) Graph Plotter

Plot any mathematical function f(x) interactively in your browser. Supports trig, logarithms, exponents, and more. Pan and zoom with mouse or touch.

sin(x)
Presets:

Supported syntax

Enter a mathematical expression in x. The following functions and constants are supported:

SyntaxMeaning
sin(x), cos(x), tan(x)Trigonometric functions (radians)
asin(x), acos(x), atan(x)Inverse trigonometric functions
exp(x)Euler’s number raised to the power x: eˣ
log(x) or ln(x)Natural logarithm (base e)
log10(x)Common logarithm (base 10)
sqrt(x)Square root
abs(x)Absolute value
floor(x), ceil(x)Round down / round up
x^2 or x**2Exponentiation
PIπ ≈ 3.14159…
Ee ≈ 2.71828…

Example functions to try

  • sin(x)/x - the sinc function; central to signal processing and optics
  • x^2 - 2 - a simple parabola crossing the x-axis at ±√2
  • abs(sin(x)) - absolute-value sine: all arches above the axis
  • floor(x) - the staircase function
  • exp(-x^2) - the Gaussian (bell curve) shape
  • sin(1/x) - infinitely oscillating near x = 0

Graph navigation

  • Scroll or pinch to zoom in or out.
  • Click and drag to pan the view.
  • Double-click to reset to the default view.

Common function families

FamilyExampleKey feature
Linear2x + 1Constant slope; straight line
Quadraticx^2 − 3x + 2Parabola; symmetric about vertex
Trigonometricsin(x)Periodic; amplitude 1, period 2π
Exponentialexp(x)Grows without bound; never negative
Logarithmiclog(x)Inverse of exponential; defined only for x > 0
Rational1/xAsymptotes; undefined at x = 0

Discontinuities and asymptotes

  • Vertical asymptotes: occur where the function is undefined, such as 1/x at x = 0. The function approaches ±∞ as x approaches the asymptote.
  • Horizontal asymptotes: describe the function's behavior as x -> ±∞. For 1/x, y -> 0 as x -> ±∞, giving a horizontal asymptote at y = 0.
  • Jump discontinuities: the floor function floor(x) is defined everywhere but jumps at each integer, creating a staircase pattern with one-sided limits that differ.
  • Removable discontinuities: sin(x)/x has a hole at x = 0 (undefined there) but the limit as x -> 0 is 1, so it could be continuously extended.