【Mathematica】 函数性态的观察

版本: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 (5x4) ,

作出并比较当 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了。所以就枚举了。

界面

界面

图片效果

1
2
3

举一反三

HJ 高等数学分析I 习题课九 1(1)(2)
(1) 曲线 y = x 3 ( x − 1 ) 2 y=\frac{x^3}{(x-1)^2} y=(x1)2x3的下凸曲间是_____,拐点是_____,渐近线方程是__________;
(2) 曲线 y = x 2 ( x − 1 ) 2 ( x − 2 ) 2 y=x^2(x-1)^2(x-2)^2 y=x2(x1)2(x2)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]"]

界面:
界面
二阶导数图像:
1
2


ALL RIGHTS RESERVED © 2020 Teddy van Jerry
欢迎转载,转载请注明出处。


See also

Teddy van Jerry 的导航页

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值