You are on page 1of 104

NAME MUSKAN

COURSE BSc MATHS (H)

ROLL NO 2021/1222
SEMESTER III SEMESTER
SUBJECT MULTIVARIATE
CALCULUS

SUBMITTED TO
PRACTICAL -2
Discuss the limit of the following
functions when x tends to 0 :
1). 1/x 2). -1/x 3). 1/(x^2) 4). |x| 5). x*sin(1/x) 6).
sin(1/x) 7). x 8). x^2 9). sinx 10). cosx 11). cos(1/x)
12). sin(x/x) 13). cos(x/x) 14). abs(x)/x

1.)
EDITOR WINDOW
pkg load symbolic
syms x
limit(1/x,x,0,'left')
limit(1/x,x,0,'right')
ezplot(1/x,[-1,1])

FIGURE

COMMAND WINDOW
2.)
EDITOR WINDOW

pkg load symbolic


syms x
limit(-1/x,x,0,'left')
limit(-1/x,x,0,'right')
ezplot(-1/x,[-1,1])

FIGURE
COMMAND WINDOW
3.)
EDITOR WINDOW

pkg load symbolic


syms x
limit((1/x)^2,x,0,'left')
limit((1/x)^2,x,0,'right')
ezplot((1/x)^2,[-1,1])
4.)
EDITOR WINDOW

pkg load symbolic


syms x
limit(x,x,0,'left')
limit(x,x,0,'right')
ezplot(x,[-1,1])
COMMAND WINDOW

5.)
EDITOR WINDOW

pkg load symbolic


syms x
limit(x^2,x,0,'left')
limit(x^2,x,0,'right')
ezplot(x^2,[-1,1])
COMMAND WINDOW

6.)
EDITOR WINDOW

pkg load symbolic


syms x
limit(sin(x),x,0,'left')
limit(sin(x),x,0,'right')
ezplot(sin(x),[-1,1])
COMMAND WINDOW
7.)EDITOR WINDOW

pkg load symbolic


syms x
limit(cos(x),x,0,'left')
limit(cos(x),x,0,'right')
ezplot(cos(x),[-1,1])
COMMAND WINDOW

8.)
EDITOR WINDOW

pkg load symbolic


syms x
limit(cos(1/x),x,0,'left')
limit(cos(1/x),x,0,'right')
ezplot(cos(1/x),[-1,1])
COMMAND WINDOW
9.)
EDITOR WINDOW

pkg load symbolic


syms x
limit(sin(1/x),x,0,'left')
limit(sin(1/x),x,0,'right')
ezplot(sin(1/x),[-1,1])

COMMAND WINDOW
10.)
EDITOR WINDOW

pkg load symbolic


syms x
limit(sin(x/x),x,0,'left')
limit(sin(x/x),x,0,'right')
ezplot(sin(x/x),[-1,1])
COMMAND WINDOW
11.)
EDITOR WINDOW

pkg load symbolic


syms x
limit(cos(x/x),x,0,'left')
limit(cos(x/x),x,0,'right')
ezplot(cos(x/x),[-1,1])
COMMAND WINDOW
12.)
EDITOR WINDOW

pkg load symbolic


syms x
limit(floor(x),x,0,'left')
limit(floor(x),x,0,'right')
ezplot(floor(x),[-10,10])
COMMAND WINDOW
13.)
EDITOR WINDOW

pkg load symbolic


syms x
limit(abs(x),x,0,'left')
limit(abs(x),x,0,'right')
ezplot(abs(x),[-10,10])
COMMAND WINDOW
14.)
EDITOR WINDOW

pkg load symbolic


syms x
limit((x.^2)*cos(1/x),x,0,'left')
limit((x.^2)*cos(1/x),x,0,'right')
ezplot((x.^2)*cos(1/x),[-10,10])
COMMAND WINDOW
15.)
EDITOR WINDOW

pkg load symbolic


