FunctionMonotonicity
1 if f is increasing over its whole domain, -1 if decreasing, 0 if constant, Indeterminate otherwise.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
FunctionMonotonicity!FunctionMonotonicity(f, x)whether f is monotonic in the real variable x over the whole real line.Typed signatures
| Type | Package | Applies |
|---|---|---|
(expression, symbol) -> expression | analytic | always |
Details
- Matches Wolfram's own convention, confirmed against
wolframscript, that a proper (non-Reals) domain already answersIndeterminate--FunctionMonotonicity(Sqrt(x), x)andFunctionMonotonicity(Log(x), x)areIndeterminate, not declined, because their domain isn't all of , not because this file can't analyze them. - For a polynomial with domain , the sign of its derivative is read off in closed form -- constant sign (possibly touching zero at one point) gives 1 or -1, a proven sign change gives
Indeterminate. Exp of an affine argument is always 1 or -1, by the sign of the argument's slope. - Declines only when the classifier itself declines (see FunctionDomain) or when a polynomial's derivative is a genuine multi-term polynomial of degree > 2 (its sign isn't determined here).
Examples
Basic #
A cubic is increasing everywhere -- its derivative never goes negative
live ↗InOut
Known value · Wolfram 15.0.0, hand cross-checked
Exp of an affine argument is always monotonic
live ↗InOut
Known value · Wolfram 15.0.0, hand cross-checked
Properties #
Sqrt's domain isn't all of R, so Wolfram's own convention is Indeterminate here -- confirmed against wolframscript
live ↗InOut
Known value · Wolfram 15.0.0, hand cross-checked
About
| Examples | 5 |
|---|---|
| Checked against | Wolfram Language 2 agree3 differ |
| Crosswalk | Wolfram Language |