Post · 11 min read· pp. 30–39
Differentiation With Respect To Time
Differentiation with respect to time can be written in several forms.
velocity=dtdx=(dtdx1,dtdx2,dtdx3) =x˙=x˙i=xi,t
acceleration=dtdv=(dtdv1,dtdv2,dtdv3) =v˙=v˙i=vi,t
acceleration=dt2d2x=(dt2d2x1,dt2d2x2,dt2d2x3) =x¨=x¨i=xi,tt
One can use the derivative with respect to t, or the dot, which is probably the most popular, or the comma notation, which is a popular subset of tensor notation.
Note that the notation xi,tt somewhat violates the tensor notation rule of double-indices automatically summing from 1 to 3. This is because time does not have
3 dimensions as space does, so it is understood that no summation is performed.

Differentiation of a Vector
Suppose v=(5t2,sint,e3t). Then v˙ equals
v˙=(10t,cost,3e3t)

Helix Example

The position of an ant crawling around and up a pipe is given by
x=(2cost,2sint,5t). The velocity, v, equals
x˙=v=(−2sint,2cost,5)
and the acceleration is
x¨=v˙=a=(−2cost,−2sint,0)
which always points toward the center of the pipe.
Differentiation With Respect To A Coordinate
Suppose you want to differentiate a function, f(x,y,z), with respect to y.
This is written as
∂y∂for∂x2∂forf,2
where the comma is common tensor notation for a derivative.
In the more general case, differentiation with respect to xj is (yes, this is a gradient)
∂xj∂forf,j
Differentiation of a vector, v, is
∂xj∂vor(∂xj∂vx,∂xj∂vy,∂xj∂vz)orvi,j
Differentiation of a tensor, σ, is
∂xk∂σorσij,k
As with vectors, every component of a tensor is differentiated.

Differentiation of a Vector
Suppose v=(3x2−2y,z2+x,y3−z). Then ∂y∂v equals
∂y∂v=(−2,0,3y2)
Gradient
The gradient of a function, f(x), is written, ∇f(x), and is a vector.
It is formed by differentiating the function with respect to each coordinate.
∇f(x)=(∂x1∂f,∂x2∂f,∂x3∂f)
Tensor Notation
The gradient can also be written as ∂xi∂f, or simply as
f,i.

Gradient Example
Suppose f(x)=3x2−2yz2. Then the gradient is
∇f(x)=(6x,−2z2,−4yz)
The gradient of a scalar function tells how much the function increases along
each global coordinate. In the above example, f increases at the rate of
6x along the x axis, −2z2 along the y axis, and
−4yz along the z axis.
Coincidentally, the gradient also gives the direction, or orientation, in space
that corresponds to the greatest rate of increase. The following example,
in 2D space, demonstrates this.

2nd Gradient Example

Take for example the paraboloid, f(x,y)=2x2+y2. The gradient
at x=(5,3) is
∇f(x,y)=(4x,2y)=(20,6)
Therefore, at x=(5,3), f is increasing at the rate of 20
along the x axis, and at the rate of 6 along the y axis.
20i+6j also corresponds to the direction in the x,y plane
along which f will increase the most quickly.
Gradients of vectors can also be computed. The result will be
a 2nd order tensor. For example, the gradient of a velocity field is written as
∇v. Writing this in tensor notation vi,j shows
more clearly that the result is a 2nd order tensor because of the presence
of the i and j subscripts. Gradients arise in mechanical deformation
and heat conduction applications. Mechanical strains are related to
gradients of displacements
and heat conduction is related to the gradient of the temperature distribution.
Divergence
The divergence of a vector is a scalar result, and the divergence of a
2nd order tensor is a vector. The divergence of a vector is written as
∇⋅v, or vi,i in tensor notation. It is
computed as
\begin{eqnarray}
\nabla \cdot {\bf v} & = & (
{\partial \over \partial x} {\bf i} +
{\partial \over \partial y} {\bf j} +
{\partial \over \partial z} {\bf k} )
\cdot( v_x {\bf i} + v_y {\bf j} + v_z {\bf k} ) \\
\\
& = &
{\partial v_x \over \partial x} +
{\partial v_y \over \partial y} +
{\partial v_z \over \partial z}
\end{eqnarray}
Tensor Notation
As stated above, the divergence is written in tensor notation as vi,i.
It is very important that both subscripts are the same because this dictates
that they are automatically summed from 1 to 3. They can in fact be any
letter one desires, so long as they are both the same letter.

Divergence Example
If v=(3x2−2y,z2+x,y3−z), then the dot product is
∇⋅v=∂x∂(3x2−2y)+∂y∂(z2+x)+∂z∂(y3−z)=6x−1
The divergence of velocity vectors often arises in the discussion of incompressibility
and conservation of mass.
Curl
The curl of a vector is the cross product of partial derivatives with the vector.
Curls arise when rotations are important, just as cross products of vectors tend to do.
Rotations of solids automatically imply large displacements, which in turn automatically
imply nonlinear analyses. And this is why one seldom comes across curls... because
most analyses are linear.
Curls are calculated as follows.
\begin{eqnarray}
\nabla \times {\bf v} & = & (
{\partial \over \partial x} {\bf i} +
{\partial \over \partial y} {\bf j} +
{\partial \over \partial z} {\bf k} )
\times ( v_x {\bf i} + v_y {\bf j} + v_z {\bf k} ) \\
\\
& = &
\left|
\matrix {
{\bf i\;} & {\bf j\;} & {\bf k\;} \\
{\partial \over \partial x} &
{\partial \over \partial y} &
{\partial \over \partial z} \\
v_x & v_y & v_z
} \right| \\
\\
& = &
({\partial \, v_z \over \partial y} - {\partial \, v_y \over \partial z}) {\bf i}
+ ({\partial \, v_x \over \partial z} - {\partial \, v_z \over \partial x}) {\bf j}
+ ({\partial \, v_y \over \partial x} - {\partial \, v_x \over \partial y}) {\bf k}
\end{eqnarray}

