Example 1 — Polynomial
\(f(x)=x^3-3x\). \(f'(x)=3x^2-3=0\Rightarrow x=\pm1\). \(f''(x)=6x\). \(f''(-1)=-6<0\Rightarrow\) local max at \(-1\); \(f''(1)=6>0\Rightarrow\) local min at \(1\).
Find critical points of \(f(x,y)\) by solving \(\nabla f=(0,0)\) and classify them via the Hessian test.
Critical points satisfy \(f_x=0\) and \(f_y=0\).
Hessian test: \(D=f_{xx}f_{yy}-f_{xy}^2\).
If \(D>0\) and \(f_{xx}>0\) ⇒ local min; if \(D>0\) and \(f_{xx}<0\) ⇒ local max.
If \(D<0\) ⇒ saddle; if \(D=0\) ⇒ inconclusive.
A Critical Number Calculator finds the x-values where a function’s behavior can change dramatically—possible local maxima, minima, or nondifferentiable corners. For a single-variable function \(f(x)\), a critical number \(c\) is any domain point where the derivative is zero, \(f'(c)=0\), or the derivative does not exist while \(f\) remains defined at \(c\). These locations are candidates for local extrema by Fermat’s Theorem, which states that if \(f\) has a local extremum at an interior point and is differentiable there, then the derivative must be zero. The calculator automates differentiation, solves the necessary equations/conditions, and then helps you classify the points using second-derivative and first-derivative sign tests. It also distinguishes between interior critical numbers and endpoints, which are not critical numbers but are still candidates in closed-interval optimization.
The tool accepts symbolic functions (polynomials, rational, exponential, logarithmic, trigonometric) and handles piecewise definitions with domain checks. It computes \(f'(x)\), solves \(f'(x)=0\), and flags points where \(f'\) fails to exist while \(f\) is defined. For classification, it evaluates \(f''(x)\) and applies the second-derivative test; when inconclusive, it performs a first-derivative sign analysis around the candidate. On closed intervals \([a,b]\), it compiles the standard comparison set: all critical numbers in \((a,b)\) plus the endpoints \(a,b\), then reports absolute maxima/minima by direct evaluation. The output includes clear algebraic steps, domain warnings (e.g., vertical asymptotes), and a concise summary table of each candidate’s type and function value.
Critical numbers (interior): \[ \mathcal{C}=\Big\{\,x\in\mathrm{dom}(f):\ f'(x)=0\ \ \text{or}\ \ f'(x)\ \text{does not exist}\,\Big\}. \]
Second-derivative test: \[ f''(c)>0\Rightarrow\text{local min},\qquad f''(c)<0\Rightarrow\text{local max},\qquad f''(c)=0\Rightarrow\text{inconclusive}. \]
First-derivative test: \[ \begin{cases} f'(x)\ \text{changes }(-\to +)\ \text{at }c \Rightarrow \text{local min}\\ f'(x)\ \text{changes }(+\to -)\ \text{at }c \Rightarrow \text{local max}\\ \text{no sign change} \Rightarrow \text{neither} \end{cases} \]
Closed-interval comparison set: \[ \{\text{critical numbers in }(a,b)\}\ \cup\ \{a,b\}. \]
\(f(x)=x^3-3x\). \(f'(x)=3x^2-3=0\Rightarrow x=\pm1\). \(f''(x)=6x\). \(f''(-1)=-6<0\Rightarrow\) local max at \(-1\); \(f''(1)=6>0\Rightarrow\) local min at \(1\).
\(f(x)=|x|\). \(f'(x)=-1\) for \(x<0\), \(f'(x)=1\) for \(x>0\); derivative fails at \(x=0\) while \(f\) is defined. Thus \(0\) is a critical number (and a global minimum).
\(f(x)=\dfrac{x+1}{x-2}\). \(f'(x)=-\dfrac{3}{(x-2)^2}\neq0\) on its domain. At \(x=2\) the function is undefined, so \(2\) is not a critical number.
A domain point where \(f'(x)=0\) or \(f'(x)\) does not exist; candidates for local extrema.
No. But for absolute extrema on \([a,b]\), evaluate endpoints along with interior critical numbers.
Yes. If the derivative doesn’t change sign (or the Hessian is indefinite in higher dimensions), it’s neither.
If \(f\) is defined and \(f'\) fails to exist at a point, that point is a critical number (e.g., \(f(x)=|x|\) at 0).
Use the first-derivative sign test or analyze higher-order derivatives/nearby values.
No. Points outside the domain (e.g., at asymptotes) cannot be critical numbers.