Practical File (3rd Semester)
Practical File (3rd Semester)
Limits by definition
Theory : Let f(x) be any function and L any number.The number L
is called the limit of the function f at the point x = a, if for a given ϵ
>0,there can be found a δ > 0, such that for all x satisfying 0<|x-
a|<δ, the inequality |f(x) -l|<ϵ holds.
In[217]:= f[x_] := x + 1;
a = 4;
L = 5;
ϵ = 0.01;
δ = 0.2;
Forx = a + δ, (x > a) && Abs[f[x] - L] > ϵ, x = x - 0.005, δ = δ - 0.005;
Print["x = ", x , " |f[x]-L| = ", N[Abs[f[x] - L]], " δ = ", δ]
Print["Required Value of delta = ", δ];
x = 4.2 |f[x]-L| = 0.2 δ = 0.195
In[224]:= ClearAll
f[x_] := x + 1 ;
a = 0;
L = 1;
ϵ = 0.1;
δ = 1;
Forx = a + δ, (x > a) && Abs[f[x] - L] > ϵ, x = x - 0.005, δ = δ - 0.005;
Print["x = ", x, " |f[x]-L|=", N[Abs[f[x] - L]] , " δ=", δ]
Print["Required value of δ = ", δ];
Out[224]= ClearAll
x = 1 |f[x]-L|=0.414214 δ=0.995
In[239]:= f[x_] := x ^ 2;
a = - 2;
L = 4;
ϵ = 0.5;
δ = 1;
Forx = a + δ, (x > a) && Abs[f[x] - L] > ϵ, x = x - 0.02, δ = δ - 0.02;
Print["x = ", x, " |f[x]-L|= ", N[Abs[f[x] - L]], " δ = ", δ]
Print["Required Valueof delta = ", δ]
8 0677 Practical -1.nb
x = -1 |f[x]-L|= 3. δ = 0.98
In[279]:= f[x_]; = 1 x;
a = - 1;
ϵ = 0.1;
L = - 1;
δ = 0.95;
Forx = a + δ, (x > a) && Abs[f[x] - L] > ϵ, x = x - 0.005, δ = δ - 0.005;
Print[" x = ", x, "|f[x]-L|= " , N[Abs[f[x] - L]], " δ = ", δ]
Print["Required Value of delta = ", δ];
Solution:
In[1]:= f[x_] := 1 x;
LHL = Limit[f[x], x → 0, Direction → 1]
RHL = Limit[f[x], x → 0, Direction → - 1]
If[LHL ⩵ RHL, Print["Limit of the function exists and is ", LHL],
Print["Limit of the function does not exist."]]
Plot[f[x], {x, - 0.001, 0.001}]
TableFormTablex, 1 x, {x, - 0.1, - 0.001, 0.005}, TableHeadings → None, x, 1 x
TableFormTablex, 1 x, {x, 0.1, 0.001, - 0.005}, TableHeadings → None, x, 1 x
Out[2]= -∞
Out[3]= ∞
10 000
5000
Out[5]=
-0.0010 -0.0005 0.0005 0.0010
-5000
-10 000
2 0677 Practical-2.nb
Out[6]//TableForm=
1
x
x
- 0.1 - 10.
- 0.095 - 10.5263
- 0.09 - 11.1111
- 0.085 - 11.7647
- 0.08 - 12.5
- 0.075 - 13.3333
- 0.07 - 14.2857
- 0.065 - 15.3846
- 0.06 - 16.6667
- 0.055 - 18.1818
- 0.05 - 20.
- 0.045 - 22.2222
- 0.04 - 25.
- 0.035 - 28.5714
- 0.03 - 33.3333
- 0.025 - 40.
- 0.02 - 50.
- 0.015 - 66.6667
- 0.01 - 100.
- 0.005 - 200.
Out[7]//TableForm=
1
x
x
0.1 10.
0.095 10.5263
0.09 11.1111
0.085 11.7647
0.08 12.5
0.075 13.3333
0.07 14.2857
0.065 15.3846
0.06 16.6667
0.055 18.1818
0.05 20.
0.045 22.2222
0.04 25.
0.035 28.5714
0.03 33.3333
0.025 40.
0.02 50.
0.015 66.6667
0.01 100.
0.005 200.
0677 Practical-2.nb 3
Solution:
In[8]:= f[x_] := - 1 x;
LHL = Limit[f[x], x → 0, Direction → 1]
RHL = Limit[f[x], x → 0, Direction → - 1]
If[LHL == RHL, Print["Limit of the function exists and is", LHL],
Print["Limit of the function does not exist."]]
Plot[f[x], {x, - 0.001, 0.001}]
TableFormTablex, - 1 x, {x, - 0.1, - 0.001, 0.005},
TableHeadings → None, x, - 1 x
TableFormTablex, - 1 x, {x, 0.1, 0.001, - 0.005}, TableHeadings → None, x, - 1 x
Out[9]= ∞
Out[10]= -∞
10 000
5000
Out[12]=
-0.0010 -0.0005 0.0005 0.0010
-5000
-10 000
4 0677 Practical-2.nb
Out[13]//TableForm=
x -1
x
- 0.1 10.
- 0.095 10.5263
- 0.09 11.1111
- 0.085 11.7647
- 0.08 12.5
- 0.075 13.3333
- 0.07 14.2857
- 0.065 15.3846
- 0.06 16.6667
- 0.055 18.1818
- 0.05 20.
- 0.045 22.2222
- 0.04 25.
- 0.035 28.5714
- 0.03 33.3333
- 0.025 40.
- 0.02 50.
- 0.015 66.6667
- 0.01 100.
- 0.005 200.
Out[14]//TableForm=
x -1
x
0.1 - 10.
0.095 - 10.5263
0.09 - 11.1111
0.085 - 11.7647
0.08 - 12.5
0.075 - 13.3333
0.07 - 14.2857
0.065 - 15.3846
0.06 - 16.6667
0.055 - 18.1818
0.05 - 20.
0.045 - 22.2222
0.04 - 25.
0.035 - 28.5714
0.03 - 33.3333
0.025 - 40.
0.02 - 50.
0.015 - 66.6667
0.01 - 100.
0.005 - 200.
0677 Practical-2.nb 5
Question : 3. f(x)=Sin(1/x)
Solution:
Out[17]= Indeterminate
Out[18]= If[Indeterminate ⩵ Indeterminate, Print[Limit of the function exits and is, LHL],
Print[Limit of the function does not exist.]]
1.0
0.5
Out[19]=
-0.010 -0.005 0.005 0.010
-0.5
-1.0
6 0677 Practical-2.nb
Out[20]//TableForm=
x Sin 1
x
- 0.1 0.544021
- 0.095 0.891904
- 0.09 0.993333
- 0.085 0.718515
- 0.08 0.0663219
- 0.075 - 0.693952
- 0.07 - 0.988987
- 0.065 - 0.317743
- 0.06 0.818447
- 0.055 0.619211
- 0.05 - 0.912945
- 0.045 0.229023
- 0.04 0.132352
- 0.035 0.292743
- 0.03 - 0.94053
- 0.025 - 0.745113
- 0.02 0.262375
- 0.015 0.639018
- 0.01 0.506366
- 0.005 0.873297
Out[21]//TableForm=
x Sin 1
x
0.1 - 0.544021
0.095 - 0.891904
0.09 - 0.993333
0.085 - 0.718515
0.08 - 0.0663219
0.075 0.693952
0.07 0.988987
0.065 0.317743
0.06 - 0.818447
0.055 - 0.619211
0.05 0.912945
0.045 - 0.229023
0.04 - 0.132352
0.035 - 0.292743
0.03 0.94053
0.025 0.745113
0.02 - 0.262375
0.015 - 0.639018
0.01 - 0.506366
0.005 - 0.873297
0677 Practical-2.nb 7
Solution:
Out[24]= Indeterminate
Out[25]= If[Indeterminate ⩵ Indeterminate, Print[Limit of the function exists and is, LHL],
Print[Limit of the function does not exist.]]
1.0
0.5
Out[26]=
-0.010 -0.005 0.005 0.010
-0.5
-1.0
8 0677 Practical-2.nb
Out[27]//TableForm=
x Cos 1
x
- 0.1 - 0.839072
- 0.095 - 0.452225
- 0.09 0.11528
- 0.085 0.695512
- 0.08 0.997798
- 0.075 0.720022
- 0.07 - 0.148002
- 0.065 - 0.948177
- 0.06 - 0.574582
- 0.055 0.785224
- 0.05 0.408082
- 0.045 - 0.973421
- 0.04 0.991203
- 0.035 - 0.956191
- 0.03 - 0.339712
- 0.025 - 0.666938
- 0.02 0.964966
- 0.015 - 0.769192
- 0.01 0.862319
- 0.005 0.487188
Out[28]//TableForm=
x Cos 1
x
0.1 - 0.839072
0.095 - 0.452225
0.09 0.11528
0.085 0.695512
0.08 0.997798
0.075 0.720022
0.07 - 0.148002
0.065 - 0.948177
0.06 - 0.574582
0.055 0.785224
0.05 0.408082
0.045 - 0.973421
0.04 0.991203
0.035 - 0.956191
0.03 - 0.339712
0.025 - 0.666938
0.02 0.964966
0.015 - 0.769192
0.01 0.862319
0.005 0.487188
0677 Practical-2.nb 9
Solution:
Out[31]= 0
0.010
0.005
Out[33]=
-0.010 -0.005 0.005 0.010
-0.005
-0.010
10 0677 Practical-2.nb
Out[34]//TableForm=
x x Cos 1
x
- 0.1 0.0839072
- 0.095 0.0429614
- 0.09 - 0.0103752
- 0.085 - 0.0591185
- 0.08 - 0.0798239
- 0.075 - 0.0540016
- 0.07 0.0103601
- 0.065 0.0616315
- 0.06 0.0344749
- 0.055 - 0.0431873
- 0.05 - 0.0204041
- 0.045 0.0438039
- 0.04 - 0.0396481
- 0.035 0.0334667
- 0.03 0.0101914
- 0.025 0.0166735
- 0.02 - 0.0192993
- 0.015 0.0115379
- 0.01 - 0.00862319
- 0.005 - 0.00243594
Out[35]//TableForm=
x x Cos 1
x
0.1 - 0.0839072
0.095 - 0.0429614
0.09 0.0103752
0.085 0.0591185
0.08 0.0798239
0.075 0.0540016
0.07 - 0.0103601
0.065 - 0.0616315
0.06 - 0.0344749
0.055 0.0431873
0.05 0.0204041
0.045 - 0.0438039
0.04 0.0396481
0.035 - 0.0334667
0.03 - 0.0101914
0.025 - 0.0166735
0.02 0.0192993
0.015 - 0.0115379
0.01 0.00862319
0.005 0.00243594
0677 Practical-2.nb 11
Solution:
Out[38]= 0
0.010
0.005
Out[40]=
-0.010 -0.005 0.005 0.010
-0.005
-0.010
12 0677 Practical-2.nb
Out[41]//TableForm=
x x Sin 1
x
- 0.1 - 0.0544021
- 0.095 - 0.0847309
- 0.09 - 0.0894
- 0.085 - 0.0610738
- 0.08 - 0.00530575
- 0.075 0.0520464
- 0.07 0.0692291
- 0.065 0.0206533
- 0.06 - 0.0491068
- 0.055 - 0.0340566
- 0.05 0.0456473
- 0.045 - 0.010306
- 0.04 - 0.00529407
- 0.035 - 0.010246
- 0.03 0.0282159
- 0.025 0.0186278
- 0.02 - 0.0052475
- 0.015 - 0.00958527
- 0.01 - 0.00506366
- 0.005 - 0.00436649
Out[42]//TableForm=
x x Sin 1
x
0.1 - 0.0544021
0.095 - 0.0847309
0.09 - 0.0894
0.085 - 0.0610738
0.08 - 0.00530575
0.075 0.0520464
0.07 0.0692291
0.065 0.0206533
0.06 - 0.0491068
0.055 - 0.0340566
0.05 0.0456473
0.045 - 0.010306
0.04 - 0.00529407
0.035 - 0.010246
0.03 0.0282159
0.025 0.0186278
0.02 - 0.0052475
0.015 - 0.00958527
0.01 - 0.00506366
0.005 - 0.00436649
0677 Practical-2.nb 13
Solution:
Out[45]= 0
0.00005
Out[47]=
-0.010 -0.005 0.005 0.010
-0.00005
-0.00010
14 0677 Practical-2.nb
Out[48]//TableForm=
x x2 Sin 1
x
- 0.1 - 0.0544021
- 0.095 - 0.0847309
- 0.09 - 0.0894
- 0.085 - 0.0610738
- 0.08 - 0.00530575
- 0.075 0.0520464
- 0.07 0.0692291
- 0.065 0.0206533
- 0.06 - 0.0491068
- 0.055 - 0.0340566
- 0.05 0.0456473
- 0.045 - 0.010306
- 0.04 - 0.00529407
- 0.035 - 0.010246
- 0.03 0.0282159
- 0.025 0.0186278
- 0.02 - 0.0052475
- 0.015 - 0.00958527
- 0.01 - 0.00506366
- 0.005 - 0.00436649
Out[49]//TableForm=
x x2 Sin 1
x
0.1 - 0.0544021
0.095 - 0.0847309
0.09 - 0.0894
0.085 - 0.0610738
0.08 - 0.00530575
0.075 0.0520464
0.07 0.0692291
0.065 0.0206533
0.06 - 0.0491068
0.055 - 0.0340566
0.05 0.0456473
0.045 - 0.010306
0.04 - 0.00529407
0.035 - 0.010246
0.03 0.0282159
0.025 0.0186278
0.02 - 0.0052475
0.015 - 0.00958527
0.01 - 0.00506366
0.005 - 0.00436649
0677 Practical-2.nb 15
Solution:
Out[52]= ∞
800 000
600 000
200 000
Out[55]//TableForm=
1
x
x2
- 0.1 100.
- 0.095 110.803
- 0.09 123.457
- 0.085 138.408
- 0.08 156.25
- 0.075 177.778
- 0.07 204.082
- 0.065 236.686
- 0.06 277.778
- 0.055 330.579
- 0.05 400.
- 0.045 493.827
- 0.04 625.
- 0.035 816.327
- 0.03 1111.11
- 0.025 1600.
- 0.02 2500.
- 0.015 4444.44
- 0.01 10 000.
- 0.005 40 000.
Out[56]//TableForm=
1
x
x2
0.1 100.
0.095 110.803
0.09 123.457
0.085 138.408
0.08 156.25
0.075 177.778
0.07 204.082
0.065 236.686
0.06 277.778
0.055 330.579
0.05 400.
0.045 493.827
0.04 625.
0.035 816.327
0.03 1111.11
0.025 1600.
0.02 2500.
0.015 4444.44
0.01 10 000.
0.005 40 000.
0677 Practical-2.nb 17
Solution:
Out[59]= ∞
5 × 107
Out[61]=
-0.010 -0.005 0.005 0.010
-5 × 107
-1 × 108
18 0677 Practical-2.nb
Out[62]//TableForm=
1
x
x3
- 0.1 - 1000.
- 0.095 - 1166.35
- 0.09 - 1371.74
- 0.085 - 1628.33
- 0.08 - 1953.12
- 0.075 - 2370.37
- 0.07 - 2915.45
- 0.065 - 3641.33
- 0.06 - 4629.63
- 0.055 - 6010.52
- 0.05 - 8000.
- 0.045 - 10 973.9
- 0.04 - 15 625.
- 0.035 - 23 323.6
- 0.03 - 37 037.
- 0.025 - 64 000.
- 0.02 - 125 000.
- 0.015 - 296 296.
- 0.01 - 1. × 106
- 0.005 - 8. × 106
Out[63]//TableForm=
1
x
x3
0.1 1000.
0.095 1166.35
0.09 1371.74
0.085 1628.33
0.08 1953.12
0.075 2370.37
0.07 2915.45
0.065 3641.33
0.06 4629.63
0.055 6010.52
0.05 8000.
0.045 10 973.9
0.04 15 625.
0.035 23 323.6
0.03 37 037.
0.025 64 000.
0.02 125 000.
0.015 296 296.
0.01 1. × 106
0.005 8. × 106
0677 Practical-2.nb 19
Solution:
Out[66]= ∞
2.5 × 1011
2.0 × 1011
1.5 × 1011
Out[68]=
1.0 × 1011
5.0 × 1010
Out[69]//TableForm=
1
x
x4
- 0.1 10 000.
- 0.095 12 277.4
- 0.09 15 241.6
- 0.085 19 156.9
- 0.08 24 414.1
- 0.075 31 604.9
- 0.07 41 649.3
- 0.065 56 020.4
- 0.06 77 160.5
- 0.055 109 282.
- 0.05 160 000.
- 0.045 243 865.
- 0.04 390 625.
- 0.035 666 389.
- 0.03 1.23457 × 106
- 0.025 2.56 × 106
- 0.02 6.25 × 106
- 0.015 1.97531 × 107
- 0.01 1. × 108
- 0.005 1.6 × 109
Out[70]//TableForm=
1
x
x4
0.1 10 000.
0.095 12 277.4
0.09 15 241.6
0.085 19 156.9
0.08 24 414.1
0.075 31 604.9
0.07 41 649.3
0.065 56 020.4
0.06 77 160.5
0.055 109 282.
0.05 160 000.
0.045 243 865.
0.04 390 625.
0.035 666 389.
0.03 1.23457 × 106
0.025 2.56 × 106
0.02 6.25 × 106
0.015 1.97531 × 107
0.01 1. × 108
0.005 1.6 × 109
0677 Practical-2.nb 21
Solution:
Out[73]= ∞
5 × 1012
Out[75]=
-0.010 -0.005 0.005 0.010
-5 × 1012
22 0677 Practical-2.nb
Out[76]//TableForm=
1
x
x5
- 0.1 - 100 000.
- 0.095 - 129 236.
- 0.09 - 169 351.
- 0.085 - 225 375.
- 0.08 - 305 176.
- 0.075 - 421 399.
- 0.07 - 594 990.
- 0.065 - 861 853.
- 0.06 - 1.28601 × 106
- 0.055 - 1.98695 × 106
- 0.05 - 3.2 × 106
- 0.045 - 5.41923 × 106
- 0.04 - 9.76562 × 106
- 0.035 - 1.90397 × 107
- 0.03 - 4.11523 × 107
- 0.025 - 1.024 × 108
- 0.02 - 3.125 × 108
- 0.015 - 1.31687 × 109
- 0.01 - 1. × 1010
- 0.005 - 3.2 × 1011
Out[77]//TableForm=
1
x
x5
0.1 100 000.
0.095 129 236.
0.09 169 351.
0.085 225 375.
0.08 305 176.
0.075 421 399.
0.07 594 990.
0.065 861 853.
0.06 1.28601 × 106
0.055 1.98695 × 106
0.05 3.2 × 106
0.045 5.41923 × 106
0.04 9.76562 × 106
0.035 1.90397 × 107
0.03 4.11523 × 107
0.025 1.024 × 108
0.02 3.125 × 108
0.015 1.31687 × 109
0.01 1. × 1010
0.005 3.2 × 1011
0677 Practical-2.nb 23
Solution:
Out[80]= Indeterminate
500
Out[82]=
-0.010 -0.005 0.005 0.010
-500
24 0677 Practical-2.nb
Out[83]//TableForm=
1
Sin
x x
x
- 0.1 - 5.44021
- 0.095 - 9.38846
- 0.09 - 11.037
- 0.085 - 8.45312
- 0.08 - 0.829024
- 0.075 9.25269
- 0.07 14.1284
- 0.065 4.88835
- 0.06 - 13.6408
- 0.055 - 11.2584
- 0.05 18.2589
- 0.045 - 5.08939
- 0.04 - 3.30879
- 0.035 - 8.3641
- 0.03 31.351
- 0.025 29.8045
- 0.02 - 13.1187
- 0.015 - 42.6012
- 0.01 - 50.6366
- 0.005 - 174.659
Out[84]//TableForm=
1
Sin
x x
x
0.1 - 5.44021
0.095 - 9.38846
0.09 - 11.037
0.085 - 8.45312
0.08 - 0.829024
0.075 9.25269
0.07 14.1284
0.065 4.88835
0.06 - 13.6408
0.055 - 11.2584
0.05 18.2589
0.045 - 5.08939
0.04 - 3.30879
0.035 - 8.3641
0.03 31.351
0.025 29.8045
0.02 - 13.1187
0.015 - 42.6012
0.01 - 50.6366
0.005 - 174.659
0677 Practical-2.nb 25
Solution:
Out[164]= 0
-0.2
-0.4
Out[166]=
-0.6
-0.8
-1.0
26 0677 Practical-2.nb
Out[167]//TableForm=
x Floor[x]
- 0.1 -1
- 0.095 -1
- 0.09 -1
- 0.085 -1
- 0.08 -1
- 0.075 -1
- 0.07 -1
- 0.065 -1
- 0.06 -1
- 0.055 -1
- 0.05 -1
- 0.045 -1
- 0.04 -1
- 0.035 -1
- 0.03 -1
- 0.025 -1
- 0.02 -1
- 0.015 -1
- 0.01 -1
- 0.005 -1
Out[168]//TableForm=
x Floor[x]
0.1 0
0.095 0
0.09 0
0.085 0
0.08 0
0.075 0
0.07 0
0.065 0
0.06 0
0.055 0
0.05 0
0.045 0
0.04 0
0.035 0
0.03 0
0.025 0
0.02 0
0.015 0
0.01 0
0.005 0
Practical-3
Discuss the limits of the function f(x)
when x tends to infinity
Q-1. f(x)= e1/x
1.10
1.05
Out[7]= 1.00
0.95
0.90
Out[8]//TableForm=
1
x ⅇx
1 2.71828
101 1.00995
201 1.00499
301 1.00333
401 1.0025
501 1.002
601 1.00167
701 1.00143
801 1.00125
901 1.00111
1001 1.001
1101 1.00091
2 0677 Practical-3.nb
1201 1.00083
1301 1.00077
1401 1.00071
1501 1.00067
1601 1.00062
1701 1.00059
1801 1.00056
1901 1.00053
2001 1.0005
2101 1.00048
2201 1.00045
2301 1.00043
2401 1.00042
2501 1.0004
2601 1.00038
2701 1.00037
2801 1.00036
2901 1.00034
3001 1.00033
3101 1.00032
3201 1.00031
3301 1.0003
3401 1.00029
3501 1.00029
3601 1.00028
3701 1.00027
3801 1.00026
3901 1.00026
4001 1.00025
4101 1.00024
4201 1.00024
4301 1.00023
4401 1.00023
4501 1.00022
4601 1.00022
4701 1.00021
4801 1.00021
4901 1.0002
5001 1.0002
5101 1.0002
5201 1.00019
5301 1.00019
5401 1.00019
5501 1.00018
5601 1.00018
5701 1.00018
5801 1.00017
5901 1.00017
6001 1.00017
6101 1.00016
6201 1.00016
6301 1.00016
6401 1.00016
6501 1.00015
6601 1.00015
6701 1.00015
6801 1.00015
6901 1.00014
7001 1.00014
7101 1.00014
0677 Practical-3.nb 3
7201 1.00014
7301 1.00014
7401 1.00014
7501 1.00013
7601 1.00013
7701 1.00013
7801 1.00013
7901 1.00013
8001 1.00012
8101 1.00012
8201 1.00012
8301 1.00012
8401 1.00012
8501 1.00012
8601 1.00012
8701 1.00011
8801 1.00011
8901 1.00011
9001 1.00011
9101 1.00011
9201 1.00011
9301 1.00011
9401 1.00011
9501 1.00011
9601 1.0001
9701 1.0001
9801 1.0001
9901 1.0001
1.0
0.5
Out[58]=
-1.0 -0.5 0.5 1.0
-0.5
-1.0
Out[59]//TableForm=
x Sin 1
x
1 0.841471
4 0677 Practical-3.nb
101 0.00990083
201 0.0049751
301 0.00332225
401 0.00249376
501 0.00199601
601 0.00166389
701 0.00142653
801 0.00124844
901 0.00110988
1001 0.000999001
1101 0.000908265
1201 0.000832639
1301 0.000768639
1401 0.000713776
1501 0.000666222
1601 0.00062461
1701 0.000587889
1801 0.000555247
1901 0.000526039
2001 0.00049975
2101 0.000475964
2201 0.000454339
2301 0.000434594
2401 0.000416493
2501 0.00039984
2601 0.000384468
2701 0.000370233
2801 0.000357015
2901 0.000344709
3001 0.000333222
3101 0.000322477
3201 0.000312402
3301 0.000302938
3401 0.000294031
3501 0.000285633
3601 0.000277701
3701 0.000270197
3801 0.000263089
3901 0.000256345
4001 0.000249938
4101 0.000243843
4201 0.000238039
4301 0.000232504
4401 0.000227221
4501 0.000222173
4601 0.000217344
4701 0.000212721
4801 0.00020829
4901 0.00020404
5001 0.00019996
5101 0.00019604
5201 0.000192271
5301 0.000188644
5401 0.000185151
5501 0.000181785
5601 0.00017854
5701 0.000175408
5801 0.000172384
5901 0.000169463
6001 0.000166639
0677 Practical-3.nb 5
6101 0.000163908
6201 0.000161264
6301 0.000158705
6401 0.000156226
6501 0.000153822
6601 0.000151492
6701 0.000149231
6801 0.000147037
6901 0.000144907
7001 0.000142837
7101 0.000140825
7201 0.00013887
7301 0.000136968
7401 0.000135117
7501 0.000133316
7601 0.000131562
7701 0.000129853
7801 0.000128189
7901 0.000126566
8001 0.000124984
8101 0.000123442
8201 0.000121936
8301 0.000120467
8401 0.000119033
8501 0.000117633
8601 0.000116266
8701 0.000114929
8801 0.000113623
8901 0.000112347
9001 0.000111099
9101 0.000109878
9201 0.000108684
9301 0.000107515
9401 0.000106372
9501 0.000105252
9601 0.000104156
9701 0.000103082
9801 0.00010203
9901 0.000101
ex
Q-3. f(x)= x
10
Out[74]=
-5
-10
Out[75]//TableForm=
ⅇx
x
x
1 2.71828
101 7.23471 × 1041
201 9.77226 × 1084
301 1.75417 × 10128
401 3.53951 × 10171
501 7.61549 × 10214
601 1.70651 × 10258
701 3.93291 × 10301
801 9.25225275523894 × 10344
901 2.211074642025580 × 10388
0677 Practical-3.nb 7
0.5
Out[62]=
-1.0 -0.5 0.5 1.0
-0.5
Out[63]//TableForm=
x x2 Sin 1
x
1 0.841471
101 100.998
201 200.999
301 300.999
401 401.
501 501.
601 601.
701 701.
801 801.
901 901.
In[80]:=
Practical-4
Discuss the continuity of the functions
Question: 1. f(x)=1/x at x=0.
Out[ ]= ∞
Out[ ]=
-2 -1 1 2
-2
-4
-6
2 0677 Practical-4.nb
Out[ ]= -∞
Out[ ]=
-2 -1 1 2
-2
-4
-6
0677 Practical-4.nb 3
Out[ ]= Indeterminate
1.0
0.5
Out[ ]=
-2 -1 1 2
-0.5
-1.0
4 0677 Practical-4.nb
Out[ ]= Indeterminate
1.0
0.5
Out[ ]=
-2 -1 1 2
-0.5
-1.0
0677 Practical-4.nb 5
Out[ ]= 0
Out[ ]= If[0 ⩵ f[0] && 0 ⩵ f[0], Print[Given function is continuous at x=, a],
Print[Given function is discontinuous at x= a]]
1.0
0.8
0.6
Out[ ]=
0.4
0.2
-2 -1 1 2
-0.2
6 0677 Practical-4.nb
Out[ ]= 0
Out[ ]= If[0 ⩵ f[0] && 0 ⩵ f[0], Print[Given function is continuous at x=, a],
Print[Given function is discontinuous at x=, a]]
1.5
1.0
0.5
Out[ ]=
-2 -1 1 2
-0.5
-1.0
-1.5
0677 Practical-4.nb 7
Out[ ]= 0
Out[ ]= If[0 ⩵ f[0] && 0 ⩵ f[0], Print[Given function is continuous at x=, a],
Print[Given function is discontinuous at x=, a]]
Out[ ]=
-2 -1 1 2
-1
-2
8 0677 Practical-4.nb
Out[ ]= Indeterminate
Out[ ]= 1
-2 -1 1 2
-1
Practical-5
Rolle’s theorem
Question: 1. Illustrate the geometric meaning of the rolle’s
theorem of the following functions on the given intervals:
A. x^3-4x on [-2,2]
Out[ ]= - 4 + 3 x2
Out[ ]=
-2 -1 1 2
-1
-2
-3
2 0677 Practical-5.nb
B. (x-3)^4(x-5)^3 on [3,5]
-0.2
-0.4
Out[ ]=
-0.6
-0.8
-1.0
Practical-6
Lagrange’s Mean value theorem
Question: 1. Illustrate the geometric meaning of lagrange’s mean
value theorem of the following function on the given intervals:
1. Log[x] on [1/2,2]
Solution :
-1
Out[ ]= Log[x]
-2
-3
2 0677 Practical-6.nb
1.0
0.5
f[x]
Out[ ]= line[x]
0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 tangent[x]
-0.5
0677 Practical-6.nb 3
2. x(x-1)(x-2) on [0,1/2]
Solution :
In[33]:= ClearAll
g[x_] := x x - 1 x - 2;
D[g[x], x]
g1 2 - g[0]
NSolveg '[x] ==
12-0
Plotg[x], x, 0, 1 2, PlotStyle → Thick, PlotLegends → " x(x-1)(x-2)"
line[x_] := g[0] + g1 2 - g[0] 1 2 - 0 x - 0;
tangent[x_] := g[0.236237] + g '[0.236237] x - 0.236237;
Plot{g[x], line[x], tangent[x]}, x, 0, 1 2,
PlotStyle → {{Blue, Thick}, {Red, Thick}, {Green, Thick}},
PlotLegends → {"g[x]", "line[x]", "tangent[x]"}
Out[33]= ClearAll
Out[35]= - 2 + x - 1 + x + - 2 + x x + - 1 + x x
0.4
0.3
0.1
0.5
0.4
0.3
g[x]
Out[40]= line[x]
0.2 tangent[x]
0.1
Out[ ]= -7 + 4 x
25
20
10
5
2.5 3.0 3.5 4.0 4.5 5.0
6 0677 Practical-6.nb
25
20
15 f[x]
Out[ ]= line[x]
10 tangent[x]
Sol.
In[ ]:= Plot3D[10 - x ^ 2 - y ^ 2, {x, - 3, 3}, {y, - 3, 3}]
Out[ ]=
2 Practical-7 [3rd semester].nb
Out[ ]=
Out[ ]=
Practical-7 [3rd semester].nb 3
In[ ]:= ContourPlot10 - x ^ 2 - y ^ 2, {x, - 3, 3}, {y, - 3, 3}, Contours → {1, 6, 9},
ContourStyle → {{Red, Thickness[0.01]}, {Green , Thickness[0.001]}, {Blue, Thick}},
ContourShading → False, ContourLabels → Text[Style[#3, 20], {#1, #2}] &
3
9
1
Out[ ]=
0
-1
6
-2
-3
-3 -2 -1 0 1 2 3
4 Practical-7 [3rd semester].nb
Sol.
In[ ]:= Plot3D[x ^ 2 + y ^ 2, {x, - 4, 4}, {y, - 4, 4}]
Out[ ]=
Out[ ]=
Practical-7 [3rd semester].nb 5
Out[ ]=
6 Practical-7 [3rd semester].nb
In[ ]:= ContourPlotx ^ 2 + y ^ 2, {x, - 4, 4}, {y, - 4, 4}, Contours → {1, 6, 9},
ContourStyle → {{Red, Thickness[0.01]}, {Green , Thickness[0.009]}, {Blue, Thick}},
ContourShading → False, ContourLabels → Text[Style[#3, 20], {#1, #2}] &
4
0
6
Out[ ]=
-2
-4
-4 -2 0 2 4
Sol.
In[ ]:= Plot3D[x ^ 3 - y, {x, - 3, 3}, {y, - 3, 3}]
Out[ ]=
Practical-7 [3rd semester].nb 7
Out[ ]=
Out[ ]=
8 Practical-7 [3rd semester].nb
Out[1]=
0
-1
-2
-3 1 6
-3 -2 -1 0 1 2 3
Sol.
In[ ]:= Plot3Dx ^ 2 + y ^ 2 4, {x, - 5, 5}, {y, - 5, 5}
Out[ ]=
Practical-7 [3rd semester].nb 9
Out[ ]=
Out[ ]=
10 Practical-7 [3rd semester].nb
In[ ]:= ContourPlotx ^ 2 + y ^ 2 4, {x, - 6, 6}, {y, - 6, 6}, Contours → {1, 5, 8},
ContourStyle → {{Red, Thickness[0.01]}, {Blue, Thick}, {Green, Thick}},
ContourShading → False, ContourLabels → Text[Style[#3, 20], {#1, #2}] &
6
4
5
Out[ ]=
0
-2 1
-4
-6
8
-6 -4 -2 0 2 4 6
Sol.
In[ ]:= Plot3D[4 x ^ 2 + y ^ 2, {x, - 5, 5}, {y, - 5, 5}]
Out[ ]=
Practical-7 [3rd semester].nb 11
Out[ ]=
Out[ ]=
12 Practical-7 [3rd semester].nb
In[ ]:= ContourPlot4 x ^ 2 + y ^ 2, {x, - 5, 5}, {y, - 5, 5}, Contours → {0, 6, 9},
ContourStyle → {{Yellow, Thick}, {Blue, Thick}, {Red, Thick}},
ContourShading → False, ContourLabels → Text[Style[#3, 20], {#1, #2}] &
9
2
Out[ ]=
0
-2
-4
-4 -2 0 2 4
Practical-8
Question :- Draw the following surfaces and discuss whether limit
exists or not as (x,y) approaches to given points. Find the limit, if it
exists:
x+ y
(1) f (x, y) = x-y ; (x,y)→(0,0) and (x,y)→(1,3)
Solution:
In[ ]:= f[x_, y_] := (x + y) / (x - y)
Plot3D[f[x, y], {x, - 1, 1}, {y, - 1, 1}, PlotPoints → 40]
ContourPlot[f[x, y], {x, - 1, 1}, {y, - 1, 1}, PlotPoints → 40, ContourShading → True]
Limit[f[x, y], {x → 0, y → 0}]
Limit[f[x, m x], {x → 0}]
Limit[f[x, m x], {x → 1}]
Out[ ]=
2 677 Practical-8.nb
1.0
0.5
0.0
Out[ ]=
-0.5
-1.0
-1.0 -0.5 0.0 0.5 1.0
Out[ ]= 1
1+m
Out[ ]=
1-m
1+m
Out[ ]=
1-m
Observation: The limit depends on “m” hence, limit does not exist.
x- y
(2) f (x, y) = ;(x,y)→(0,0) and (x,y)→(2,1)
x2+y2
Solution:
x-y
In[ ]:= f[x_, y_] :=
x 2 + y2
Plot3D[f[x, y], {x, - 1, 1}, {y, - 1, 1}, PlotPoints → 40]
ContourPlot[f[x, y], {x, - 1, 1}, {y, - 1, 1}, PlotPoints → 40, ContourShading → True]
Limit[f[x, y], {x → 0, y → 0}]
Limit[f[x, m x], {x → 0}]
Limit[f[x, m x], {x → 2}]
677 Practical-8.nb 3
Out[ ]=
1.0
0.5
0.0
Out[ ]=
-0.5
-1.0
-1.0 -0.5 0.0 0.5 1.0
Out[ ]= Indeterminate
Out[ ]= Indeterminate
1-m
Out[ ]=
1 + m2
4 677 Practical-8.nb
Observation: The limit depends on “m” hence, limit does not exist.
Solution:
In[ ]:= f[x_, y_] := (x + y) ⅇ ^ (x y)
Plot3D[f[x, y], {x, - 1, 1}, {y, - 1, 1}, PlotPoints → 40]
ContourPlot[f[x, y], {x, - 1, 1}, {y, - 1, 1}, PlotPoints → 40, ContourShading → True]
Limit[f[x, y], {x → 1, y → 1}]
Limit[f[x, m x], {x → 1}]
Limit[f[x, m x], {x → 1}]
Out[ ]=
677 Practical-8.nb 5
1.0
0.5
0.0
Out[ ]=
-0.5
-1.0
-1.0 -0.5 0.0 0.5 1.0
Out[ ]= 2ⅇ
Out[ ]= ⅇm 1 + m
Out[ ]= ⅇm 1 + m
6 677 Practical-8.nb
Observation: The limit depends on “m” hence, limit does not exist.
Solution:
In[ ]:= f[x_, y_] := ⅇ ^ (x y)
Plot3D[f[x, y], {x, - 1, 1}, {y, - 1, 1}, PlotPoints → 40]
ContourPlot[f[x, y], {x, - 1, 1}, {y, - 1, 1}, PlotPoints → 40, ContourShading → True]
Limit[f[x, y], {x → 0, y → 0}]
Limit[f[x, m x], {x → 0}]
Limit[f[x, m x], {x → 1}]
Out[ ]=
677 Practical-8.nb 7
1.0
0.5
0.0
Out[ ]=
-0.5
-1.0
-1.0 -0.5 0.0 0.5 1.0
Out[ ]= 1
Out[ ]= 1
Out[ ]= ⅇm
8 677 Practical-8.nb
Observation: The limit depends on “m” hence, limit does not exist.
x+y^2
(5) f (x, y) = x^2+y^2 ;(x,y)→(0,0).
Solution:
x + y^2
In[ ]:= f[x_, y_] :=
x^2 + y^2
Plot3D[f[x, y], {x, - 1, 1}, {y, - 1, 1}, PlotPoints → 40]
ContourPlot[f[x, y], {x, - 1, 1}, {y, - 1, 1}, PlotPoints → 40, ContourShading → True]
Limit[f[x, y], {x → 0, y → 0}]
Limit[f[x, m x], {x → 0}]
Out[ ]=
677 Practical-8.nb 9
1.0
0.5
0.0
Out[ ]=
-0.5
-1.0
-1.0 -0.5 0.0 0.5 1.0
Out[ ]= Indeterminate
Out[ ]= Indeterminate
10 677 Practical-8.nb
Observation: The limit depends on “m” hence, limit does not exist.
x^2 - y^2
(6) f (x, y) = x^2 +y^2
;(x,y)→(0,0) and (x,y)→(2,1)
Solution:
x^2 - y^2
In[ ]:= f[x_, y_] :=
x^2 + y^2
Plot3D[f[x, y], {x, - 1, 1}, {y, - 1, 1}, PlotPoints → 40]
ContourPlot[f[x, y], {x, - 1, 1}, {y, - 1, 1}, PlotPoints → 40, ContourShading → True]
Limit[f[x, y], {x → 0, y → 0}]
Limit[f[x, m x], {x → 0}]
Limit[f[x, m x], {x → 2}]
Out[ ]=
1.0
0.5
0.0
Out[ ]=
-0.5
-1.0
-1.0 -0.5 0.0 0.5 1.0
Out[ ]= 1
677 Practical-8.nb 11
1 - m2
Out[ ]=
1 + m2
4 - 4 m2
Out[ ]=
4 + 4 m2
Observation: The limit depends on “m” hence, limit does not exist.
Practical-9
Draw tangent plane to the surface at a
given point
Question-1. Draw the tangent planes to following surfaces at a
given point:
(1) f(x,y)= x^2 + y^2 at (3,1, 10 )
Solution:
In[ ]:= f[x_, y_] := Sqrt[x ^ 2 + y ^ 2];
Plot3D[f[x, y], {x, - 5, 5}, {y, - 5, 5}, Mesh → None]
Out[ ]=
2 0677 Practical-9.nb
Out[ ]=
0677 Practical-9.nb 3
Solution:
f[x_, y_] := 10 - x ^ 2 - y ^ 2;
(* We cannot use square bracket here as [10-x^2-y^2],
otherwise mathematica will show error *)
Plot3D[f[x, y], {x, - 5, 5}, {y, - 5, 5}, Mesh → None]
Out[ ]=
4 0677 Practical-9.nb
Out[ ]=
0677 Practical-9.nb 5
Solution:
Out[ ]=
6 0677 Practical-9.nb
1
Power: Infinite expression encountered.
0
1
Power: Infinite expression encountered.
0
Out[ ]=
0677 Practical-9.nb 7
Solution:
In[ ]:= f[x_, y_] := ArcTan[x]
Plot3D[f[x, y], {x, - 5, 5}, {y, - 5, 5}, Mesh → None]
Out[ ]=
8 0677 Practical-9.nb
Out[ ]=
0677 Practical-9.nb 9
Out[ ]=
10 0677 Practical-9.nb
Solution:
In[ ]:= f[x_, y_] := Log[Abs[x + y ^ 2]]
Plot3D[f[x, y], {x, - 5, 5}, {y, - 5, 5}, Mesh → None]
Out[ ]=
0677 Practical-9.nb 11
Out[ ]=
Practical-10
Use incremental approximation to
estimate the value of the function at the
given point and compare it with the
calculated(actual) value
Question-1. f(x,y)=3x^4+2y^4 at (1.01,2.03)
Solution:
Actual Value=37.0854
2 0677 Practical-10.nb
Actual Value=-1.28153
Actual Value=2.6907
Practical-11
Find critical points and identify relative
maxima, relative minima or saddle points
to the following surface, if it exist
Question-1. z=x^2+y^2
Solution:
fxx =2
Out[ ]= Maximum.or.Minimum
Out[ ]= Minima
2 0677 Practical-11.nb
Out[ ]=
0677 Practical-11.nb 3
Note : Tangent plane at (0,0) also indicate that f(x,y) attains its
minimum at (0,0).
Question-2. z=1-x^2-y^2
Solution:
fxx =-2
Out[ ]= Maximum.or.Minimum
Out[ ]= Maxima
4 0677 Practical-11.nb
Out[ ]=
Question-3. z=y^2-x^2
Solution:
fxx =-2
Out[92]= saddlepoint.or.Inconclusive
Out[93]= saddlepoint
Out[95]=
6 0677 Practical-11.nb
Question-4. z=x^2y^2
Solution:
fxx =0
Out[108]= saddlepoint.or.Inconclusive
Out[109]= Inconclusive
0677 Practical-11.nb 7
Out[111]=
Solution:
x⩵0
4
x⩵2
Out[ ]=
y⩵1
y⩵Exp[x]
0
0.0 0.5 1.0 1.5 2.0 2.5
2 0677 Practical-12.nb
Out[ ]=
4
0
-1.0 -0.5 0.0 0.5 1.0 1.5 2.0 2.5
0677 Practical-12.nb 3
Solution:
Log[y]
4
x⩵2
Out[ ]=
y⩵1
y⩵Exp[2]
0
0.0 0.5 1.0 1.5 2.0 2.5
4 0677 Practical-12.nb
Out[ ]=
4
0
-1.0 -0.5 0.0 0.5 1.0 1.5 2.0 2.5
0677 Practical-12.nb 5
Solution:
x⩵0
4
x⩵1
Out[ ]=
y⩵x^3
y⩵1
0
0.0 0.5 1.0 1.5 2.0 2.5
6 0677 Practical-12.nb
Out[ ]=
4
0
0.0 0.5 1.0 1.5 2.0 2.5
0677 Practical-12.nb 7
Solution:
1.0
0.8
0.6 x==0
x==π/4
Out[ ]=
y==Sin[x]
0.4
y==Cos[x]
0.2
0.0
In[ ]:= RegionPlot[0 ≤ x ≤ π / 4 && Sin[x] ≤ y ≤ Cos[x], {x, - 0.1, 1}, {y, - 0.1, 1.1}]
1.0
0.8
0.6
Out[ ]=
0.4
0.2
0.0
Solution:
y==x
Out[ ]=
0 y==x^2-2
-1
-2
-2 -1 0 1 2
10 0677 Practical-12.nb
Out[8]=
0
-1
-2
-2 -1 0 1 2
0677 Practical-12.nb 11
Solution:
2.0
1.5
x⩵0
x⩵1
Out[3]= 1.0
y⩵x
y⩵1
0.5
0.0
0.0 0.2 0.4 0.6 0.8 1.0
12 0677 Practical-12.nb
2.0
1.5
Out[4]= 1.0
0.5
0.0
0.0 0.2 0.4 0.6 0.8 1.0