syms x
limit((x.^2)*sin(1/x),x,0,'left')
limit((x.^2)*sin(1/x),x,0,'right')
ezplot((x.^2)*sin(1/x),[-10,10])
COMMAND WINDOW
16.)
EDITOR WINDOW

pkg load symbolic


syms x
limit((x)*sin(1/x),x,0,'left')
limit((x)*sin(1/x),x,0,'right')
ezplot((x)*sin(1/x),[-10,10])
COMMAND WINDOW
17.)
EDITOR WINDOW

pkg load symbolic


syms x
limit((x)*cos(1/x),x,0,'left')
limit((x)*cos(1/x),x,0,'right')
ezplot((x)*cos(1/x),[-10,10])
COMMAND WINDOW

18.)
EDITOR WINDOW

pkg load symbolic


syms x
limit(abs(x)/x,x,0,'left')
limit(abs(x)/x,x,0,'right')
ezplot(abs(x)/x,[-1,1])

OUTPUT :
PRACTICAL -3
Discuss the limit of the following
functions when x tends to 0 :
1). exp(1/x) 2). exp(-1/x) 3). exp(x)/x 4). exp(-x)/x
5). sin(1/x) 6). x/(1+x) 7). x^2*sin(1/x)

1.)
EDITOR WINDOW

pkg load symbolic


syms x
limit(exp(1/x),x,inf)
ezplot(exp(1/x),[0,10])

COMMAND WINDOW
2.)
EDITOR WINDOW

pkg load symbolic


syms x
limit(exp(-1/x),x,inf)
ezplot(exp(-1/x),[0,50])
3.)
EDITOR WINDOW

pkg load symbolic


syms x
limit(exp(x)/x,x,inf)
ezplot(exp(x)/x,[0,50])
4.)
EDITOR WINDOW

pkg load symbolic


syms x
limit(exp(-x)/x,x,inf)
ezplot(exp(-x)/x,[0,50])
5.)
EDITOR WINDOW

pkg load symbolic


syms x
limit(x/(x+1),x,inf)
ezplot(x/(1+x),[-10,10])
6.)
EDITOR WINDOW

pkg load symbolic


syms x
limit(sin(1/x),x,inf)
ezplot(sin(1/x),[-1,1])
7.)
EDITOR WINDOW

pkg load symbolic


syms x
limit(x^2*sin(1/x),x,inf)
ezplot(x^2*sin(1/x),[-1,1])
PRACTICAL - 5
Illustrate the geometric meaning of rolle’s
theorem for the following functions :
1). (x-3)^4*(x-5)^3 2). x^3-4*x 3). (x).^2-5*x+4 4).
sin(x)

1.)
EDITOR WINDOW

#ILLUSTRATE THE GEOMETRIC M


#FUNCTIONS ON THE GIVEN INTERVAL
pkg load symbolic
clc
syms x ;
f=(x-3).^4*(x-5).^3;
fprime=diff(f)
c=double(solve(fprime))
p=double(subs(f,c))
ezplot(p(3) +0*x,[3,5]);
hold on;
h=ezplot(f,[3,5]);
set(h,'color','r')
2.)
EDITOR WINDOW

#ILLUSTRATE THE GEOMETRIC M


#FUNCTIONS ON THE GIVEN INTERVAL
pkg load symbolic
clc
syms x ;
f=x.^3-4*x;
fprime=diff(f)
c=double(solve(fprime))
p=double(subs(f,c))
ezplot(p(1) +0*x,[-2,2]);
hold on;
ezplot(p(2) +0*x,[-2,2]);
hold on;
h=ezplot(f,[-2,2]);
set(h,'color','r')
3.)
EDITOR WINDOW

pkg load symbolic


clc
syms x ;
f=(x).^2-5*x+4 ;
fprime=diff(f)
c=double(solve(fprime))
p=double(subs(f,c))
ezplot(p(1) +0*x,[1,4]);
hold on;
h=ezplot(f,[1,4]);
set(h,'color','r')
4.)
EDITOR WINDOW

