Assigment 1
Assigment 1
Assigment 1
Abhinav Pradeep
Tutorial group 5
August 11, 2023
1 Question 1.
sin(xy)
f (x, y) =
x+y
sin(xy)
g(x, y) =
xy
1.1 a
Code to plot f (x, y):
syms x y
f(x,y)= sin(x*y)/(x+y);
ezsurf(f)
syms x y
g(x,y)= sin(x*y)/(x*y);
ezsurf(g)
1
From produced graphs, it can be inferred that f (x, y) does not have a limit at (0, 0) whereas g(x, y)
does. The discontinuity of f (x, y) appears to be along the curve defined by x = −y. This is sensible
as when f (x, y) approaches the curve x = −y, the denominator x + y approaches 0, making f (x, y)
discontinuous everywhere along the curve.
1.2 b
Based on the produced graph, the lim(x,y)→(0,0) f (x, y) appears to not exist. As the function is entirely
discontinuous along x = −y, there exists no ’paths’ along that line that would terminate in any
non-undefined value.
In other words, continuity (as defined by the existence of a limit at the point) requires that
p
∀ϵ > 0, ∃δ > 0 such that if 0 < |(x, y) − (0, 0)| ⇔ x2 + y 2 < δ
|f (x, y) − 1| < ϵ
That is, ∃x and y satisfying equations:
p
x2 + y 2 < δ
x = −y
However these x and y cannot satisfy |f (x, y) − 1| < ϵ as f (x, y) would be undefined.
Alternatively
P1 (t) = (t, 0)
sin(t · 0)
f (P1 (t)) =
t+0
sin(0)
f (P1 (t)) =
t
f (P1 (t)) = 0
P2 (t) = t, t2 − t
|g(x, y) − 1| < ϵ
sin(xy)
−1 <ϵ
xy
p
From 0 < x2 + y 2 < δ, it follows that:
√ p
|x| ⇔ x2 ≤ x2 + y 2
|x| ≤ δ ⇒ |x|2 ≤ δ 2
p p
|y| ⇔ y 2 ≤ x2 + y 2
|y| ≤ δ ⇒ |y|2 ≤ δ 2
p
|xy| ⇔ (xy)2 ≤ max(|x|, |y|)2 ≤ δ 2
|xy|2 ≤ δ 4
p
|xy|2 ⇔ ( (xy)2 )2 ⇒ (xy)2 ≤ δ 4
(xy)2 ≤ δ 4
Given that ∀t ∈ R:
sin(t)
− 1 < t2
t
sin(xy)
− 1 < (xy)2
xy
Moreover,
(xy)2 ≤ δ 4
Hence,
sin(xy)
− 1 < δ4
xy
1
Set δ = ϵ 4 . This ensures that:
sin(xy)
−1 <ϵ
xy
1 p
Hence it is proved that ∀ϵ > 0, ∃δ := ϵ 4 such that if 0 < x2 + y 2 < δ, it follows that:
|g(x, y) − 1| < ϵ
Therefore lim(x,y)→(0,0) g(x, y) = 1
2 Question 2.
2.1 a
L : Rn → R is continuous at a = (a1 , a2 , a3 , ...an )
ηi : R → R
To show:
Sum over all i. This holds as |ηi (t) − ai | < nδ ∀i from previous condition. Morover, as |ηi − ai | > 0, all
of the below expressions are > 0.
n
X δ
0< |ηi (t) − ai | < n ·
i=1
n
n
X
0< |ηi (t) − ai | < δ
i=1
Therefore
v
u n
uX
0 < t (ηi (t) − ai )2 < δ
i=1
It has hence been shown that ∃δη such that if 0 < |t − k| < δη :
δ
|ηi (t) − ai | < ∀i ∈ [1, n]
n
v
u n
uX
0 < t (ηi (t) − ai )2 < δ
i=1
Assemble η(t) ∈ Rn such that η = (η1 (t), η2 (t), η3 (t), ...ηn (t)).
The definition of the limit of limx→a L(x) = L(a) required x = (x1 , x2 , x3 , ...xn ) ∈ Rn such that:
v
u n
uX
0 < |x − a| < δ ⇔ 0 < t (xi − ai )2 < δ
i=1
Hence, x can be set to η(t). Therefore, the limit definition of limx→a L(x) = L(a) can be re-written
as:
∀ϵ > 0, ∃δ > 0, ∃δη > 0 such that if 0 < |t − k| < δη it follows that
v
u n
uX
0 < |η(t) − a| < δ ⇔ 0 < t (ηi (t) − ai )2 < δ and,
i=1
2.2 b
The statement proved is that: For f : Rn → R, if limit limx→a f (x) to exist, it is necessary that every
path in Rn approaching a gives the same limiting value.
3 Question 3.
f (a, b) = x4 + 2y 3
P = (1, 1, 3)
3.1 a
T (x, y) = Dx f (1, 1)(x − 1) + Dy f (1, 1)(y − 1) + f (1, 1)
Dy f (x, y) = 6y 2 ⇒ Dy f (1, 1) = 6
T (1.5, 1.5) = 2 + 3 + 3
T (1.5, 1.5) = 8
3.3 c
syms x y
f(x,y) = x^4 + 2*y^3;
P = f(1,1);
T(x,y) = 4*(x-1)+6*(y-1)+3;
fsurf(f,’FaceColor’,’r’)
hold on
fsurf(P,’FaceColor’,’g’)
hold on
fsurf(T,’FaceColor’,’b’)
xlim([1 1.5])
ylim([1 1.5])
zlim([2 12])
Or alternatively using matlab
syms x y
f(x,y) = x^4 + 2*y^3;
P = f(1,1);
T(x,y) = 4*(x-1)+6*(y-1)+3;
fsurf(f,’FaceColor’,’r’)
hold on
fsurf(P,’FaceColor’,’g’)
hold on
fsurf(T,’FaceColor’,’b’)
hold on
plot3([1,1.5],[1,1],[3,3],’Color’, [0.7 0.7 0.7], LineWidth=5)
plot3([1,1],[1,1.5],[3,3],’-y’, LineWidth=5)
plot3([1.5,1.5],[1.5,1.5],[3,3+4*(1.5-1)],’-k’, LineWidth=5)
plot3([1.5,1.5],[1.5,1.5],[3+4*(1.5-1),3+4*(1.5-1)+6*(1.5-1)],’Color’,’#EDB120’, LineWidth=5
plot3([1.4,1.4],[1.5,1.5],[3,T(1.5,1.5)],’-c’, LineWidth=5)
plot3([1.5,1.5],[1.4,1.4],[3,3.5],’Color’, [0.7 0.7 0.7], LineWidth=5)
plot3([1.5,1.5],[1.4,1.4],[3+4*(1.5-1),3+4*(1.5-1)+0.5],’-y’, LineWidth=5)
xlim([1 1.5])
ylim([1 1.5])
zlim([2 12])
Where
Gray/[0.7,0.7,0.7] = A
Yellow = B
Black = C
#EDB120 = D
Cyan/’-c’ = E