Graphing Calculator

Plot any function y = f(x), find its roots, y-intercept, minimum and maximum, and evaluate it at any x.

Enter details

f(3)

5

Roots (y = 0) in range
-2, 2
y-intercept f(0)
-4
Minimum in range
-4 at x = 0
Maximum in range
96 at x = -10

Graph of y = x^2 - 4

x = -10y from -11.6 to 99.7x = 10

Use x as the variable: 2x + 1, x^3 - 3x, sin(x), sqrt(x), ln(x), abs(x). The graph redraws as you type.

Formula: y = f(x), e.g. x^2 - 4, 2x + 1, sin(x), sqrt(x), ln(x)

Graphing Calculator: Function Analysis & Root Finder

Short answer

This online graphing calculator analyzes a single-variable function y = f(x) over a specified domain interval [xmin, xmax]. It evaluates the function at a specific point x0, locates real roots (x-intercepts) using the bisection method, computes the y-intercept f(0), and determines global extrema within the range. For example, evaluating f(x) = x^2 - 4 from x = -10 to 10 yields f(3) = 5, roots at -2 and 2, a y-intercept of -4, a minimum of -4 at x = 0, and a maximum of 96 at x = -10.

Formula

y = f(x); Roots: {x ∈ [xmin, xmax] | f(x) = 0}; y-intercept: (0, f(0)); Extrema: min/max {f(x) | x ∈ [xmin, xmax]}

• y = f(x): The dependent output variable y generated by the algebraic or trigonometric function f applied to the input variable x. • [xmin, xmax]: The closed interval defining the domain range inspected for critical values, roots, and extrema. • x0: A specific chosen input value where the exact functional output f(x0) is evaluated. • Roots (x-intercepts): Real numbers x within the domain where the function evaluates to zero, located computationally via sign changes and 60-step bisection. • y-intercept: The point where the graph crosses the vertical axis, defined as the value of f(0) if 0 lies within [xmin, xmax]. • Minimum and Maximum: The lowest (lo) and highest (hi) values assumed by f(x) within the evaluated interval, alongside their corresponding x-coordinates.

Worked example

Function y = f(x)
x^2 - 4
x from
-10
x to
10
Evaluate at x =
3
  • f(3): 5
  • Roots (y = 0) in range: -2, 2
  • y-intercept f(0): -4
  • Minimum in range: -4 at x = 0
  • Maximum in range: 96 at x = -10

What This Graphing Calculator Calculates

Understanding the behavior of a mathematical function requires analyzing multiple properties simultaneously: where it crosses the axes, where it reaches its highest and lowest values, and what output it produces for specific inputs. This tool analyzes any continuous single-variable function $y = f(x)$ over a user-defined interval $[x_{\text{min}}, x_{\text{max}}]$.

Specifically, the calculator computes:

  • Point Evaluation ($f(x_0)$): The exact functional output for a targeted input value $x_0$.
  • Roots ($x$-Intercepts): Real solutions to $f(x) = 0$ found within the specified domain.
  • $y$-Intercept ($f(0)$): The vertical intercept where the curve crosses $x = 0$, provided zero is within the selected range.
  • Interval Extrema: The global minimum and maximum values of the function across the sampled interval, along with the precise $x$-coordinates where they occur.

This calculator is designed for students, educators, engineers, and researchers who need fast, dependable curve analysis without configuring complex desktop software.


Step-by-Step Worked Example

To see how the mathematical properties are determined, consider the standard quadratic function: $$ f(x) = x^2 - 4 $$ We configure the calculator with the following parameters:

  • Function $y = f(x)$: x^2 - 4
  • Domain Range ($x$ from / to): $x_{\text{min}} = -10$, $x_{\text{max}} = 10$
  • Evaluation Point ($x =$): $x_0 = 3$

Step 1: Evaluate $f(x_0)$ at $x = 3$

Substitute $x = 3$ directly into the expression: $$ f(3) = (3)^2 - 4 = 9 - 4 = 5 $$ Result: $f(3) = 5$

Step 2: Determine Real Roots in Range

Set $f(x) = 0$ and solve for $x$: $$ x^2 - 4 = 0 \implies x^2 = 4 \implies x = \pm 2 $$ Both $-2$ and $2$ fall within the interval $[-10, 10]$. The calculator samples points across the interval and applies the bisection method upon detecting sign changes. Result: Roots at $-2, 2$

Step 3: Find the $y$-Intercept

Because the domain $[-10, 10]$ contains $x = 0$, evaluate $f(0)$: $$ f(0) = (0)^2 - 4 = -4 $$ Result: $y$-intercept is $-4$

Step 4: Identify Extrema Across $[-10, 10]$

A parabola opening upward achieves its minimum at its vertex. For $f(x) = x^2 - 4$, the vertex occurs at $x = -b/(2a) = 0$, giving $f(0) = -4$.

The maximum on a closed interval occurs at the endpoints or local peaks. Evaluating the boundaries:

  • $f(-10) = (-10)^2 - 4 = 100 - 4 = 96$
  • $f(10) = (10)^2 - 4 = 100 - 4 = 96$

The numerical scan identifies the highest value encountered: Result: Minimum is $-4$ at $x = 0$; Maximum is $96$ at $x = -10$ (also reached at $x = 10$).


