Differential Calculus For Vector Functions 1 Vector Functions of Variable
Differential Calculus For Vector Functions 1 Vector Functions of Variable
Seminar 6 2020
If
f (x) − f (a)
∃ lim ∈ Rm ,
x→a x−a
then this limit is called the derivative of f at a and is usually denoted
by:
df
f 0 (a) = (a).
dx
The function f has a derivative at a if and only if, for all i ∈ {1, ..., m},
each function fi has a derivative at a. Moreover, the following equality
holds:
f 0 (a) = (f10 (a), ..., fm
0
(a)).
1
2 Vector Functions of Vector Variable
df (a).
Notice that the differential is a function, which has the following pro-
perties:
• : Rn → R m ;
• is linear;
• it satisfeis (1)
• the differential is a notion attached to a function at a single
point. So if we change the point, we may expect, if f is
still differentiable at the new point, to even get a different
differential function.
Theorem: If the function f is differentiable at a, then f is
continuous at a.
In practice, when computing effectively the differential of a function f
at a point a, instead of computing a limit such as (1) we may study instead
1
lim · f (a + h) − f (a) − ϕ(h) = 0m , (2)
h→0n khk
2
Remark: The reason behind searching for something different from
the partial derivatives lies in the fact that a function may have partial
derivatives with respect to all variables at a point, and in the same time,
it may not be continuous at that point. We had at least two such examples
in Seminar 5. In contrast, if a functionis differentiable at a point, then it is
continuous at that point which is a property inherited from the derivatives
of real functions of real variable.
3
4 Actual Algorithm for Determining the Differential
4.1 Real Functions of Vector Variables
n
A⊆R
a ∈ intA
f :A→R
Y ES → go to Step 2
N O → STOP the function does not have a differential at a
In fact, we have to determine
∂f
(a) ∀j ∈ {1, ..., n}.
∂xj
q
a + h = (a1 + h1 , ..., an + hn ) and khk = h21 + ... + h2n .
Moreover, the gradient of a function at a point is the vector composed of
all of its partial derivatives at that point. Thus
n
∂f ∂f X ∂f
hh, ∇f (a)i = h1 · (a) + ... + hn · (a) = hj · (a).
∂x1 ∂xn j=1
∂x j
4
Step 3: We are in the case when l = 0. This means that the function f is
differentiable at the point a. Its differential is the linear function
df (a) : Rn → R
defined by
n
X ∂f
df (a)(h) = hh, ∇f (a)i = hj · (a), ∀h ∈ Rn .
j=1
∂xj
For each i ∈ {1, ..., m}, the function fi must be analysed as described in
section 4.1, since it is a real function of vector variable. At the lecture,
there is a theorem that prove that
f is differentiable at a ⇐⇒ ∀i ∈ {1, ..., m}, fi is differentiable
at a. Moreover df (a) : Rn → Rm is equal to
5
This matrix is used to simplify the writing of the differential function
of a vector function of a vector variable.
So, for a differentiable function, with A ⊆ Rn , with f : A → Rm , the
differential function at the point a ∈ intA is df (a) : Rn → Rm , such that
6
6 Exercise/applications
In practice, we often use the following theorem:
Let A ⊆ Rn is an open set, and f : A → Rm be a function which
has all partial derivatives. If all partial derivatives are continuous
on A, then f is differentiable on A.
This means that is all the partial derivatives of a function are conti-
nuous, we may skip Step 2 in the Algorithm from Section 4, and jump
directly to Step 3, which is actually the construction of the differential
function, by means of :
• the Gradient of f , if f is a real function of vector variable
• the Jacobi matrix of f , if f is a vector function of vector variable.
∂f ∂f
(x, y, z) = −z 2 sin(x − y), (x, y, z) = −z 2 sin(x − y)(x − y)0y = z 2 sin(x − y) and
∂x ∂y
∂f
(x, y, z) = 2z cos(x − y).
∂z
Hence, the Gradient of the function f at (x, y, z) is
∂f ∂f ∂f
∇f (x, y, z) = (x, y, z), (x, y, z), (x, y, z) =
∂x ∂y ∂z
Since all of these partial derivatives are continuous functions on R3 , we conclude that
the function f is differentiable at each a ∈ R3 .
We will compute this differential for two different points.
Case 1: Consider now a = (1, 1, 1) ∈ R3 . The differential function associated to f at
the point (1, 1, 1) is
df (1, 1, 1) : R3 → R
7
defined for all h = (h1 , h2 , h3 ) ∈ Rn , by
∂f ∂f ∂f
= h1 (1, 1, 1) + h2 (1, 1, 1) + h1 (1, 1, 1) =
∂x ∂y ∂z
= h1 · (−1 sin 0) + h2 · (1 sin 0) + h3 · (2 · 1 cos 0) = h1 · 0 + h2 · 0 + h3 · 2 =
= 2h3 .
now a = π2 , 0, 1 ∈ R3 . The differential function associated to f at
Case 2: Consider
the point π2 , 0, 1 is
π
df , 0, 1 : R3 → R
2
n
defined for all h = (h1 , h2 , h3 ) ∈ R , by
π
df (a)(h) = df , 0, 1 (h1 , h2 , h3 ) = hh, ∇f (a)i =
2
∂f π ∂f π ∂f π
= h1 , 0, 1 + h2 , 0, 1 + h1 , 0, 1 =
∂x 2 ∂y 2 ∂z 2
π π π
= h1 · (−1 sin ) + h2 · (1 sin ) + h3 · (2 · 1 cos ) = h1 · 1 + h2 · 1 + h3 · 2 · 0 =
2 2 2
= −h1 + h2 .
Conlusion: for the two distinct particular cases considered, we have determined two
different differential functions, namely
and π π
df , 0, 1 : R3 → R, df , 0, 1 = −h1 + h2 , ∀(h1 , h2 , h3 ) ∈ R3 .
2 2
Solution:
∂f
a) Let (x, y) ∈ R2 be randomly chosen. Then ∂x
(x, y) = −e−x sin(x+2y)+e−x cos(x+
2y) and ∂f
∂y
(x, y) = 2e−x cos(x + 2y).
8
We notice that the partial derivatives with respect to both variables are continuous
functions. This means that f has a differential function at all the points in R2 .
For the given a = 0, π4 , the gradient is
π ∂f π ∂f π
∇f 0, = 0, , 0,
4 ∂x 4 ∂y 4
π π π
= −e−0 sin 0 + + e−0 cos 0 + , 2e−0 cos 0 + = (−1, 0).
2 2 2
The differential is the function df 0, π4 : R2 → R, defined by
π π
df 0, (h1 , h2 ) = hh, ∇f 0, i = h1 · (−1) + h2 · 0 = −h1 , ∀h = (h1 , h2 ) ∈ R2 .
4 4
given by
1 1
df 1, 0, (h1 , h2 , h3 ) = hh, ∇f 1, 0, i = h1 · 0 + h2 cot 0 + h3 · (−π).
2 2
Thus
1
df 1, 0, (h1 , h2 , h3 ) = −π · h3 ∀h = (h1 , h2 , h3 ) ∈ R3 .
2
Let (x, y) ∈ R2 be randomly chosen. To begin with, we notice that our function is a
vector one, of vector variables, so it takes vectors of dimension two and maps them into
vectors of dimension three. In order to determine the differential function, we need (if
they exist and are continuous functions) all the partial derivatives. We will consider
f = (f1 , f2 , f3 ), with f1 , f2 , f3 : R2 → R
9
f1 (x, y) = cos x + sin y, f2 (x, y) = sin x + cos y, f3 (x, y) = ex−y , ∀(x, y) ∈ R2 .
We start computing the partial derivatives of f1 .
∂f1
(x, y) = (cos x + sin y)0x = − sin x + 0 = − sin x,
∂x
and
∂f1
(x, y) = (cos x + sin y)0y = 0 + cos y = cos y.
∂y
We continue with
∂f2
(x, y) = (sin x + cos y)0x = cos x + 0 = cos x,
∂x
and
∂f2
(x, y) = (sin x + cos y)0y = 0 − sin y = − sin y.
∂y
And conclude with
∂f3
(x, y) = (ex−y )0x = ex−y · (x − y)0x = ex−y · (1 − 0) = ex−y
∂x
and
∂f3
(x, y) = (ex−y )0y = ex−y · (x − y)0y = ex−y · (0 − 1) = −ex−y .
∂y
We construct the Jacobi matrix associated to the function f at the point (x, y),
∂f1 ∂f1
∂x (x, y) ∂y (x, y)
− sin x
cos y
∂f2 ∂f2
J(f )(x, y) = ∂x (x, y) ∂y (x, y) = cos x − sin y
∂f3 ∂f3
∂x (x, y) ∂y (x, y)
ex−y −ex−y
We notice that all the partial derivatives are continuous functions, thus f is differen-
tiable at each random point (x, y) ∈ R2 . The differentiable function is df (x, y) : R2 → R3
given by
h1
df (x, y)(h1 , h2 ) = J(f )(x, y) · =
h2
− sin x
cos y
− sin x · h1 + cos y · h2
h1
=
cos x − sin y
· h2 =
cos x · h1 − sin y · h2
ex−y · h1 − ex−y · h2
ex−y −ex−y
10
This is the matrix form of the linear map df (x, y). It vector form is
ex−y · h1 − ex−y · h2 ,
d(f )(x, y)(h1 , h2 ) = − sin x · h1 + cos y · h2 , cos x · h1 − sin y · h2 ,
π π
df , (h1 , h2 ) = (−h1 , −h2 , h1 − h2 ) , ∀(h1 , h2 ) ∈ R2 .
2 2
Let us recall the fact that a vector in Rn may be written in its matrix form, as a
matrix with n rows and 1 column, thus
x1
x2
x = (x1 , ..., xn ) =
...
x3
11