pkg load symbolic


clc
syms x ;
f=sin(x) ;
fprime=diff(f)
c=double(solve(fprime))
p=double(subs(f,c))
ezplot(p(1) +0*x,[0,pi]);
hold on;
h=ezplot(f,[0,pi]);
set(h,'color','r')
PRACTICAL-8

Draw the following surface and find


level curves at the given heights:
1).f(x,y)=10-x^2-y^2, z=1, z=6, z=9 2). x^2+y^2, z=1,
z=6, z=9 3). x.^3-y, z=1, z=6
1.)
EDITOR WINDOW

%draw the surface and level curves for the fun.


f(x,y)=10-x^2-y^2
clear all;
close all;
clc;
x=-5:0.5:5;y=-7:0.5:7;
[X,Y]=meshgrid(x,y)
Z=10-X.^2-Y.^2;
%color scheme
colormap(jet)
%mesh(X,Y,Z)
surf(X,Y,Z)
%mesh command will only generate lines,no fill.
hold on;
contour3(X,Y,Z+5,[1,1],'b');
%b- blue
hold on;
contour3(X,Y,Z+5,[6,6],'k');
%k- black
hold on;
contour3(X,Y,Z+5,[9,9],'r');
%r- red
xlabel('x')
ylabel('y')
zlabel('z')

OUTPUT :
2.)
EDITOR WINDOW

%draw the surface and level curves for the fun.


f(x,y)=x^2+y^2
clear all;
close all;
clc;
x=-7:0.5:7;y=-7:0.5:7;
[X,Y]=meshgrid(x,y)
Z=X.^2+Y.^2;
%color scheme
colormap(jet)
%mesh(X,Y,Z)
surf(X,Y,Z)
%mesh command will only generate lines,no fill.
hold on;
contour3(X,Y,Z-5,[1,1],'b');
%b- blue
hold on;
contour3(X,Y,Z-5,[6,6],'k');
%k- black
hold on;
contour3(X,Y,Z-5,[9,9],'r');
%r- red
xlabel('x')
ylabel('y')
zlabel('z')

OUTPUT :
3.)
EDITOR WINDOW

%draw the surface and level curves for the fun.


f(x,y)=x^3-y
clear all;
close all;
clc;
x=-5:0.5:5;y=-7:0.5:7;
[X,Y]=meshgrid(x,y)
Z=X.^3-Y;
%color scheme
colormap(cool)
%mesh(X,Y,Z)
surf(X,Y,Z)
%mesh command will only generate lines,no fill.
hold on;
contour3(X,Y,Z,[1,1],'b');
%b- blue
hold on;
contour3(X,Y,Z,[6,6],'r');
%r- red
hold on;
contour3(X,Y,Z,[9,9],'g');
%g- green
xlabel('x')
ylabel('y')
zlabel('z')

OUTPUT :
4.)
EDITOR WINDOW :

%draw the surface and level curves for the fun.


f(x,y)=x^2+(y^2/4) , z=1,5,8
clear all;
close all;
clc;
x=-5:0.3:5;y=-7:0.3:7;
[X,Y]=meshgrid(x,y)
Z=X.^2+(Y.^2/4);
%color scheme
colormap(spring)
%mesh(X,Y,Z)
surf(X,Y,Z)
%mesh command will only generate lines,no fill.
hold on;
contour3(X,Y,Z-5,[1,1],'b');
%b- blue
hold on;
contour3(X,Y,Z-5,[5,5],'r');
%r- red
hold on;
contour3(X,Y,Z-5,[8,8],'k');
%k- black
xlabel('x')
ylabel('y')
zlabel('z')
title('surface of f(x,y)=x^2+(y^2/4)')

OUTPUT :
5.)
EDITOR WINDOW :

%draw the surface and level curves for the fun.


