FunctionConvexity
1 if f is convex over its whole domain, -1 if concave, 0 if affine, Indeterminate otherwise.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
FunctionConvexity!FunctionConvexity(f, x)the convexity of f in the real variable x over the whole real line, from the sign of its second derivative.Typed signatures
| Type | Package | Applies |
|---|---|---|
(expression, symbol) -> expression | analytic | always |
Details
- Same domain-first convention as FunctionMonotonicity -- a domain that isn't all of answers
Indeterminate(confirmed againstwolframscript), it isn't a decline. - For a polynomial, reads the sign of the second derivative in closed form; Exp of an affine argument is always convex ().
- Declines only where the classifier itself declines, or where a polynomial's second derivative is a genuine multi-term polynomial of degree > 2.
Examples
Basic #
A cubic's second derivative changes sign at the inflection point
live ↗InOut
Known value · Wolfram 15.0.0, hand cross-checked
Properties #
1/x's domain isn't all of R, so we decline rather than guess about its (genuinely mixed) shape
live ↗InOut
About
| Examples | 6 |
|---|---|
| Checked against | Wolfram Language 3 agree3 differ |
| Crosswalk | Wolfram Language |