How to Interpret the Results

  • Function Output ($f(x_0)$): Confirms individual coordinates $(x_0, y)$ on the Cartesian plane. If this returns non-finite values (such as NaN or Infinity), the point falls outside the function's valid domain (e.g., $\ln(-1)$ or $1/0$).
  • Roots ($y = 0$): Indicate where the graph intersects the horizontal axis. In physical modeling, roots often represent break-even points, equilibrium states, or times when an object hits the ground.
  • Extrema (Min / Max): Reveal the operational bounds of your system within the chosen window. A minimum that occurs at an interior point indicates a local valley (vertex or critical point), whereas extrema occurring at the interval endpoints ($x_{\text{min}}$ or $x_{\text{max}}$) indicate that the function continues to grow or shrink beyond the chosen window.

Practical Tips for Accurate Graphing

  1. Center Your Window Around Areas of Interest: If you are unsure where the key features lie, start with a wide domain like $[-10, 10]$, observe the root locations, and then tighten the domain around those coordinates for greater visual clarity.
  2. Check Asymptotes Carefully: For rational functions like $f(x) = (x^2 - 1)/(x - 1)$, simplify algebraically or observe whether extreme values near $x = 1$ are due to vertical asymptotes or removable discontinuities.
  3. Use Explicit Operators: While modern parsers tolerate shorthand expressions, writing explicit multiplication (such as 3*x instead of 3x) and clear grouping (such as (x + 1)/(x - 2)) prevents ambiguous order-of-operation errors.

When Not to Rely on Numerical Scans

Numerical sampling evaluates a discrete number of points (2,000 sub-intervals). While this provides high accuracy for standard polynomials, exponentials, and trigonometric functions, it has mathematical limitations:

  • Even-Multiplicity Tangent Roots: If a curve touches the $x$-axis without crossing it (such as $f(x) = (x - 3)^2$), there is no sign change, meaning numerical bisection cannot flag the root.
  • Rapidly Oscillating Functions: For functions like $f(x) = \sin(1000x)$, features can fall between sample steps, causing missed peaks and incorrect roots.
  • Formal Proofs: Numerical tools provide empirical approximations; analytical calculus remains necessary to rigorously prove absolute extrema and asymptotes.

Comparison

ScenarioInputResult
Base exampleDefault inputsf(3): 5

Common mistakes

  • Entering implicit multiplication without standard formatting, such as writing '2x' where an expression parser might require '2*x'.
  • Setting an interval [xmin, xmax] that excludes key features like critical points, inflection points, or real roots.
  • Attempting to evaluate functions across undefined points or vertical asymptotes, such as division by zero in 1/x or negative values in ln(x).
  • Confusing radians and degrees when plotting trigonometric functions like sin(x) or cos(x).
  • Expecting the tool to locate imaginary or complex roots; the numerical bisection algorithm only identifies real-number sign changes.
  • Relying on discrete sampling for extremely high-frequency functions where narrow spikes or oscillations might fall between sample points.

Checklist

  • Write functions using standard single-variable notation with 'x' (e.g., x^2 - 4 or 2*x + 1).
  • Ensure the lower bound (x from) is strictly less than the upper bound (x to).
  • Verify that the evaluation point (x0) lies within the domain where the function is mathematically defined.
  • Use parentheses to avoid ambiguity in fractions and exponents, such as 1/(x + 2) instead of 1/x + 2.
  • Check that trigonometric inputs expect angles in radians unless your function explicitly converts them.
  • Confirm that the target interval includes 0 if you need to calculate the y-intercept.

Calculators Percentage Editorial Team

Calculator guides from the Calculators Percentage team. These introductory examples are educational, not professional advice.

Last reviewed:

This tool is intended for general mathematical, educational, and computational reference. Complex real-world engineering or scientific applications should verify critical limits and singularities using rigorous analytical methods.

Frequently Asked Questions

How does this calculator find roots?

The calculator samples 2,000 evenly spaced points across the interval [xmin, xmax] to detect sign changes where f(x) transitions between positive and negative. When a sign change is found, it performs 60 iterations of the bisection method to hone in on the root with high precision. This method reliably locates real roots but does not detect even-multiplicity tangent roots (like f(x) = x^2 at x = 0) where the curve does not cross the x-axis.

What is the difference between a root and an intercept?

A root (or x-intercept) is any value of x where f(x) = 0, meaning the graph crosses or touches the horizontal axis. A y-intercept is the point where the graph intersects the vertical axis, calculated by evaluating the function at x = 0. A function can have zero, one, or multiple roots, but it can have at most one y-intercept.

Why does the tool show 'None in range' for roots?

This output appears when the function does not cross the horizontal axis anywhere between your chosen xmin and xmax bounds. For instance, the function f(x) = x^2 + 4 has no real roots anywhere on the coordinate plane, while f(x) = x^2 - 4 has roots at -2 and 2, which will display as 'None in range' if your window is set between 3 and 10.

Can this graphing tool evaluate calculus derivatives?

This tool identifies numerical minimums and maximums by testing 2,000 discrete points along the interval rather than computing analytical derivatives using calculus. For smooth, continuous functions, this numerical scan provides a highly accurate approximation of local and absolute extrema across the window.

What happens if a function has an asymptote in the range?

If an expression contains a vertical asymptote—such as f(x) = 1/x at x = 0—the calculator ignores non-finite values (like infinity or division-by-zero errors) during its sweep. It will still evaluate finite points, but extreme values near the asymptote may distort the minimum and maximum outputs.

Why does the y-intercept display '0 not in range'?

The y-intercept requires evaluating f(0). If your specified interval [xmin, xmax] does not contain zero (for example, a range of 2 to 10 or -10 to -2), the calculator cannot display the y-intercept within that viewing window.

Sources & references

Formulas are tested against hand-checked answers. How we check our calculators.

Estimates only. Confirm final figures, terms and fees with your bank, provider or a qualified professional.

Last updated: January 15, 2026