f(x,y)=4x^2+y^2 , z=0,1,3,5
clear all;
close all;
clc;
x=-5:0.5:5;y=-7:0.5:7;
[X,Y]=meshgrid(x,y)
Z=4*X.^2+Y.^2;
%color scheme
colormap(jet)
%mesh(X,Y,Z)
surf(X,Y,Z)
%mesh command will only generate lines,no fill.
hold on;
contour3(X,Y,Z-11,[0,0],'b');
%b- blue
hold on;
contour3(X,Y,Z-11,[1,1],'r');
%r- red
hold on;
contour3(X,Y,Z-11,[3,3],'k');
%k- black
hold on;
contour3(X,Y,Z-11,[5,5],'g');
%g- green
xlabel('x')
ylabel('y')
zlabel('z')
title('surface of f(x,y)=4x^2+y^2')

OUTPUT :
6.)
EDITOR WINDOW :

%draw the surface and level curves for the fun.


f(x,y)=2-x-y , z=-6,-4,-2,0,2,4,6
clear all;
close all;
clc;
x=-5:0.9:5;y=-7:0.9:7;
[X,Y]=meshgrid(x,y)
Z= 2-X-Y;
%color scheme
colormap(cool)
%mesh(X,Y,Z)
surf(X,Y,Z)
%mesh command will only generate lines,no fill.
hold on;
contour3(X,Y,Z-9,[-2,-2],'b');
%b- blue
hold on;
contour3(X,Y,Z-9,[-4,-4],'r');
%r- red
hold on;
contour3(X,Y,Z-9,[-6,-6],'b');
%b- blue
hold on;
contour3(X,Y,Z,[0,0],'g');
%g- green
hold on;
contour3(X,Y,Z+9,[2,2],'r');
%r- red
hold on;
contour3(X,Y,Z+9,[4,4],'g');
%g- green
hold on;
contour3(X,Y,Z+9,[6,6],'k');
%k- black
xlabel('x')
ylabel('y')
zlabel('z')
title('surface of f(x,y)=2-x-y ')

OUTPUT :
PRACTICAL-9
Draw the tangent plane to the
following surfaces at the given point;

1.)
EDITOR WINDOW :

%Draw the tangent plane to the following surfaces


at the given point
%f(x,y)=sqrt(x^2+y^2) at (3,1)
pkg load symbolic
clc;
clear all;
syms x y ;
f=sqrt(x^2+y^2);
x0=3 ;y0=1;
fp=subs(f,{x,y},{x0,y0})
fx=diff(f,x)
fxp=subs(fx,{x,y},{x0,y0})
fy=diff(f,y)
fyp=subs(fy,{x,y},{x0,y0})
z=simplify(fp+fxp*(x-x0)+fyp*(y-y0))
ezsurf(f)
hold on
ezsurf(z)
axis([-7 7 -7 7 -10 10])
title('the surface and its tangent at p. ')

OUTPUT :
2.)
EDITOR WINDOW :

%Draw the tangent plane to the following surfaces


at the given point
%f(x,y)=10-x^2-y^2 at (2,2,2)
pkg load symbolic
clc;
clear all;
syms x y ;
colormap(cool);
f=10-x^2-y^2 ;
x0=2 ;y0=2;
fp=subs(f,{x,y},{x0,y0})
fx=diff(f,x)
fxp=subs(fx,{x,y},{x0,y0})
fy=diff(f,y)
fyp=subs(fy,{x,y},{x0,y0})
z=simplify(fp+fxp*(x-x0)+fyp*(y-y0))
ezsurf(f)
hold on
ezsurf(z)
axis([-20 20 -20 20 -25 25])
title('the surface and its tangent at p. ')

OUTPUT :
3.)
EDITOR WINDOW :

%Draw tangent plane to the following surface at


