A critical point is a location on a function's graph where the slope goes to zero or does not exist. At that location the function stops increasing and starts decreasing (a local maximum) or stops decreasing and starts increasing (a local minimum), or it may simply flatten out momentarily before continuing in the same direction (a saddle or inflection point). Finding critical points is the foundation of mathematical optimisation: if you want to know the best or worst outcome a process can reach within a given range, you look at the critical points and the boundary values. Engineers use this to minimise cost or maximise efficiency, economists to find equilibrium, and physicists to find stable and unstable equilibria in potential energy surfaces. This calculator scans a function of x over a search interval, identifies every x where the derivative is numerically zero using a sign-change bisection approach, classifies each critical point using the second derivative test, and reports the function value and classification for each one. Enter the function in standard notation, such as x^3 - 3*x, the left and right limits of the search range, and the search resolution. Use ^ for powers, * for multiplication, and Math functions like sin, cos, exp, log, and sqrt. The default example finds critical points of x^3 - 3*x on [-3, 3], yielding a local maximum at x = -1 and a local minimum at x = 1.
| x | f(x) | f'(x) | f''(x) | Classification |
|---|---|---|---|---|
| -1.00 | 2.00 | 0.00 | -6.00 | Local max |
| 1.00 | -2.00 | 0.00 | 6.00 | Local min |
Uses sign-change bisection to find zeros of f'(x), then the second derivative test to classify. Some inflection points may appear if f'' is also near zero.
The derivative f'(x) is estimated at 2000 equally spaced points across the search interval using central difference: f'(x) is approximately (f(x+h) - f(x-h)) / (2h) with h = 1e-7. When f' changes sign between adjacent sample points, a bisection search pinpoints the zero to high precision. The second derivative f''(x) is then estimated the same way but applied to the derivative. If f''(x) is negative the point is a local maximum; if positive, a local minimum; if near zero, the classification is inconclusive.
For f(x) = x^3 - 3*x over [-3, 3]: f'(x) = 3x^2 - 3, which equals zero at x = -1 and x = 1. At x = -1: f(-1) = -1 + 3 = 2.00, f''(-1) = 6(-1) = -6.00 (negative, so local max). At x = 1: f(1) = 1 - 3 = -2.00, f''(1) = 6(1) = 6.00 (positive, so local min). These match the defaults pre-filled above.
If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.
Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.
Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.
All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.
Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.
Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.
Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.
All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.
About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use
Reviewed and maintained. Last reviewed 2026-07-19 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.
© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.