Professional Documents
Culture Documents
THPT Nam ng
HM S
A. S lc mt s tnh cht.
1) nh ngha mt hm s.
C php:
> f: = x > f (x) ;
* tnh gi tr hm s ti x = a ta dng lnh: > f(a); .
V d:
Xc nh hm s y = f ( x ) = x 2 - 3 x + 5 .
+Nhp vo Maple:
> f:= x -> x^2-3*x+5;
f := x x2 - 3 x + 5
1
2
+Tnh gi tr ca hm s khi x = -3; x = ; x = - .
3
5
> f(-3),f(1/3),f(-2/5);
23,
37 159
,
9 25
1 37
{ kt qu trn ta hiu: f ( -3) = 23; f = ; f
3 9
2) Xc nh hm s f t mt biu thc p(x).
C php:
> f: =unapply(p,x); .
V d:
Cho biu thc p ( x ) = sin 3 x - 2 x 2 .
+ Thnh lp hm s f da vo biu thc p:
> p:=sin(3*x)-2*x^2;
> f:=unapply(p,x);
p := sin( 3 x ) - 2 x 2
f := x sin( 3 x ) - 2 x 2
+ Tnh gi tr ca hm s f khi x =
> f(Pi/18);
2 159
}.
- =
5 25
p
:
18
1 p2
2 162
3) Hm s hp ca hm s f v hm s g {f(g(x))}.
C php:
> (f@g)(x); .
V d:
Cho hai hm s y = f ( x ) = x 2 ; y = g ( x ) = 2 x + 3 .
+ Nhp hai hm s trn vo Maple:
2x+3
+ Xc nh hm s hp h1 ( x ) = f ( g ( x ) ) :
> h1:=(f@g)(x);
h1 := 2 x + 3
+ Xc nh hm s hp h2 ( x ) = g ( f ( x ) ) :
> h2:=(g@f)(x);
h2 := 2 x 2 + 3
4. Hm s f ( ) ( x ) _{f(f(f(x)), n ch f}.
C php :
> (f@@n)(x);.
n
V d:
Cho hm s: f ( x ) =
x
1 + x2
3
4
Tm cc hm s f ( f ( x ) ) ; f ( ) ( x ) ; f ( ) ( x ) .
+Nhp hm s f:
> f:=x->x/sqrt(1+x^2);
x
f := x
1 + x2
+Tm cc hm s hp:
- Xc nh hm s f1:= f(f(x));
> f1:=(f@@2)(x);
x
f1 :=
1+x
x2
1+
1 + x2
x
1 + 2 x2
- Xc nh hm s f2:= f(f(f(x)));
> f2:=(f@@3)(x);
f2 :=
1 + x2
1+
x2
1 + x2
1+
x2
2
( 1 + x2 ) 1 +
1 + x2
f2 :=
3 x2 + 1
- Xc nh hm s f3:= f(4)(x);
> f3:=(f@@4)(x):
simplify(sqrt((denom(f3))^2)):
f3:=numer(f3)/(%);
x
f3 :=
4 x2 + 1
n
Qua cc kt qu trn chng ta c th d on c : f ( ) ( x ) =
x
1 + nx 2
+ T c th tnh gi tr ca hm s.
-5
Chng hn tnh f ( -1) , f nh sau:
2
> f(-1);
3
> f(-5/2);
4
V d 2:
2 ( x - 2 ) nu - 1 x<1
Xt hm s y = f ( x ) =
.
2
nu x 1
x - 1
2
Tnh f ( -1) ; f ( 0,5 ) ; f
; f (1) ; f ( 2 ) .
2
(Bi tp 10/tr46_SGK S 10 nng cao)
+ Nhp hm s vo Maple:
> f:=proc(x)
if x>=-1 and x<1 then -2*(x-2) elif x>=1 then sqrt(x^2-1)
end if
end proc;
f := proc (x)
if -1 x and x < 1 then -2x + 4 elif 1 x then sqrt ( x^2 - 1 ) end if
end proc
+ Tnh cc gi tr ca hm s:
> f(-1);
6
> f(0.5);
3.0
> a:=sqrt(2)/2:
f(evalf(a));
2.585786438
> f(1);
0
> f(2);
3
2
Tnh f ( -1) ; f ( 0,5 ) ; f
; f (1) ; f ( 2 ) .
2
+ Tnh cc gi tr ca hm s:
> f(sqrt(2)/2);
1
2
2
2
RGB (0-255)
--------------[240, 248, 255]
[250, 235, 215]
[ 0, 255, 255]
[127, 255, 212]
[112, 219, 147]
[240, 255, 255]
[245, 245, 220]
[255, 228, 196]
[ 0,
0,
0]
[255, 235, 205]
[ 0,
0, 255]
[138, 43, 226]
[165, 42, 42]
[222, 184, 135]
[ 95, 158, 160]
[127, 255,
0]
[210, 105, 30]
[255, 127, 80]
[255, 127,
0]
[100, 149, 237]
[255, 248, 220]
[220, 20, 60]
[ 0,
0, 139]
[ 0, 139, 139]
[184, 134, 11]
[169, 169, 169]
[ 0, 100,
0]
"magenta"
"gold"
"khaki"
"green"
-
[189,
[139,
[ 85,
[255,
[153,
[139,
[233,
[143,
[ 72,
[ 47,
[ 0,
[148,
[255,
[ 0,
[105,
[ 30,
[209,
[178,
[255,
[ 34,
[255,
[220,
[248,
[255,
[204,
[218,
[128,
[ 0,
[173,
[240,
[255,
[205,
[ 75,
[255,
[240,
[159,
[230,
[255,
[124,
[255,
[173,
[240,
[224,
[238,
[250,
[211,
[144,
[255,
[255,
[ 32,
[135,
[132,
[119,
[176,
[255,
[ 0,
[ 50,
183,
0,
107,
140,
50,
0,
150,
188,
61,
79,
206,
0,
20,
191,
105,
144,
146,
34,
250,
139,
0,
220,
248,
215,
127,
165,
128,
128,
255,
255,
105,
92,
0,
255,
230,
159,
230,
240,
252,
250,
216,
128,
255,
221,
250,
211,
238,
182,
160,
178,
206,
112,
136,
196,
255,
255,
205,
107]
139]
47]
0]
204]
0]
122]
143]
139]
79]
209]
211]
147]
255]
105]
255]
117]
34]
240]
34]
255]
220]
255]
0]
50]
32]
128]
0]
47]
240]
180]
92]
130]
240]
140]
95]
250]
245]
0]
205]
230]
128]
255]
130]
210]
211]
144]
193]
122]
170]
250]
255]
153]
222]
224]
0]
50]
"maroon"
"navy"
"orange"
"pink"
"plum"
"red"
"sienna"
"gray","grey"
"tan"
[250,
[128,
[142,
[102,
[ 0,
[186,
[147,
[ 60,
[123,
[ 0,
[ 72,
[199,
[ 25,
[245,
[255,
[255,
[255,
[ 0,
[ 35,
[253,
[128,
[107,
[255,
[204,
[255,
[218,
[238,
[152,
[175,
[219,
[255,
[255,
[205,
[255,
[221,
[234,
[176,
[128,
[255,
[188,
[ 65,
[139,
[250,
[244,
[ 46,
[255,
[160,
[142,
[192,
[135,
[106,
[112,
[255,
[ 0,
[ 70,
[210,
[219,
240,
0,
35,
205,
0,
85,
112,
179,
104,
250,
209,
21,
25,
255,
228,
228,
222,
0,
35,
245,
128,
142,
165,
50,
69,
112,
232,
251,
238,
112,
239,
218,
133,
192,
160,
173,
224,
0,
0,
143,
105,
69,
128,
164,
139,
245,
82,
107,
192,
206,
90,
128,
250,
255,
130,
180,
147,
230]
0]
107]
170]
205]
211]
219]
113]
238]
154]
204]
133]
112]
250]
225]
181]
173]
128]
142]
230]
0]
35]
0]
50]
0]
214]
170]
152]
238]
147]
213]
185]
63]
203]
221]
234]
230]
128]
0]
143]
225]
19]
114]
96]
87]
238]
45]
35]
192]
235]
205]
144]
250]
127]
180]
140]
112]
"turquoise"
"violet"
"wheat"
"white"
"yellow"
-
[ 0,
[216,
[255,
[ 64,
[173,
[238,
[ 79,
[208,
[245,
[216,
[255,
[245,
[255,
[154,
128,
191,
99,
224,
234,
130,
47,
32,
222,
216,
255,
245,
255,
205,
128]
216]
71]
208]
234]
238]
79]
144]
179]
191]
255]
245]
0]
50]
* style (kiu th): gm 3 dng point (im), line (ng thng), patch.
* axes (dng h trc hin th) : gm cc dng boxed, frame, none, normal
* coords (loi h ta ): gm cc dng bipolar, cardioid, cassinian, elliptic,
hyperbolic, invcassinian, invelliptic, logarithmic, logcosh, maxwell, parabolic, polar,
rose, tangent.
* numpoints = n : s im hin th ca th . Mc nh l numpoint = 50.
* thickness: dy ca th. Mc nh thickness = 0 .
* linestyle : kiu ca ng biu din th.
Gm cc dng: solid, dot, dash, dashdot, longdash, spacedash, spacedot . Mc nh
ca Maple l kiu solid. Ch , ta cng c th t gi tr ca linestyle bng cc s nguyn
t 1 n 7 . Mi s tng ng vi mt kiu xp theo th t trn.
* view=[xmin..xmax, ymin..ymax] : cc khong gii hn trn trc Ox v trc Oy hin
th th.
* title: tiu cho th.
* tickmarks = [a,b]: gii hn khung nhn th.
V d:
V th hm s y = sin x .
T suy ra th cc hm s: y = - sin x; y = sin x ; y = sin x
(Bi tp 11/tr17_SGK S>11 nng cao)
+ V th hm s y = sin x trn khong [ - 2p ; 2p ] :
> plot(sin(x),x=-2*Pi..2*Pi,title="Do thi ham so y=sin(x)
tren khoang [-2Pi; 2Pi]");
V d:
V th hm s y = x3 - 3x + 2 trn khong [-7; 7].
> plot(x^3-3*x+2,x=-7..7);
10
11
+ V tp hp cc im trn:
(Cc im c hin th dng hnh trn, mu xanh)
> plot(li,x=-2..2,y=-2..2, style=point, symbol=circle,
color=blue);
12
r (t ) =
8
p
100 + t -
2
+ Xc nh hm s:
> s := t->100/(100+(t-Pi/2)^8):
r := t -> s(t)*(2-sin(7*t)-cos(30*t)/2):
+ V th hm s r(t):
> plot([r(t),t,t=-Pi/2..3/2*Pi],
numpoints=2000,coords=polar,axes=normal);
13
14
+ V th hm s f:
> plot(f,-5..5,-5..6);
15
2). V th ng.
Gi lnh:
> with(plots):
a) th hm s c cha tham s y = f ( x, m ) .
C php:
> animate(plot, [f(x,m),x=a..b],m=m1..m2,option);.
Sau khi nhn enter, xut hin mt thanh cng c trn mn hnh c hnh dng:
16
Trong cu lnh trn ta cho m [ -3; 3] . V th u tin xut hin trn mm hnh
ng vi m = -3 .
@Nu mun xem th tng ng vi tng gi tr c th ca m ta nhn nt stop
ri kch hot nt
, mi ln kch hot ta c mt th ng vi mt gi tr ca
m hin trn mn hnh (khung nhn ).
+ C th biu din kt qu hin th cc th di dng chm bng cch b sung
thm trong cu lnh mt option c tn trace = n (n+1 l s th trong chm).
> animate( plot, [m*x^2,x=-4..4], m=-3..3, trace=7,
frames=50 );
, th t t chuyn ng v kt qu s hin th l:
xem s chuyn
17
+Kt qu :
V d: Tm cc im cc tr ca hm s f ( x ) = x 4 - 4 x 3 + 2 x - 1.
> with(Student[Calculus1]):
f:=x^3-4*x^2+2*x+1;
`Cac diem cuc tri cua ham so:`;ExtremePoints( f,x );
f := x 3 - 4 x 2 + 2 x + 1
Cac diem cuc tri cua ham so:
4
3
10 4
, +
3 3
10
3
2) Tm im ti hn ca hm s.
C php:
> CriticalPoints( f,x,opts );
Trong :
18
V d: Tm cc im ti hn ca hm s y = f ( x ) = x +
1
trn tp xc nh ca
x -1
n.
> with(Student[Calculus1]):
f:=x+1/(x-1);
`Cac diem toi han cua ham so:`;CriticalPoints( f,x );
1
f := x +
x-1
Cac diem toi han cua ham so:
[ 0, 1, 2 ]
V d: Tm cc im ti hn ca hm s y =
x +1
trn tp xc nh ca n.
x2 - x
> with(Student[Calculus1]):
f:=(x+1)/(x^2-x);
`Cac diem toi han cua ham so:`;
CriticalPoints( f,x );
x+1
f := 2
x -x
Cac diem toi han cua ham so:
[ -1 - 2 , 0, 2 - 1, 1 ]
[ 0, 2 - 1, 1 ]
3) im un ca th hm s.
C php:
> InflectionPoints( f,x,opts );
Trong :
19
V d: Tm honh cc im un ca th hm s y = f ( x ) = x 4 - 2 x 2 + 3 .
> with(Student[Calculus1]):
f:=x^4-2*x^2+3;`Hoanh do cac diem uon cua do thi ham so:`;
T:=InflectionPoints( f,x):T;
a:=eval(f,x=op(1,T)):b:=eval(f,x=op(2,T)):
`Toa do cac diem uon`;
{(op(1,T),a)};{(op(2,T),b)};
f := x 4 - 2 x 2 + 3
Hoanh do cac diem uon cua do thi ham so:
3
3
,
3
3
{{
3 22
, }
3 9
3 22
, }
3 9
4) Tip tuyn ca th hm s.
C php:
> Tangent( f,x=c,a..b,opts );
> Tangent( f,c,a..b,opts );
Trong :
- f: l hm s bin s x;
- c: l honh tip im;
- a..b l mt khong cha c.
Nu khng khai bo th Maple s mc nh vi khong a..b = c-1..c+1.
- opts l mt option ; option y c th l: functionoptions, output,
pointoptions, showfunction, showpoint, showtangent, tangentoptions, title,
view.
20
9x 3
+
4
2
`y`=Tangent(f,x=0.5);
PT Tiep tuyen
y = -2.25 x + 1.500
21
5) ng tim cn ca th hm s.
C php:
> Asymptotes( f,x,y,opts );
> Asymptotes( f,x=a..b,y,opts );
> Asymptotes( f,a..b,y,opts );
Trong :
- f: l hm s mt n;
- a..b l khong xc nh ca n x (do ngi dng khai bo_nu cn);
- y: l tn bin (khai bo cho tim cn xin, ngang,)
x2 - 3x + 1
V d: Tm cc ng tim cn ca th hm s y = f ( x ) =
.
x -1
> with(Student[Calculus1]):
Tc:=Asymptotes((x^2-3*x+1)/(x - 1), x):
`Tiem can xien:`=op(1,Tc);
`Tiem can dung:`=op(2,Tc);
Tiem can xien: = ( y = x - 2 )
Tiem can dung: = ( x = 1 )
V d: Tm cc tim cn ca th hm s y = f ( x ) = x 2 + x .
> with(Student[Calculus1]):
f:=sqrt(x^2+x);`------------`;
Tcan:=Asymptotes(f, x);
f := x2 + x
------------
22
V d: Tm cc ng tim cn ca th hm s y =
( 0;5) .
x2 + x + 1
trn khong
2x2 - x - 1
> with(Student[Calculus1]):
f:=(x^2+x+1)/(2*x^2-x-1);`------------`;
Tcan:=Asymptotes(f, x=0..5);
f :=
x2 + x + 1
2 x2 - x - 1
-----------1
Tcan := y = , x = 1
2
23
6) Gi tr nh nht v gi tr ln nht ca hm s.
* Gi tr ln nht ca hm s f:
C php:
> maximize( f,x);
> maximize( f,x=a..b);
* Gi tr nh nht ca hm s f:
24
C php:
V d 1:
Tm gi tr nh nht v gi tr ln nht ca hm s y = x 3 - 3 x 2 - 9 x + 35 trn
on [ -4; 4] v [ 0;5] ?
(Bi tp 3/tr23_SGK Gii tch 12, Th im , B 2)
+ Nhp biu thc ca hm s vo Maple:
> y:=x^3-3*x^2-9*x+35;
y := x3 - 3 x2 - 9 x + 35
+ Gi tr nh nht ca hm s trn on [ 0; 5] :
> minimize(y,x=0..5);
8
+ Gi tr ln nht ca hm s trn on [ 0; 5] :
> maximize(y,x=0..5);
40
25
2
vi x > 1.
x -1
Kt qu l min x +
= 2 2 + 1 , t c ti x = 2 + 1 .
x >1
x -1
V d 3:
Tm gi tr nh nht v gi tr ln nht ca biu thc A = x - 1 + 4 - x .
(Bi tp 17/tr112 _ SGK S 10 nng cao)
+ Nhn xt: tp xc nh ca biu thc l on [1; 4] .
> A:=sqrt(x-1)+sqrt(4-x);
`gtnn`:=minimize(A,x=1..4,location);
`gtln`:=maximize(A,x=1..4,location);
A := x - 1 + 4 - x
gtnn := 3 , { [ { x = 1 }, 3 ], [ { x = 4 }, 3 ] }
gtln := 2
5
3 , { { x = }, 2
2
3 }
3 t c khi x = 1 hoc x = 4 ;
2 3 = 6 t c khi x = 5 .
2
26