given point
pkg load symbolic
clc;
clear all;
syms x y ;
f=atan(y/x) ; #atan is for tan inverse.
x0=1 ;y0=sqrt(3);
fp=subs(f,{x,y},{x0,y0})
fx=diff(f,x)
fxp=subs(fx,{x,y},{x0,y0})
fy=diff(f,y)
fyp=subs(fy,{x,y},{x0,y0})
z=simplify(fp+fxp*(x-x0)+fyp*(y-y0))
ezsurf(f)
hold on
ezsurf(z)
hold off

title('the surface and its tangent at p. ')


OUTPUT :
4.)
EDITOR WINDOW :

%Draw tangent plane to the following surface at


given point
pkg load symbolic
clc;
clear all;
syms x y ;
f=log(abs(x+y^2)) ;
x0=-3 ;y0=-2;
fp=subs(f,{x,y},{x0,y0})
fx=diff(f,x)
fxp=subs(fx,{x,y},{x0,y0})
fy=diff(f,y)
fyp=subs(fy,{x,y},{x0,y0})
z=simplify(fp+fxp*(x-x0)+fyp*(y-y0))
ezsurf(f)
hold on
ezsurf(z)
hold off
axis([-7 7 -7 7 -10 10])
title('the surface and its tangent at p. ')

OUTPUT :
PRACTICAL -4
Discuss the continuity of the following
function at x=0

1.)
EDITOR WINDOW :

pkg load symbolic


clc;
syms x
f=(1./x)
fp=subs(f,x,0)
L1=limit((1./x),x,0,"left")
R1=limit((1./x),x,0,"right")
if (R1==L1) && (R1=fp)
disp("function is continuous")
else
disp("function is not continuous")
end

Output:
2.)
EDITOR WINDOW :

pkg load symbolic


clc;
syms x
f=(-1./x)
fp=subs(f,x,0)
L1=limit((-1./x),x,0,"left")
R1=limit((-1./x),x,0,"right")
if (R1==L1) && (R1==fp)
disp("function is continuous")
else
disp("function is not continuous")
end
Output:

3.)
EDITOR WINDOW :

clc;
syms x
f=cos(1./x)
fp=subs(f,x,0)
L1=limit(cos(1./x),x,0,"left")
R1=limit(cos(1./x),x,0,"right")
if (R1==L1) && (R1==fp)
disp("function is continuous")
else
disp("function is not continuous")
end
Output:

4.)
EDITOR WINDOW :

clc;
syms x
f=sin(1./x)
fp=subs(f,x,0)
L1=limit(sin(1./x),x,0,"left")
R1=limit(sin(1./x),x,0,"right")
if (R1==L1) && (R1==fp)
disp("function is continuous")
else
disp("function is not continuous")
end

Output:

5.)
EDITOR WINDOW :

clc;
syms x
f=x*cos(1./x)
fp=subs(f,x,0)
L1=limit(x*cos(1./x),x,0,"left")
R1=limit(x*cos(1./x),x,0,"right")
if (R1==L1) && (R1==fp)
disp("function is continuous")
else
disp("function is not continuous")
end

Output:

6.)
EDITOR WINDOW :

clc;
syms x
f=x*sin(1./x)
fp=subs(f,x,0)
L1=limit(x*sin(1./x),x,0,"left")
R1=limit(x*sin(1./x),x,0,"right")
if (R1==L1) && (R1==fp)
disp("function is continuous")
else
disp("function is not continuous")
end

Output:

7.)
EDITOR WINDOW :

clc;
syms x
f=x^2*sin(1./x)
fp=subs(f,x,0)
L1=limit(x^2*sin(1./x),x,0,"left")
R1=limit(x^2*sin(1./x),x,0,"right")
if (R1==L1) && (R1==fp)
disp("function is continuous")
else
disp("function is not continuous")
end

Output:

8.)
EDITOR WINDOW :

