Function Analyzer and Grapher, Explained
After reading this you will know how to find the zeros, minima, maxima, inflection points and horizontal asymptotes of a function of x, why the calculator plots both f and f', and how to trust the numbers it returns.
What the analyzer does
Give it a function f(x) and a window [\text{lo}, \text{hi}]. It reports four kinds of feature: where f(x) = 0 (zeros), where the slope is flat and changes sign (minima and maxima), where the curvature flips (inflection points), and whether the graph levels off toward a constant as x \to \pm\infty (horizontal asymptotes).
Take the default cubic x^3 - 3*x + 1. Its slope is 3x^2 - 3, which is zero at x = -1 and x = 1. At x = -1 the value is (-1)^3 - 3(-1) + 1 = 3, a local maximum. At x = 1 the value is 1 - 3 + 1 = -1, a local minimum. The curve crosses zero three times. That single expression already shows every feature type except an asymptote, which is why it is the demo.
When to use it, and when not
Use it when you want a quick, complete picture of one real-valued function on an interval: the shape, the turning points, the roots. It is the right first step before you compute anything harder.
It is not the tool for exact symbolic work. If you want a closed-form derivative or an exact antiderivative, use the Derivative and Integral Calculator. For the area under a curve, use the Numerical Integrator. For behavior at a single point or the precise value of a limit, use the Limit Calculator. This analyzer classifies features; it does not integrate or expand into series.
Only real features inside your window are reported. A zero at x = 8 will not appear if your window ends at 5. Widen the window when a feature seems to be missing.
The math behind each feature
Every feature comes from f and its first two derivatives.
Zeros solve the equation directly:
A zero is any x where the graph touches or crosses the horizontal axis.
Critical points are where the slope vanishes:
Here f'(x) is the first derivative. A critical point is a candidate turning point. To classify it, check the second derivative f''(x). If f''(x) \gt 0 the curve is concave up and the point is a local minimum. If f''(x) \lt 0 it is concave down and a local maximum.
Inflection points are where curvature changes sign:
The second condition matters. For f(x) = x^4 the second derivative 12x^2 is zero at x = 0, but it stays non-negative on both sides, so there is no inflection there.
Horizontal asymptotes come from the limits at infinity:
If that limit is a finite number L, the line y = L is a horizontal asymptote. For f(x) = 1/x the limit is 0, so y = 0 is an asymptote. Polynomials like the demo cubic have no horizontal asymptote because they grow without bound.
How the search works
The analyzer tries algebra first. If f(x) = 0 or f'(x) = 0 can be solved symbolically, it uses those exact roots. When algebra fails, for example with x - \cos x, it scans the window numerically: it samples f at many points, watches for sign changes, and refines each bracket to a root. That is the meaning of the note on the calculator page: symbolic solving is tried first, and a numeric scan of the window catches what algebra cannot.
The numeric scan only finds features between sample points. A feature squeezed into a very narrow spike can slip through. If you suspect this, shrink the window around the suspect region so the same number of samples covers less ground.
Worked example: the demo cubic
Analyzing x^3 - 3x + 1 on [-3, 3]
Enter x^3 - 3*x + 1 with the window from -3 to 3, then press Calculate.
- Zeros solve x^3 - 3x + 1 = 0. The three real roots are approximately x \approx -1.879, x \approx 0.347 and x \approx 1.532. All lie inside [-3, 3].
- Critical points solve 3x^2 - 3 = 0, giving x = -1 and x = 1.
- Classify with f''(x) = 6x. At x = -1, f''(-1) = -6 \lt 0: a local maximum at height
3. At x = 1, f''(1) = 6 \gt 0: a local minimum at height-1. - Inflection solves 6x = 0, so x = 0. The value there is f(0) = 1, and curvature flips from concave down to concave up.
- Asymptotes: none. A cubic runs to +\infty and -\infty.
Notice that the maximum at x = -1 and the minimum at x = 1 straddle the inflection at x = 0, which is exactly where the two humps meet.
Reading and interpreting the output
The analyzer plots two curves: f and its derivative f'. Reading them together is the quickest way to sanity-check the feature list.
- Zeros of f
- Points where the f curve crosses the horizontal axis.
- Zeros of f′
- Where the derivative curve crosses zero, the original f has a flat tangent: a minimum or maximum.
- Sign of f′
- Where f' is positive, f rises; where it is negative, f falls.
- Extrema of f′
- A peak or valley of the derivative marks an inflection point of f.
For the demo, f'(x) = 3x^2 - 3 is a parabola that dips to its minimum at x = 0. That minimum of f' is exactly the inflection of f. The parabola crosses zero at x = -1 and x = 1, the two turning points.
Common mistakes
Confusing a zero with a minimum. A zero is where f = 0; a minimum is where f' = 0 and the value is locally smallest. They rarely coincide. For the demo, the smallest value -1 occurs at x = 1, which is not a zero.
Trusting an endpoint as an extremum. The analyzer reports interior critical points where the slope is zero. On [-3, 3] the largest value of the cubic is 19 at the right endpoint, but that is a boundary maximum, not a critical point. Judge boundary behavior from the graph.
Reading a vertical asymptote as a zero. Near a vertical asymptote a numeric scan can see a huge change in sign that is not a root. For 1/(x-2) the function blows up at x = 2; that is a pole, not a zero. Check whether f is finite there.
Write the expression unambiguously. x^3 - 3*x + 1 is a cubic; x^(3-3)*x is x. Use explicit * for multiplication and parentheses for exponents.
Related tools
Once you know the shape, the next step often lives in another calculator. For the exact slope function or an antiderivative, use the Derivative and Integral Calculator. To expand f near a point, use the Taylor and Maclaurin Series. For two-variable slopes and stationarity, use the Gradient and Hessian Calculator. To approximate an area with visible rectangles, the Riemann Sum Calculator shows the sums against the true integral. If you are fitting a curve through scattered data rather than analyzing a formula, use the Interpolation Calculator. And when the function is a solution you still need to find, the Differential Equation Solver produces it symbolically.
Frequently asked questions
Why does the analyzer show f prime as well as f?
The zeros of f' are the turning points of f, and the sign of f' tells you where f rises or falls. Seeing both curves lets you verify each reported minimum or maximum by eye.
It says there are no zeros, but the graph clearly crosses the axis.
The crossing is probably outside your window. Zeros are only reported inside [\text{lo}, \text{hi}]. Widen the window and run it again.
How does it tell a minimum from a maximum?
By the second derivative at the critical point. If f''(x) \gt 0 the point is a minimum; if f''(x) \lt 0 it is a maximum. When f''(x) = 0 the test is inconclusive and the point may be an inflection instead.
Can it find vertical asymptotes?
It reports horizontal asymptotes from the limits at infinity. Vertical asymptotes show up in the plot as the curve shooting toward large values, but they are not classified as features. For their exact location and one-sided limits, use the Limit Calculator.
Why are the numeric roots not exact?
When algebra cannot solve the equation, the roots come from a numeric scan and are accurate to several digits, not exact. The demo cubic's roots such as -1.879 are irrational, so any decimal you see is rounded.