Find all critical points where f'(x)=0 or undefined. Classify local minima, maxima, inflection points, and visualize the curve — enhanced with non-differentiable point detection.
In calculus, a critical point (or stationary point) of a differentiable function f is any point x₀ in its domain where the derivative f′(x₀) = 0 or where the derivative does not exist (non-differentiable). Critical points are essential for locating local extrema (minima/maxima) and inflection points, and they form the backbone of optimization problems in physics, economics, and engineering.
The First Derivative Test examines the sign change of f′ around the point to determine whether it's a local maximum, minimum, or neither. The Second Derivative Test uses f″(x₀): if f″(x₀) > 0, it's a local minimum; if f″(x₀) < 0, a local maximum; if f″(x₀) = 0, the test is inconclusive (could be inflection or higher-order).
math.derivative.A company models its daily profit as P(x) = -2x³ + 12x² - 10x + 5 (thousands of dollars), where x is hundreds of units produced. Finding critical points of P'(x) = -6x² + 24x - 10 = 0 yields x ≈ 0.48 and x ≈ 3.52. Using the second derivative P''(x) = -12x + 24, at x=3.52, P'' is negative → local maximum. The tool instantly verifies this, helping business analysts identify optimal production level without manual algebra. The interactive graph shows the profit peak clearly.
| Function f(x) | Critical Points (x) | Type | Second Derivative Sign |
|---|---|---|---|
| x³ - 3x | x = -1, x = 1 | Local max (-1,2) & Local min (1,-2) | f″(-1) = -6 (<0), f″(1)=6 (>0) |
| sin(x) (0 to 2π) | π/2, 3π/2 | Max at π/2, Min at 3π/2 | f″(π/2) = -sin = -1 |
| x⁴ - 2x² | x = -1, 0, 1 | Min (-1,-1), Max (0,0), Min (1,-1) | f″(-1)=8>0, f″(0)=-4<0, f″(1)=8>0 |
| x³ (cubic inflection) | x = 0 | Inflection point (saddle) | f″(0)=0, first derivative no sign change |
Fermat's theorem states that if f has a local extremum at x₀ and f is differentiable there, then f′(x₀)=0. However, the converse is not always true: f′(x₀)=0 may correspond to a saddle/inflection (e.g., f(x)=x³). That's why the second derivative test is crucial. For functions with non‑differentiable points (e.g., absolute value at 0), the calculator warns when the derivative fails to exist. The tool's underlying numeric root-finding is adapted from classical methods (Press et al., Numerical Recipes) and ensures high accuracy for smooth elementary functions.