The original function is:x^2-4x+7cos(x)
I attempted to find concavity on the interval [-4,4]using mathematica but i'm not quite there yet
Asked
Active
Viewed 197 times
1
Allan Rogers
- 75
- 4
1 Answers
2
An automatic approach is as follows.
FunctionConvexity[{x^2 - 4 x + 7*Cos[x], RealAbs[x] <= 4}, x]
Indeterminate
This means that the funciton under consideration is neither convex nor concave on the interval x >= -4, x <= 4. See the documentation for more info.
user64494
- 26,149
- 4
- 27
- 56
-
Moreover,
FunctionConvexity[{x^2 - a*x + 7*Cos[x], RealAbs[x] <= 4}, x, GenerateConditions -> True]results inConditionalExpression[ Indeterminate, Element[a, Reals]]. This means the function is neither convex nor concave onx>=-4,x<=4for each real value ofa– user64494 Mar 31 '21 at 04:27
honly changes at thex-values marked in black. Test: curve your hand like a C and hold your arm in front of you so that your forearm is parallel to the x-axis. Can you adjust your hand so that it fits the curveh? If so, it's concave-down. (Which hand you use doesn't matter.) – thorimur Mar 31 '21 at 00:03