Tensor Notation of Curls
The curl of a vector is written in tensor notation as ϵijkvk,j.
It is critical to recognize that the vector is written as vk,j here, not vj,k.
This is because the curl is ∇×v, not v×∇.
An easy way to get the tensor notation right is to think of
∇×v as ϵijk∇jvk and note the order of the
subscripts. Of course, this reduces to the correct result: ϵijkvk,j.
As with cross products, the fact that j and k both occur twice in ϵijkvk,j
dictates that both are automatically summed from 1 to 3. The term expands to
\matrix {
\epsilon_{ijk} v_{k,j} & = &
\epsilon_{i11} v_{1,1} & + & \epsilon_{i12} v_{2,1} & + & \epsilon_{i13} v_{3,1} & + & \\
& & \epsilon_{i21} v_{1,2} & + & \epsilon_{i22} v_{2,2} & + & \epsilon_{i23} v_{3,2} & + & \\
& & \epsilon_{i31} v_{1,3} & + & \epsilon_{i32} v_{2,3} & + & \epsilon_{i33} v_{3,3}
}

Curls Using Tensor Notation
To obtain the yth component of a curl, set i equal to 2 in the above equation.
\matrix {
\epsilon_{2jk} v_{k,j} & = &
\epsilon_{211} v_{1,1} & + & \epsilon_{212} v_{2,1} & + & \epsilon_{213} v_{3,1} & + & \\
& & \epsilon_{221} v_{1,2} & + & \epsilon_{222} v_{2,2} & + & \epsilon_{223} v_{3,2} & + & \\
& & \epsilon_{231} v_{1,3} & + & \epsilon_{232} v_{2,3} & + & \epsilon_{233} v_{3,3}
}
All subscripts are now specified, and this permits evaluation of all alternating tensors.
All of them will equal zero except two, leaving
ϵ2jkvk,j=v1,3−v3,1=∂z∂vx−∂x∂vz
which is again consistent with the determinant result (as it must be).
Results for the xth and zth components
are obtained by setting i equal to 1 and 3, respectively.

Curl Example - Rotating Disk

Consider a disk rotating about the z axis such that
\begin{eqnarray}
x & = & X \cos (\omega \, t) - Y \sin (\omega \, t) \\
y & = & X \sin (\omega \, t) + Y \cos (\omega \, t) \\
z & = & Z
\end{eqnarray}
where X is the vector of original coordinates of each point at t=0,
and x is the vector of that point's coordinates at any other time, t.
Note that this is common in Continuum Mechanics to use X as the position
vector at t=0, the so-called reference configuration, and x
for the position vector following any translations, rotations, and deformations,
the so-called current configuration.
The velocity vector is
{\bf v} = {\partial {\bf x} \over \partial t} =
\left(
\begin{eqnarray}
& - \omega X \sin (\omega \, t) - \omega Y \cos (\omega \, t) \\
& + \omega X \cos (\omega \, t) - \omega Y \sin (\omega \, t) \\
& 0
\end{eqnarray}
\right)
which simplifies to
v=(−ωy,ωx,0)
making the curl of the velocity vector relatively simple to compute.
∇×v=(0,0,2ω)
As stated above, the curl is related to rotations.
It turns out that ∇×v gives the axis of rotation, and
21∣∇×v∣ is the rotational rate.
So 21(∇×v) gives
21(∇×v)=(0,0,ω)
Laplacian
The Laplacian is the divergence of the gradient of a function. It often arises
in 2nd order partial differential equations and is usually written as
∇2f(x). It can also be written in the less popular, but more
descriptive form of ∇⋅∇f(x). Its definition is
∇2f(x)≡∂x2∂2f(x)+∂y2∂2f(x)+∂z2∂2f(x)
Tensor Notation
The Laplacian is written in tensor notation simply as f,ii where the two
i indices means that they are automatically summed from 1 to 3.

Laplacian Example
Determine the Laplacian of f(x)=2x3y−zsin(y).
Start by calculating the gradient of f(x).
∇f(x)=(6x2y,2x3−zcos(y),−sin(y))
And the divergence of the gradient (which is the Laplacian after all) is
∇2f(x)=∇⋅∇f(x)=12xy+zsin(y)
Derivatives of Vector Products
Differentiation of vector products (dot, cross, and diadic) follow the same rules as
differentiation of scalar products. For example, the derivative of a dot product is
dtd(a⋅b)=dtda⋅b+a⋅dtdb
while the derivative of a cross product is
dtd(a×b)=dtda×b+a×dtdb
and the derivative of a diadic product is
dtd(a⊗b)=dtda⊗b+a⊗dtdb

Dot Product Derivative Example
Suppose a=(5t,sint,et) and b=(t2,sint,6t), then
a⋅b=5t3+sin2t+6tet
and the derivative is
dtd(a⋅b)=15t2+2sintcost+6(t+1)et
Applying the differentiation product rule gives the same result.
\begin{eqnarray}
{d \, {\bf a} \over dt} \cdot {\bf b} + {\bf a} \cdot {d \, {\bf b} \over dt} & = &
(5, \cos t, e^t) \cdot (t^2, \sin t, 6t) + (5t, \sin t, e^t) \cdot (2t, \cos t, 6)\\
\\
& = & 15 t^2 + 2 \sin t \cos t + 6 (t + 1) e^t
\end{eqnarray}