版本:Mathematica 12.1
题目
已知函数
f
(
x
)
=
1
x
2
+
2
x
+
c
(
−
5
⩽
x
⩽
4
)
,
f(x)=\frac{1}{x^2+2x+c}\ (-5\leqslant x \leqslant 4) \text{ ,}
f(x)=x2+2x+c1 (−5⩽x⩽4) ,
作出并比较当 c c c 分别取 − 1 , 0 , 1 , 2 , 3 -1,0,1,2,3 −1,0,1,2,3 时的图形,并从图上观察极值点、驻点、单调区间、凹凸区间以及渐近线。
代码
f[x_] := 1/(x^2 + 2 x + c);
c = -1;
Plot[f[x], {x, -5, 4},
GridLines -> Automatic,
Frame -> True,
PlotStyle -> RGBColor[1, 0, 0],
PlotLabel -> "A Graph of f[x], c = -1"]
Plot[f'[x], {x, -5, 4},
GridLines -> Automatic,
Frame -> True,
PlotStyle -> RGBColor[1, 0, 0],
PlotLabel -> "A Graph of f'[x], c = -1"]
Plot[f''[x], {x, -5, 4},
GridLines -> Automatic,
Frame -> True,
PlotStyle -> RGBColor[1, 0, 0],
PlotLabel -> "A Graph of f''[x], c = -1"]
c = 0;
Plot[f[x], {x, -5, 4},
GridLines -> Automatic,
Frame -> True,
PlotStyle -> RGBColor[1, 0, 0],
PlotLabel -> "A Graph of f[x], c = 0"]
Plot[f'[x], {x, -5, 4},
GridLines -> Automatic,
Frame -> True,
PlotStyle -> RGBColor[1, 0, 0],
PlotLabel -> "A Graph of f'[x], c = 0"]
Plot[f''[x], {x, -5, 4},
GridLines -> Automatic,
Frame -> True,
PlotStyle -> RGBColor[1, 0, 0],
PlotLabel -> "A Graph of f''[x], c = 0"]
c = 1;
Plot[f[x], {x, -5, 4},
GridLines -> Automatic,
Frame -> True,
PlotStyle -> RGBColor[1, 0, 0],
PlotLabel -> "A Graph of f[x], c = 1"]
Plot[f'[x], {x, -5, 4},
GridLines -> Automatic,
Frame -> True,
PlotStyle -> RGBColor[1, 0, 0],
PlotLabel -> "A Graph of f'[x], c = 1"]
Plot[f''[x], {x, -5, 4},
GridLines -> Automatic,
Frame -> True,
PlotStyle -> RGBColor[1, 0, 0],
PlotLabel -> "A Graph of f''[x], c = 1"]
c = 2;
Plot[f[x], {x, -5, 4},
GridLines -> Automatic,
Frame -> True,
PlotStyle -> RGBColor[1, 0, 0],
PlotLabel -> "A Graph of f[x], c = 2"]
Plot[f'[x], {x, -5, 4},
GridLines -> Automatic,
Frame -> True,
PlotStyle -> RGBColor[1, 0, 0],
PlotLabel -> "A Graph of f'[x], c = 2"]
Plot[f''[x], {x, -5, 4},
GridLines -> Automatic,
Frame -> True,
PlotStyle -> RGBColor[1, 0, 0],
PlotLabel -> "A Graph of f''[x], c = 2"]
c = 3;
Plot[f[x], {x, -5, 4},
GridLines -> Automatic,
Frame -> True,
PlotStyle -> RGBColor[1, 0, 0],
PlotLabel -> "A Graph of f[x], c = 3"]
Plot[f'[x], {x, -5, 4},
GridLines -> Automatic,
Frame -> True,
PlotStyle -> RGBColor[1, 0, 0],
PlotLabel -> "A Graph of f'[x], c = 3"]
Plot[f''[x], {x, -5, 4},
GridLines -> Automatic,
Frame -> True,
PlotStyle -> RGBColor[1, 0, 0],
PlotLabel -> "A Graph of f''[x], c = 3"]
分析
- 我也很无奈,放在
For
循环里就不能Plot
了。所以就枚举了。
界面
图片效果
举一反三
HJ 高等数学分析I 习题课九 1(1)(2)
(1) 曲线
y
=
x
3
(
x
−
1
)
2
y=\frac{x^3}{(x-1)^2}
y=(x−1)2x3的下凸曲间是_____,拐点是_____,渐近线方程是__________;
(2) 曲线
y
=
x
2
(
x
−
1
)
2
(
x
−
2
)
2
y=x^2(x-1)^2(x-2)^2
y=x2(x−1)2(x−2)2 的拐点有_____个(要简要说明理由).
代码:
f[x_] := x^3/(x - 1)^2;
Plot[f[x], {x, -5, 5}, GridLines -> Automatic, Frame -> True,
PlotStyle -> RGBColor[1, 0, 0], PlotLabel -> "A Graph of f[x]"]
Plot[f'[x], {x, -5, 5}, GridLines -> Automatic, Frame -> True,
PlotStyle -> RGBColor[1, 0, 0], PlotLabel -> "A Graph of f'[x]"]
Plot[f''[x], {x, -5, 5}, GridLines -> Automatic, Frame -> True,
PlotStyle -> RGBColor[1, 0, 0], PlotLabel -> "A Graph of f''[x]"]
g[x_] := x^2*(x - 1)^2*(x - 2)^2;
Plot[g[x], {x, -0.5, 2.5}, GridLines -> Automatic, Frame -> True,
PlotStyle -> RGBColor[1, 0, 0], PlotLabel -> "A Graph of g[x]"]
Plot[g'[x], {x, -0.5, 2.5}, GridLines -> Automatic, Frame -> True,
PlotStyle -> RGBColor[1, 0, 0], PlotLabel -> "A Graph of g'[x]"]
Plot[g''[x], {x, -0.5, 2.5}, GridLines -> Automatic, Frame -> True,
PlotStyle -> RGBColor[1, 0, 0], PlotLabel -> "A Graph of g''[x]"]
界面:
二阶导数图像:
ALL RIGHTS RESERVED © 2020 Teddy van Jerry
欢迎转载,转载请注明出处。