如何使用 Wolfram Mathematica 程序在给定区间上找到函数的绝对最小值和最大值?
How do I find the absolute minimum and maximum of a function on the giving interval using Wolfram Mathematica program?
我知道如何求导数,但是我不知道如何使用 Mathematica 求绝对值。并与图形和二阶导数进行比较?
f(x) = 3x^(2/3) -2x +1 在 [-1,8]
这就是你想要的吗?
f[x_] := 3 x^(2/3) - 2 x + 1
max = First@FindMaximum[{f[x], -1 <= x <= 8}, x];
min = First@FindMinimum[{f[x], -1 <= x <= 8}, x];
Plot[{f[x], f''[x], max, min}, {x, -1, 8},
PlotLegends -> "Expressions"]
我知道如何求导数,但是我不知道如何使用 Mathematica 求绝对值。并与图形和二阶导数进行比较? f(x) = 3x^(2/3) -2x +1 在 [-1,8]
这就是你想要的吗?
f[x_] := 3 x^(2/3) - 2 x + 1
max = First@FindMaximum[{f[x], -1 <= x <= 8}, x];
min = First@FindMinimum[{f[x], -1 <= x <= 8}, x];
Plot[{f[x], f''[x], max, min}, {x, -1, 8},
PlotLegends -> "Expressions"]