Professional Documents
Culture Documents
Part Iii: Functions From R Tor
Part Iii: Functions From R Tor
Week 7 86
r : U ⊆ R → Rn
f : U ⊆ Rn → R
f : U ⊆ Rn → Rm
F : U ⊆ R3 → R3
F : U ⊆ Rn → Rn
A few examples
F(x, y) = −yi + xj
F(x, y, z) = xi + yj + zk
ẋ1 = f1 (x1 , · · · , xn )
..
.
ẋn = fn (x1 , · · · , xn )
Variable substitution
Consider integrating
ˆ 1 ˆ 1
1
f (x) dx = √ dx
0 0 1 − x2
by variable substitution
Thus
ˆ 1 ˆ π
1 2 cos u π
√ dx = √ du =
0 1 − x2 0 cos2 u 2
89 MA134 Geometry and Motion
Polar coordinates
¨ ˆ 3 ˆ √
9−x2
f dA = cos(x2 + y 2 ) dy dx
Ω −3 0
dA = r dr dθ
Thus
ˆ 3 ˆ √
9−x2
cos(x2 + y 2 ) dy dx
−3 0
ˆ θ=π ˆ r=3
= cos(r2 )r dr dθ
θ=0 r=0
x = x(u, v) y = y(u, v)
where here
x(u, v) = au + bv y(u, v) = cu + dv
u = u(x, y) v = v(x, y)
T :Γ→Ω
4A = kr1 × r2 k
where,
r 1 = x1 − x 0 , r2 = x2 − x0
Thus
i j k
a c
r1 × r2 = a c 0 4u4v = 4u4v k
b d 0 b d
dA = |J| du dv
¨ ¨
f dA = f (x(u, v), y(u, v)) |J| du dv
Ω Γ
Week 8 92
x = x(u, v) y = y(u, v)
∂x ∂y
x2 ≈ x0 + 4vi + 4vj
∂v ∂v
93 MA134 Geometry and Motion
where,
r1 ≈ x1 − x0 , r2 ≈ x2 − x0
4A ≈ kr1 × r2 k
where
∂x ∂y
∂u ∂u
r1 × r2 = 4u4v k
∂x ∂y
∂v ∂v
∂(x, y)
dA = du dv
∂(u, v)
Week 8 94
¨ ¨
∂(x, y)
f dA = f (x(u, v), y(u, v))
du dv
Ω Γ ∂(u, v)
r 1 ≈ x1 − x 0 , r 2 ≈ x2 − x0 , r3 ≈ x3 − x0
with
4V ≈ (r1 × r2 ) · r3
95 MA134 Geometry and Motion
dV = |J| du dv dw
˚ ˚
∂(x, y, z)
f dV = f du dv dw
Ω Γ ∂(u, v, w)
Additional Material
You will notice that in our expressions in generalised coordinates we took the absolute value of the
Jacobian
∂(x, y) ∂(x, y, z)
|J| du dv, ∂(u, v) du dv,
∂(u, v, w) du dv dw
This seems to be the convention used in text books at this level. It is not strictly necessary, but one
must properly take into account limits for integration if one does not include the absolute value. We
will use the absolute value together with the following rule about setting up integrals:
Always use limits of integration such that the lower limit is smaller than the upper limit..
For example, in
¨ ¨
∂(x, y)
f dA = f (x(u, v), y(u, v)) du dv
Ω Γ ∂(u, v)
¨ ˆ 1ˆ 1
if Γ is the rectangular region 0 ≤ u ≤ 1, −1 ≤ v ≤ 1, then express as repeated integrals
ˆ 1ˆ 1 ˆ −1 ˆ 1 ˆ 1ˆ 0 Γ 0 −1
and not or .
−1 0 1 0 −1 1
f1 (x1 , x2 , · · · , xn ),
..
.
fj (x1 , x2 , · · · , xn ),
..
.
fm (x1 , x2 , · · · , xn )
Now differentiate each component function with respect to each independent variable and arrange
these in a matrix. The matrix is known as the derivative matrix of the function f . It is commonly
denoted Df ,
∂f1 ∂f1
···
∂x1 ∂xn
. ..
Df = .
. . .
∂fm ∂fm
···
∂x1 ∂xn
Comments
• You will recognise special cases we have already encountered. A vector function r(t) corresponds
to f : R → Rm . The derivative matrix has one column, the components of r0 (t). (When a function
depends on only one variable, the partial derivatives become ordinary derivatives.)
A function of several variables corresponds to the case f : Rn → R. The derivative matrix has one
row, the elements of the gradient vector ∇f .
97 MA134 Geometry and Motion
The general case includes also the derivative of a function of one variable, f : R → R. The derivative
matrix is just a 1 × 1 matrix.
In the context of transformations, we encountered functions f : Rn → Rn and we computed the
elements of the derivative matrix. The Jacobian of the transformation we now see as the determinant
of the derivative matrix. In the context of transformations the derivative matrix is often called the
Jacobian matrix of the transformation.
• Df is itself a function of the independent variables and this may be indicated by Df (x1 , · · · , xn ) or
by Df (x).
• A function is differentiable if it can be approximated by a linear map (in a certain precise sense which
you will learn in future modules). You know from Linear Algebra that there is a correspondence
between linear maps and matrices. The derivative matrix is the matrix representation of the linear
map corresponding to the derivative.
Finally, we return once again to the Chain Rule. Suppose now that we want to compose two functions
h and f to form a function g = f ◦ h and then take its derivative. We need agreement between the
domain of f and the range of h and we need differentiability, but we will assume this. The question is,
what is the derivative of g in terms of the derivatives of f and h? The answer is given by the general
Chain Rule.
Formally, let h be a differentiable function h : Rn → Rp and let f be a differentiable function
f : Rp → Rm . Compose these to obtain g : Rn → Rm , where g = f ◦ h. The derivative of g is given
by
The General Chain Rule.
The Chain Rule is expressed very simply as the product of derivative matrices. It is frequently
expressed in component form using summation
p
∂gi X ∂fi ∂hk
=
∂xj ∂hk ∂xj
k=1
∂fi
where is understood to mean the derivative of fi with respect to its k th argument evaluated at
∂hk
the appropriate point h(x). Recall, I warned you about possible confusion with the Chain Rule because
of compact notation.
In the case n = m = 1 the general Chain Rule reduces to the special case considered in Week 4.
Using the notation from Week 4 where g = f ◦ r, this special case is the following matrix product
dx1
dt
dg ∂f1 ∂f1 ..
= ··· .
dt ∂x1 ∂xp
| {z } | {z } dxp
1×1 1×p
dt }
| {z
p×1
(Previously n was used where here p appears. We have suppressed where the various derivatives are
evaluated.) Which could be written as before as a sum or using the dot product
p
dg X ∂f dxi dg dr
= , = ∇f ·
dt ∂xi dt dt dt
i=1
Week 8 98