Graph Plotter

Visualize mathematical functions and equations

Quick answer

Graph Plotter

Input any JavaScript mathematical expression using x as the variable. The calculator will plot the function for the given range of x values.

Formula

y = f(x)

Example Functions:

  • x*x - Quadratic function
  • Math.sin(x) - Sine wave
  • Math.cos(x) - Cosine wave
  • Math.exp(x) - Exponential
  • Math.log(x) - Natural logarithm
  • 1/x - Reciprocal function

πŸ“ˆFormula

y = f(x)

πŸ’‘How it works

Input any JavaScript mathematical expression using x as the variable. The calculator will plot the function for the given range of x values.

ℹ️ What is Graphing Calculator?

A graphing calculator plots mathematical functions on a coordinate plane, visualizing equations like y = f(x) to understand behavior: where a function crosses the x-axis (roots), where it peaks or troughs (extrema), inflection points, asymptotes, and intervals of increase or decrease.

πŸ“ Formula

y = f(x) | Roots where f(x) = 0 | Extrema where f'(x) = 0
f(x)β€” The mathematical function to plot
Domainβ€” Range of x values to display on the graph
Rangeβ€” Y values corresponding to the domain
Interceptsβ€” x-intercept (y=0) and y-intercept (x=0)

✏️ Worked Example

Function: y = xΒ² βˆ’ 4x + 3
  1. 1y-intercept: set x=0 β†’ y = 0 βˆ’ 0 + 3 = 3. Point: (0, 3)
  2. 2x-intercepts: solve xΒ² βˆ’ 4x + 3 = 0 β†’ (xβˆ’1)(xβˆ’3) = 0 β†’ x = 1 or x = 3
  3. 3Vertex (minimum): x = βˆ’b/2a = 4/2 = 2 β†’ y = 4βˆ’8+3 = βˆ’1. Vertex: (2, βˆ’1)
  4. 4Opens upward (a = +1 > 0)
βœ… Result: Parabola opening up, vertex at (2,βˆ’1), crosses x-axis at x=1 and x=3

πŸ’‘ How to Interpret Results

  • β–ΈWhere the curve is above the x-axis, f(x) > 0; below means f(x) < 0.
  • β–ΈSteeper slope = faster rate of change at that point.
  • β–ΈLocal maxima/minima occur where the curve changes direction (derivative = 0).
  • β–ΈAsymptotes (vertical/horizontal) show where the function approaches infinity or a limit.
  • β–ΈIntersection of two curves shows solutions to f(x) = g(x).

❓ Frequently Asked Questions

Related tools for Math practice

Continue the calculation

πŸ“š Related Articles & Tips