clc;
syms x
f=(1./x)*sin(1./x)
fp=subs(f,x,0)
L1=limit((1./x)*sin(1./x),x,0,"left")
R1=limit((1./x)*sin(1./x),x,0,"right")
if (R1==L1) && (R1==fp)
disp("function is continuous")
else
disp("function is not continuous")
end

OUTPUT :

9.)
EDITOR WINDOW :

clc;
syms x
f=floor(x)
fp=subs(f,x,0)
L1=limit(floor(x),x,0,"left")
R1=limit(floor(x),x,0,"right")
if (R1==L1) && (R1==fp)
disp("function is continuous")
else
disp("function is not continuous")
end

OUTPUT :
PRACTICAL-9
Draw the following surfaces and discuss
whether limit exists or not as (x,y) approaches
to the given points. Find the limit,if it exists:

1.)
EDITOR WINDOW :
pkg load symbolic
clc;
syms x y
f=(x+y)./(x-y)
disp("Along Y-axis where x->0 first and then
y->0")
L1=limit(limit(f,x,0),y,0)
disp("Along x-axis where y->0 first and then x->0")
L2=limit(limit(f,y,0),x,0)
if (L1==L2)
disp("LIMIT EXISTS")
else
disp("LIMIT DOESNOT EXISTS AS LIMIT OF
FUN. IS DIFFERENT ALONG DIFFERENT
PATHS")
end

OUTPUT :

2.)
EDITOR WINDOW :
pkg load symbolic
clc;
syms x y
f=((x^2)-y)./(x+y)
disp("Along Y-axis where x->0 first and then
y->0")
L1=limit(limit(f,x,0),y,0)
disp("Along x-axis where y->0 first and then x->0")
L2=limit(limit(f,y,0),x,0)
if (L1==L2)
disp("LIMIT EXISTS")
else
disp("LIMIT DOESNOT EXISTS AS LIMIT OF
FUN. IS DIFFERENT ALONG DIFFERENT
PATHS")
end

OUTPUT :

3.)
EDITOR WINDOW :
pkg load symbolic
clc;
syms x y
f=(x^2-y^2)./(x^2+y^2)
disp("Along Y-axis where x->0 first and then
y->0")
L1=limit(limit(f,x,0),y,0)
disp("Along x-axis where y->0 first and then x->0")
L2=limit(limit(f,y,0),x,0)
if (L1==L2)
disp("LIMIT EXISTS")
else
disp("LIMIT DOESNOT EXISTS AS LIMIT OF
FUN. IS DIFFERENT ALONG DIFFERENT
PATHS")
end

OUTPUT :

4.)
EDITOR WINDOW :
pkg load symbolic
clc;
syms x y
f=(x-y)./sqrt(x^2+y^2)
disp("Along Y-axis where x->0 first and then
y->0")
L1=limit(limit(f,x,0),y,0)
disp("Along x-axis where y->0 first and then x->0")
L2=limit(limit(f,y,0),x,0)
if (L1==L2)
disp("LIMIT EXISTS")
else
disp("LIMIT DOESNOT EXISTS AS LIMIT OF
FUN. IS DIFFERENT ALONG DIFFERENT
PATHS")
end

OUTPUT :
5.)
EDITOR WINDOW :
pkg load symbolic
clc;
syms x y
f=(x+y^2)./(x^2+y^2)
disp("Along Y-axis where x->0 first and then
y->0")
L1=limit(limit(f,x,0),y,0)
disp("Along x-axis where y->0 first and then x->0")
L2=limit(limit(f,y,0),x,0)
if (L1==L2)
disp("LIMIT EXISTS")
else
disp("LIMIT DOESNOT EXISTS AS LIMIT OF
FUN. IS DIFFERENT ALONG DIFFERENT
PATHS")
end

OUTPUT :

6.)
EDITOR WINDOW :
pkg load symbolic
clc;
syms x y
f=(x+y)./exp(x*y)
disp("Along Y-axis where x->1 first and then
y->1")
L1=limit(limit(f,x,1),y,1)
disp("Along x-axis where y->1 first and then x->1")
L2=limit(limit(f,y,1),x,1)
if (L1==L2)
disp("LIMIT EXISTS")
else
disp("LIMIT DOESNOT EXISTS AS LIMIT OF
FUN. IS DIFFERENT ALONG DIFFERENT
PATHS")
end

OUTPUT :

7.)
EDITOR WINDOW :
pkg load symbolic
clc;
syms x y
f=exp(x*y)
disp("Along Y-axis where x->0 first and then
y->0")
L1=limit(limit(f,x,0),y,0)
disp("Along x-axis where y->0 first and then x->0")
L2=limit(limit(f,y,0),x,0)
if (L1==L2)
disp("LIMIT EXISTS")
else
disp("LIMIT DOESNOT EXISTS AS LIMIT OF
FUN. IS DIFFERENT ALONG DIFFERENT
PATHS")
end

OUTPUT :
8.)
EDITOR WINDOW:

pkg load symbolic


clc;
syms x y
f=(x+y)./(x-y)
disp("Along Y-axis where x->1 first and then
y->3")
L1=limit(limit(f,x,1),y,3)
disp("Along x-axis where y->3 first and then x->1")
L2=limit(limit(f,y,3),x,1)
if (L1==L2)
disp("LIMIT EXISTS")
else
disp("LIMIT DOESNOT EXISTS AS LIMIT OF
FUN. IS DIFFERENT ALONG DIFFERENT
PATHS")
end

OUTPUT :
9.)
EDITOR WINDOW:
pkg load symbolic
clc;
syms x y
f=(x-y)./sqrt(x^2+y^2)
disp("Along Y-axis where x->2 first and then
y->1")
L1=limit(limit(f,x,2),y,1)
disp("Along x-axis where y->1 first and then x->2")
L2=limit(limit(f,y,1),x,2)
if (L1==L2)
disp("LIMIT EXISTS")
else
disp("LIMIT DOESNOT EXISTS AS LIMIT OF
FUN. IS DIFFERENT ALONG DIFFERENT
PATHS")
end

OUTPUT :

10.)
EDITOR WINDOW:
pkg load symbolic
clc;
syms x y
f=(x+y)./exp(x*y)
disp("Along Y-axis where x->1 first and then
y->1")
L1=limit(limit(f,x,1),y,0)
disp("Along x-axis where y->1 first and then x->1")
L2=limit(limit(f,y,0),x,1)
if (L1==L2)
disp("LIMIT EXISTS")
else
disp("LIMIT DOESNOT EXISTS AS LIMIT OF
FUN. IS DIFFERENT ALONG DIFFERENT
PATHS")
end

OUTPUT :
11.)
EDITOR WINDOW:
pkg load symbolic
clc;
syms x y
f=exp(x*y)
disp("Along Y-axis where x->1 first and then
y->0")
L1=limit(limit(f,x,1),y,0)
disp("Along x-axis where y->0 first and then x->1")
L2=limit(limit(f,y,0),x,1)
if (L1==L2)
disp("LIMIT EXISTS")
else
disp("LIMIT DOESNOT EXISTS AS LIMIT OF
FUN. IS DIFFERENT ALONG DIFFERENT
PATHS")
end

OUTPUT :

12.)
EDITOR WINDOW:
pkg load symbolic
clc;
syms x y
f=(x^2-y^2)./(x^2+y^2)
disp("Along Y-axis where x->2 first and then
y->1")
L1=limit(limit(f,x,2),y,1)
disp("Along x-axis where y->1 first and then x->2")
L2=limit(limit(f,y,1),x,2)
if (L1==L2)
disp("LIMIT EXISTS")
else
disp("LIMIT DOESNOT EXISTS AS LIMIT OF
FUN. IS DIFFERENT ALONG DIFFERENT
PATHS")
end

OUTPUT :

You might also like