Professional Documents
Culture Documents
CEE 471, Fall 2019: HW2 Solutions: Bhavesh Shrimali, Aditya Kumar
CEE 471, Fall 2019: HW2 Solutions: Bhavesh Shrimali, Aditya Kumar
Note that for the indicial notation ui,j , the first index i goes with the rows and the second index
j goes with the columns.
(b) We have x = x1 e1 + x2 e2 + x3 e3 . Then in indicial notation,x · u can be expressed as xj uj .
Therefore grad(x · u) is
∂A−1 −1
kl Akl ∂A−1
= 2A−1
kl
kl
(1)
∂Aij ∂Aij
∂A−1 ∂(Aim A−1
mj )
To compute kl
, we make use of the identity Aik A−1
kj = δ ij . Differentiating it gives =
∂Aij ∂Akl
0. Expanding with the product rule yields to
−1
∂Aim −1 ∂Amj
Amj + Aim =0
∂Akl ∂Akl
∂A−1
mj
δik δml A−1
mj + A im =0
∂Akl
∂A−1
mj
δik A−1
lj + A im =0 (2)
∂Akl
Multiplying both side of Equation ((2)) by A−1
ni (note the choice of indices) gives
∂A−1
nj
= −δik A−1 −1 −1 −1
ni Alj = −Ank Alj
∂Akl
∂A−1
ij
or = −A−1 −1
ik Alj .
∂Akl
2
∂A−1
Therefore kl
= −A−1 −1
ki Ajl . Plugging it back in Equation ((1)), we get
∂Aij
∂A−1 −1
kl Akl
= −2A−1 −1 −1
ki Akl Ajl ... ( 5 points)
∂Aij
∂f
Then = −2A−T A−1 A−T . ♣
∂A
It follows that
∂2f
= 2(A−1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1 −1
km Ani Ajl Akl +Aki Ajm Anl Akl +Aki Ajl Akm Anl ). ♣ ... ( 5 points)
∂Aij ∂Amn
Hence, for A and U ∈ Lin, where Lin is the set of all second order tensors, we have
Thus, det(A + U)−det(A) is equal to a term linear in U plus a term that approaches 0 faster
than U. Finally we have:
As U −→ 0, we have
∂g
· U = det(A)tr A−1 U
Dg(A)[U] =
∂A
∂g
=⇒ · U = det(A)A−T · U
∂A
Å ã
∂g
− det(A)A−T · U = 0
∂A
∂g
=⇒ = det(A)A−T ♣ ... ( 7.5 points) (4)
∂A
(ii) Recall from HW1-Problem 7 that
1î 3
ó
(trA) − 3 (trA) trA2 + 2trA3 ,
g(A) = detA =
6
so that, using the product rule for derivation, we have
∂(trA2 ) ∂(trA3 )
ï ò
∂g 1 2 ∂(trA) ∂(trA) 2
= 3 (trA) −3 trA − 3trA +2 , (5)
∂A 6 ∂A ∂A ∂A ∂A
3
• trA = Akk . Thus
∂(trA) ∂Akk
=
∂A ∂Aij
= δik δkj
= δij = I. (6)
∂ det(A) ∂ det(A)
Therefore, = det(A)A−T or with indicial notation = det(A)A−1
ji . ♣
∂A ∂Aij
We now take the second derivative of det(A). To do so, we compute the derivative of the previous
expression with respect with respect to Akl because the first derivative was taken earlier with respect
to Aij (see Equations ((6))-((8))). Using the product rule and the derivative of A−1 with respect to
A derived before, we have
∂2g ∂2g
= (10)
∂A2 ∂Aij ∂Akl
∂ det(A) −1 ∂A−1
ji
= Aji + det(A) (11)
∂Akl ∂Akl
= det(A)A−1 −1 −1 −1
lk Aji − det(A)Ajk Ali (12)
= det(A)(A−1 −1
lk Aji − A−1 −1
jk Ali ) ... ( 7.5 points) (13)
4
3. We consider a vector field v(x) = (x1 e1 + x2 e2 ) ln(x21 + x22 ) defined over a cylinder Ω of radius R and
height H as represented in Figure (fig. 1). The boundary of the cylinder ∂Ω is the union of the lateral
face ∂Ω1 and the top and bottom faces ∂Ω2 and ∂Ω3 . Therefore the outward normal unit vector n(i)
of ∂Ωi is given by
x1 x2
• n(1) = e1 + e2
R R
• n(2) = e3
• n(3) = −e3
Following the definition, we compute div(v(x))
Next
ZZZ ZZ
div(v(x)) dx = v(x) · n dx (Divergence Theorem)
Ω
Z Z∂Ω ZZ ZZ
= v(x) · n(1) dx + v(x) · n(2) dx + v(x) · n(3) dx
∂Ω1 ∂Ω2 ∂Ω3
ZZ
(1) (i)
= v(x) · n dx (v · n = 0 for i = 2, 3)
∂Ω1
x21 x2
ZZ Å ã
= ln(R2 ) + 2 dx (x11 + x22 = R2 on ∂Ω1 )
R R
Z∂Ω
Z1
= 2R ln(R) dx
∂Ω1
= 4πHR2 ln(R). ♣ ... ( 10 points)
The volume integral of div(v(x)) can be computed without using the divergence theorem. However it
would be more difficult.
5
4. Let Ω denote the volume occupied by a unit sphere, the surface of which is denoted by ∂Ω and has an
outward normal unit vector n. Consider a frame of reference in which origin coincides with the center
of the sphere. In this reference frame, the position vector is aligned with the normal vector.
RR
(a) We write ∂Ω
x ⊗ n dx in indicial notation as
ZZ ZZZ
∂xi
xi nj dx = dx (Divergence Theorem)
∂Ω ∂xj
Z Z ZΩ
= δij dx
ZΩZ Z
= δij dx
Ω
4π
= δij . ♣ ... ( 10 points)
3
RRR
Similarly, Ω xi dx = 0 for i = 2, 3 respectively because the problem is symmetric with respect
to the cartesian basis. Therefore,
ZZZ ZZ
xi dx = 0 =⇒ ni nj nk dx = 0. ♣ . . . ( 10 points)
Ω ∂Ω
6
(c) Following the same derivation again, we have
ZZ ZZZ
∂(ni nj nk )
ni nj nk nl dx = dx (Divergence Theorem)
∂Ω ∂xl
Z Z ZΩ
∂(xi xj xk )
= dx (ni = xi for a unit sphere)
∂xl
Z Z ZΩ
= δil xj xk + δjl xi xk + δkl xi xj dx
Ω
ZZ Z ZZZ ZZZ
= δil xj xk dx + δjl xi xk dx + δkl xi xj dx.
Ω Ω Ω
RRR
We now just need to evaluate x x dx and we use again the spherical coordinates to do so.
Ω i j
2 2 2
We then have 6 combinations of xi xj to investigate:
RRRx1 , x2 , x3 , x1 x2 , x1 x3 , and x2 x3 . It is easy to
show as before, by choosing i = 1 and j = 2, that Ω xi xj dx = 0 if i 6= j. Finally, for i = j = 1
ZZZ Z 1 Z π Z 2π
x21 dx = r4 cos(φ)2 sin(θ)3 dr dθ dφ
Ω r=0 θ=0 φ=0
ÇZ 1
å ÅZ π ã ÇZ 2π
å
4 2 1 + cos(2φ)
= r dr [1 − cos(θ) ] sin(θ) dθ dφ
0 0 0 2
ÇZ π ï 3 òπ å
π cos (θ)
= sin(θ) dθ +
5 0 3 0
4π
= .
15
This result being correct as well for Ω x22 dx and Ω x23 dx, we have
RRR RRR
ZZZ
4π
xi xj dx = δij
15
ZZ Ω
4π
=⇒ ni nj nk nl dx = (δil δjk + δjl δik + δkl δij ). ♣ ... ( 10 points)
∂Ω 15