Fluid Mechanics for MAP/Scalar, Vectors and Tensors

>back to Chapters

Motivation
Each scientific field needs an optimised language. Without it, this field can not develope. For example, calculus could not develop with Roman numbers.

$$ \displaystyle \displaystyle XXVIII * XXIV = ?$$

Without arabic numbers and the decimal system, even the basic operations would not be possible.

Fluid Mechanics deals with the changes of flow and fluid variables in three space dimensions and in time. In order to tackle with this complexity, there is also a need for an optimized language in the field of fluid mechanics. Unfortunately, for the same vector operation there are multiple mathematical notations:

$$ \displaystyle div \vec{a} = \nabla \cdot \vec{a}\ or\ grad\ a = \nabla \ a\ \textrm{and\ for\ a\ vector} \ \bar{a},\ \bar{\vec{a}}\ or\ \tilde{\vec{a}}$$

Symbols are not unique and, somewhat, confusing, i.e. unified language is beneficial to speed up the development in this field. In this chapter, we will be particularly introduced to such unified mathematical concept, Tensor which is very important for computational fluid dynamics and also many other field of science. This chapter will give a gentle introduction about fascinating Tensor but readers are encouraged to read more from the references.Due to this short introduction,Tensor will not be used any other chapter.

Tensor
The concept of tensor could be easily understood if we want to imagine a function which takes vector as input and do some operation with it and then give another vector as output. For example, let's assume a vector which is defined in Euclidean reference co-ordinate system. Now for some unknown reason, the co-ordinate system changed via rotation or translation. To find our previous vector defined in the new co ordinate system, we can assume a magical operator or function which will take the initial components of the vector in old co-ordinate system as input and give us back the new vector component in new co-ordinate system as output. In other way, New position vector= f(Old position vector). It is found that if this operator or function is linear, then this function or operator would be a 2nd rank tensor. A second rank tensor looks like $$3\times3$$ matrix. For example,

$$\begin{vmatrix} 1 & 5 & 3\\ 2 & 9 & 4\\6 & 1 & 8 \end{vmatrix}$$ is a $$3\times3$$ matrix. If we now multiply this matrix with another matrix with $$1\times3$$ matrix we will get as an output, $$3\times1$$ matrix where the element of these matrices could be imagined as the vector components of initial and new vector. So we can say that a 2nd rank Tensor is capable to keep the map or information of how a vector will change between new to old co-ordinate system. Now, we have small introduction to Tensor, we can present the definition of tensor. A tensor $$\boldsymbol{A}\,$$ is a linear transformation from a vector space $$\mathcal{V}$$ to $$\mathcal{V}$$. Thus, we can write

\boldsymbol{A} : \mathbf{u} \in \mathcal{V} \rightarrow \mathbf{v \in \mathcal{V}}~. $$ which means tensor A operates on  vector u to give new vector v.

This concept is found to be extremely useful where all computational calculations have to be performed in somehow matrix format. A very nice illustration of use of tensor is shown here. Very common examples of Tensor are : Deformation Gradient Tensor, Stress Tensor, Einstein's famous stress-energy tensor. Even dot and cross product of two vectors are also tensor.

Although the concept of linear operation is very useful to understand the application of tensor at first time,it's not all. Let's consider about a cylinder which is stretched along it's length and due to poisson's contraction, we will see contraction in radial direction to keep the volume constant. So we can say that the deformation along different directions is somehow related on the stress applied along different directions.It appears that this relationship is a tensor which is called Stiffness Tensor and this relationship forms like :[Strain Tensor(written in column vector and reduced form)]=[Stiffness Tensor,C][Stress Tensor(same as Strain Tensor)]. The relationship for isotropic material will look like below: $$  \begin{bmatrix}\varepsilon_{11} \\ \varepsilon_{22} \\ \varepsilon_{33} \\ 2\varepsilon_{23} \\ 2\varepsilon_{31} \\ 2\varepsilon_{12} \end{bmatrix} = \begin{bmatrix}\varepsilon_{11} \\ \varepsilon_{22} \\ \varepsilon_{33} \\ \gamma_{23} \\ \gamma_{31} \\ \gamma_{12} \end{bmatrix} = \cfrac{1}{E} \begin{bmatrix} 1 & -\nu & -\nu & 0 & 0 & 0 \\ -\nu & 1 & -\nu & 0 & 0 & 0 \\ -\nu & -\nu & 1 & 0 & 0 & 0 \\ 0 & 0 & 0 & 2(1+\nu) & 0 & 0 \\ 0 & 0 & 0 & 0 & 2(1+\nu) & 0 \\ 0 & 0 & 0 & 0 & 0 & 2(1+\nu) \end{bmatrix} \begin{bmatrix}\sigma_{11} \\ \sigma_{22} \\ \sigma_{33} \\ \sigma_{23} \\ \sigma_{31} \\ \sigma_{12} \end{bmatrix} $$

This above matrix looks differently for an anisotropic material. So in other way, we can say this particular tensor can help to express how the Stress Tensor will be influencing Strain Tensor and this 'how' is a signature of type of material which is point of interest. Tensor could be envisioned in more easy way. Let us consider a vector which has components of $$a_{x1}, a_{y1}, a_{z1}$$. This components are essential to express this vector precisely in a given co-ordinate system.These components together will give value of the vector by $$\sqrt{a_{x1}^{2}+a_{y1}^{2}+a_{z1}^{2}}$$. If this co-ordinate system change also, the vector will be represented with 3 components with different value $$a_{x2}, a_{y2}, a_{z2}$$ but $$\sqrt{a_{x2}^{2}+a_{y2}^{2}+a_{z2}^{2}}$$ would give the same value as previous which means that something remains as identity of the vector. The components changed keeping something constant. Now lets consider about tensor. Imagine we form an entity where we have 3 vectors as components(meaning actually it has 9 or $$3\times3$$ components of vectors now) and they are somehow coupled.This means that when the co-ordinate system will change, the individual components of vector(hence the entity) will be determined keeping 'some other value' constant like $$a_{x},a_{y},a_{z}$$ in the case of vector. Of course, this 'other value' has to be calculated by using 9 components of that entity. After transformation, this new 9 components will give the same 'other value'. It would be shown later on actually that vector itself is 1st order tensor.

Scalar: Tensor of 0th order
We may associate some properties of fluid or flow at one point without any preference of direction.

$$ \displaystyle P = \underbrace{1.01 \times10^{5}}_{magnitude}\ \underbrace{\left[\frac{N}{m^{2}}\right]}_{unit}, T = 293 \left[K\right]\ \text{and}\ \rho = 1.01 \times10^{3} \left[\frac{kg}{m^{3}}\right]$$

Those are examples of such fluid variables. Summation can be only done between variables having the same unit, i.e.

$$ \displaystyle \displaystyle a[Pa] + b[Pa] = a + b [Pa]$$

$$ \displaystyle a[Pa] + b[K] =\ ?$$ Multiplication is valid for variables having different units.

$$ \displaystyle \displaystyle a[Pa] * b[K] = a* b [Pa K]$$ Products of variables having different units, have a new physical meaning.

$$ \displaystyle \displaystyle m = \rho * V$$

$$ \displaystyle [kg] = \left[\frac{kg}{m^{3}}\right][m^{3}]$$ Power loss (Energy loss per unit time)



$$ \displaystyle \Delta P\cdot \dot{V} = \left|\Delta P\right| \left|\dot{V}\right| \left[\frac{N}{m^{2}}\right]\left[\frac{m^{3}}{s}\right]$$

$$ \displaystyle \Delta P \cdot \dot{V} = \left|\Delta P\right| \left|\dot{V}\right| \left[\frac{Nm}{s}\right]$$

$$ \displaystyle \Delta P \cdot \dot{V} = \left|\Delta P\right| \left|\dot{V}\right| \left[Watt\right]$$

Watt is the unit for Power.

Vectors: 1st order tensors
Variables of flow, associated with a point and a direction, like force and velocity, are vectors.

The direction of a vector should be specified in relation with respect to a given frame of reference. This frame of reference is arbitrary as the units. Let us use the Cartesian coordinate system having 3 mutually orthogonal axes. $$ \displaystyle U_{1}, U_{2}, U_{3}$$ are components of this vector and can differ with respect to selected coordinate system but the amplitude not. Components allow us to reconstruct the vector in a particular system of reference. One should distinguish vector as an entity from its components.



Repeated indices in Sums
Summation of variables, identified with indices can be shortly written with the summation symbol fro series:

$$ \displaystyle a_{1}x_{1} + a_{2}x_{2} + a_{3}x_{3} + ... + a_{n}x_{n} = \sum_{i=1}^{n}{a_{i}x_{i}}$$

In short, we will write $$ \displaystyle a_{i}x_{i} \rightarrow$$ In other words, repeated indices means series sum over this index. Thus, $$ \displaystyle \vec{U} = U_{i}\ \vec{e}_{i}$$ $$ \displaystyle \vec{U} = \left|U\right| cos\alpha_{i}\ \vec{e}_{i}$$

Now we can introduce the component representation of a vector $$\vec{U}$$: $$ \displaystyle \displaystyle U_i = \left|U\right| cos\alpha_{i}$$

Let's look some examples: $$ \displaystyle \displaystyle a_{i}b_{i} = a_{1}b_{1} + a_{2}b_{2} + a_{3}b_{3} \,(i,j = 1,2,3) $$ whereas $$ \displaystyle \displaystyle a_{i}b_{j}$$ indicates no summation over $$i$$ and $$j$$ and $$ \displaystyle a_{ij}b_{k}$$ indicates also no summation. Other examples of summation are: $$ \displaystyle \displaystyle a_{ii}b_{j} = a_{11}b_{j} + a_{22}b_{j} + a_{33}b_{j}$$ $$ \displaystyle a_{ij}b_{j} = a_{i1}b_{1} + a_{i2}b_{2} + a_{i3}b_{3}$$

Dummy and free index
In the following expression $$ \displaystyle a_{ij}b_{j} = a_{ik}b_{k}\ (i,j,k = 1\ ...\ n) $$ the repeating index $$j$$ is also a dummy index, i.e. can be replaced by $$k$$. The following equality $$ \displaystyle a_{ij}b_{j} = a_{kj}b_{j}$$ is valid only when $$i = k$$. Then, $$i$$ is called free index

$$ \displaystyle y_{i} = a_{ir}x_{r}$$ for $$i, r = 1,2,3$$

can be expanded as

$$ \displaystyle y_{1} = a_{1r}x_{r}=a_{11}x_{1}+a_{12}x_{2}+a_{13}x_{3}$$

$$ \displaystyle y_{2} = a_{2r}x_{r}=a_{21}x_{1}+a_{22}x_{2}+a_{23}x_{3}$$

$$ \displaystyle y_{3} = a_{3r}x_{r}=a_{31}x_{1}+a_{32}x_{2}+a_{33}x_{3}$$

Einstein summation convention
Any expression involving a repeated index (sub- or superscript) shall automatically considered for its sum over the index range $$1,2,3...n$$.

Remark:
 * All indices have the same range, $$n$$, unless stated otherwise.
 * No idex appear more than twice in any given expresion.

Double sum
Sumed over i:

$$ \displaystyle \displaystyle a_{ij}x_{i}y_{j} = a_{1j}x_{1}y_{j} + a_{2j}x_{2}y_{j} + a_{3j}x_{3}y_{j}$$

Sumed over j:

$$ \displaystyle \displaystyle a_{ij}x_{i}y_{j} = (a_{11}x_{1}y_{1} + a_{12}x_{1}y_{2} + a_{13}x_{1}y_{3}) + (a_{21}x_{2}y_{1} + a_{22}x_{2}y_{2} + a_{23}x_{2}y_{3}) + (a_{31}x_{3}y_{1} + a_{32}x_{3}y_{2} + a_{33}x_{3}y_{3})$$

Substitution
Let $$ \displaystyle Q = b_{ij}y_{i}x_{j}$$ and $$ \displaystyle y_{i} = a_{ij}x_{j}$$.

Then $$ \displaystyle Q = b_{ij}a_{ij}x_{j}x_{j}$$. Here we find more than two repeated indices.

$$ \displaystyle 1^{st}$$ Find duplicated dumy index: $$ \displaystyle \rightarrow \ j$$.

$$ \displaystyle 2^{nd}$$ Change dummy index: $$ \displaystyle \rightarrow \ y_{i} = a_{ir}x_{r}$$.

$$ \displaystyle 3^{rd}$$ Substitude: $$ \displaystyle \rightarrow \ Q = b_{ij}a_{ir}x_{r}x_{j}$$.

Kronecker Delta
$$ \displaystyle \delta_{ij}=\left\{ \begin{matrix} 1 & i=j\\ 0 & i\neq j \end{matrix} \right.$$

$$ \displaystyle \displaystyle \delta_{ii} = \delta_{11} + \delta_{22} + \delta_{33} = 3$$

$$ \displaystyle \displaystyle \delta_{ij}x_{i}x_{j} = 1x_{1}x_{1} + 0x_{1}x_{2} + 0x_{1}x_{3} + 0x_{2}x_{1} + 1x_{2}x_{2} + 0x_{2}x_{3} + 0x_{3}x_{1} + 0x_{3}x_{2} + 1x_{3}x_{3}$$

$$ \displaystyle \displaystyle \delta_{ij}x_{i}x_{j} = x_{1}x_{1} + x_{2}x_{2} + x_{3}x_{3}$$

$$ \displaystyle \displaystyle \delta_{ij}x_{i}x_{j} = x_{i}x_{i}$$

$$ \displaystyle \displaystyle \rightarrow$$ replaces one of the dummy index with the other one.

Scalar Multiplication
Remember that,

$$ \displaystyle \vec{U} = U_{i}\ \vec{e}_{i}$$

$$ \displaystyle \vec{U} = \left|U\right| cos\alpha_{i}\ \vec{e}_{i}$$

$$ \displaystyle \alpha \vec{U} = \alpha U_{i} \vec{e}_{i} \rightarrow change\ only\ in\ amplitude.$$

Addition of Vectors
$$ \displaystyle \vec{W} = \vec{U} + \vec{V} = U_{i} \vec{e}_{i} + \vec{V}_{i} \vec{e}_{i} = (U_{i} + V_{i})\vec{e}_{i}$$

$$ \displaystyle \displaystyle W_{i} = U_{i} + V_{i}$$


 * Commutative:

$$ \displaystyle \vec{U} + \vec{V} = \vec{V} + \vec{U}$$


 * Associative:

$$ \displaystyle \vec{U} + (\vec{V} + \vec{W}) = (\vec{U} + \vec{V}) + \vec{W}$$

Scalar Product
$$ \displaystyle \vec{U}\cdot\vec{V} = U_{i}V_{i}$$

If m and n are unit vectors in the direction of $$ \displaystyle \vec{U}$$ and $$ \displaystyle \vec{V}$$.

$$ \displaystyle \vec{m} = \frac{\vec{U}}{\left|U\right|} = cos\alpha_{i}\ \vec{e}_{i}$$

$$ \displaystyle \vec{n} = \frac{\vec{V}}{\left|V\right|} = cos\beta_{i}\ \vec{e}_{i}$$

$$ \displaystyle \vec{m}\cdot\vec{n} = cos\alpha_{i}cos\beta_{i} = cos\theta$$

$$ \displaystyle for\ \theta = 90\rightarrow cos\theta = 0\ \ i.e.\ \ \vec{m}\cdot\vec{n} = 0 \rightarrow \vec{U}\cdot\vec{V} = \left|U\right|\left|V\right|\vec{m}\cdot\vec{n} = 0 \rightarrow \vec{U}\bot\vec{V}$$

Vector Product


Consider vector products of unit vectors.

$$ \displaystyle \vec{e}_{2}\times\vec{e}_{3} = -\vec{e}_{3}\times\vec{e}_{2} = \vec{e}_{1}$$

$$ \displaystyle \vec{e}_{3}\times\vec{e}_{1} = -\vec{e}_{1}\times\vec{e}_{3} = \vec{e}_{2}$$

$$ \displaystyle \vec{e}_{1}\times\vec{e}_{2} = -\vec{e}_{2}\times\vec{e}_{1} = \vec{e}_{3}$$

$$ \displaystyle (a_{1}\vec{e}_{1} + a_{2}\vec{e}_{2} + a_{3}\vec{e}_{3}) \times (b_{1}\vec{e}_{1} + b_{2}\vec{e}_{2} + b_{3}\vec{e}_{3}) = (a_{2}b_{3} - a_{3}b_{2})\vec{e}_{1} + (a_{3}b_{1} - a_{1}b_{3})\vec{e}_{2} + (a_{1}b_{2} - a_{2}b_{1})\vec{e}_{3}$$

The symmetric determinant will be the same: $$ \left| \begin{array}{ccc} \vec{e}_1 & \vec{e}_2 & \vec{e}_3\\ a_1 & a_2 & a_3\\ b_1 & b_2 & b_3 \end{array} \right| $$

Permutation symbol
The permutation symbol is defined as: $$ \epsilon_{ijk}= \left\{ \begin{array}{ll} 0 & \text{if any of } i,j,k \text{ are the same}\\ 1 & \text{if } i,j,k \text{ is an even permutation}\\ -1 & \text{if } i,j,k \text{ is an odd permutation} \end{array} \right. $$

Hence, the vector product can be written as:

$$ \vec{a}\times\vec{b} = \in_{ijk} a_{i}b_{j}\vec{e}_{k}= \in_{ijk} a_{j} b_{k} \vec{e}_{i} $$

Triple Scalar Product
$$ \displaystyle a\cdot(b\times c) = a\cdot\left[\in_{ijk} b_{i}c_{j}\vec{e}_{k}\right] = a_{k}\in_{ijk}b_{i}c_{j} = \epsilon_{ijk}a_{k}b_{i}c_{j} = \in_{ijk}a_{i}b_{j}c_{k}$$

Tensor Product
Product of two tensors

$$ \displaystyle a_{i}b_{j} = c_{ij}\ for\ i,j = 1,2,3$$

where $$ c_{ij}= \left[ \begin{array}{lll} c_{11} & c_{12} & c_{13}\\ c_{21} & c_{22} & c_{23}\\ c_{31} & c_{32} & c_{33} \end{array} \right] $$

Similarly,

$$ \displaystyle c_{ij}D_{klm} = E_{ijklm}\ (2 + 3 = 5^{th}\ order\ tensor)$$

Thus, generally, the product of a tensor having $$ \displaystyle m^{th}$$ order and another tensor having $$ \displaystyle n^{th}$$ order will result in a tensor having an order of m + n.

Therefore,

$$ \displaystyle \delta_{ij}c_{kl} = D_{ijkl}$$

The order is increased by two.

Substitution

$$ \displaystyle \delta_{ij}c_{jk} = D_{ijjk}$$

$$ \displaystyle D_{ijjk} = D_{i11k} + D_{i22k} + D_{i33k} = E_{ik}$$

Consequently if a tensor has a pair of repeated indices, its order reduces by two. And it can be shown that:

$$ \displaystyle E_{ik} = c_{ik}\ i.e.$$

$$ \displaystyle \delta_{ij}c_{jk} = c_{ik}$$

Index j is replaced by index i. This opperation is called substitution. Generally:

$$ \displaystyle \delta_{ij}A_{kjrs} = A_{kirs}$$

Contraction

$$ \displaystyle \delta_{ij}A_{ijrs} = B_{ijijrs} = D_{rs}$$

The total order is reduced by four.

Or equally:

$$ \displaystyle \delta_{ij}A_{ijrs} = A_{iirs} = D_{rs}$$

The order of $$ \displaystyle A_{ijrs}$$ is reduced by two.

This operation is called contraction with respect to i and j.

Scalar product of tensors

Remember:

$$ \displaystyle \vec{a}\cdot\vec{b} = a_{i}b_{i} = \delta_{ij}a_{i}b_{j} = \delta_{ij}c_{ij} = c_{ii} = a_{i}b_{i}$$

Contraction of a tensor product of two $$ \displaystyle 1^{st}$$ order tensors results in scalar product of two vectors.

Hence, the scalar product of two tensors are:

$$ \displaystyle \delta_{ip}A_{ij}B_{pqr} = A_{ij}B_{iqr} = c_{iqr} = A_{pj}B_{pqr} = c_{jqr}$$

Remember:

$$ \displaystyle \vec{A}\times\vec{B} = \vec{C}$$

$$ \displaystyle \epsilon_{ijk}A_{j}B_{k} = D_{ijjkk} = C_{i}$$

Consider,

$$ \displaystyle \vec{A}\cdot(\vec{B}\times\vec{C}) = A_{i}(\epsilon_{ijk}B_{j}C_{k}) = D_{iijjkk}\ (scalar)$$

In conclusion, using component notation and basic rules the form of the tensor can be deduced.

Important Relations

$$ \displaystyle \delta_{ii} = 3$$

$$ \displaystyle \delta_{ij}\delta_{jk} = \delta_{ik}$$

$$ \displaystyle \delta_{ik}\epsilon_{ikm} = 0$$ (repeated index)

$$ \epsilon_{ijk}\epsilon_{lmn}= \left| \begin{array}{lll} \delta_{il} & \delta_{im} & \delta_{in}\\ \delta_{jl} & \delta_{jm} & \delta_{jn}\\ \delta_{kl} & \delta_{km} & \delta_{kn} \end{array} \right| $$

$$ \displaystyle \epsilon_{ijk}\epsilon_{lmn} = \delta_{il}\delta_{jm}\delta_{kn} + \delta_{im}\delta_{jn}\delta_{kl} + \delta_{in}\delta_{jl}\delta_{km} - (\delta_{il}\delta_{jn}\delta_{km} + \delta_{im} \delta_{jl}\delta_{kn} + \delta_{in}\delta_{jm}\delta_{kl})$$

Contraction with respect to k n.

$$ \displaystyle \delta_{kn}\epsilon_{ijk}\epsilon_{lmn} = \epsilon_{ijk}\epsilon_{lmk} = \delta_{il}\delta_{jm} - \delta_{im}\delta_{jl}$$

Twice contraction,

$$ \displaystyle \delta_{jm}\delta_{kn}\epsilon_{ijk}\epsilon_{lmn} = \delta_{jm} [\delta_{il}\delta_{jm} - \delta_{im}\delta_{jl}]$$

$$ \displaystyle \delta_{jm}\delta_{kn}\epsilon_{ijk}\epsilon_{lmn} = [\delta_{il}\delta_{jj} - \delta_{ij}\delta_{jl}] = [3\delta_{il} - \delta_{il}] = 2\delta_{il}$$

$$ \displaystyle \delta_{jm}[\delta_{kn}\epsilon_{ijk}\epsilon_{lmn}] = \delta_{jm}\ \epsilon_{ijk}\ \epsilon_{lmk}\ =\ \epsilon_{ijk}\epsilon_{ljk}\ = 2\delta_{il}$$

and

$$ \displaystyle \epsilon_{ijk}\epsilon_{ijk} = 6$$

Tripple Vector Product


Therefore, it can be a linear sum of two vectors.

$$ \displaystyle \vec{a}\times(\vec{b}\times\vec{c}) = \beta\vec{b} + \gamma\vec{c} = \vec{T}$$

Use component notation.

$$ \displaystyle T_{i} = \in_{ijk} a_{j} (\in_{klm}b_{l}c_{m}) = \beta b_{i} + \gamma c_{i}$$

$$ \displaystyle T_{i} = \in_{ijk}\in_{klm}a_{j}b_{l}c_{m} = \beta b_{i} + \gamma c_{i}$$

$$ \displaystyle \displaystyle T_{i} = (\delta_{il}\delta_{jm} - \delta_{im}\delta_{jl})a_{j}b_{l}c_{m}$$

$$ \displaystyle \displaystyle T_{i} = \delta_{il}\delta_{jm}a_{j}b_{l}c_{m} - \delta_{im}\delta_{jl}a_{j}b_{l}c_{m}$$

$$ \displaystyle T_{i} = a_{m}b_{i}c_{m} - a_{j}b_{j}c_{i} = b_{i}(a_{m}c_{m}) - c_{i}(a_{j}b_{j}) = (\vec{a}\cdot\vec{c})b - (\vec{a}\cdot\vec{b})c$$

Derivative of a Tensor
Let A scalar derivative with respect to $$ \displaystyle x_{i}$$:

$$ \displaystyle \frac{\partial A}{\partial x_{i}} = B_{i}$$

Let A a vector:

$$ \displaystyle \frac{\partial A_{i}}{\partial x_{j}} = B_{ij}$$

Generally, the $$ \displaystyle m^{th}$$ derivative of a tensor of the $$ \displaystyle n^{th}$$ order is a tensor of the $$ \displaystyle (n+m)^{th}$$ order.

Special case,

$$ \displaystyle \frac{\partial x_{j}}{\partial x_{i}} = 1\ (if\ i = j)$$

$$ \displaystyle \frac{\partial x_{j}}{\partial x_{i}} = 0\ (if\ i \neq j)$$

$$ \displaystyle \frac{\partial x_{j}}{\partial x_{i}} = \delta_{ij} \rightarrow \frac{\partial x_{i}}{\partial x_{i}} =\delta_{ii} = 3$$

Let $$ \displaystyle A(x_{j})$$:

$$ \displaystyle \frac{\partial A(x_{j})}{\partial x_{i}} = \frac{\partial A}{\partial x_{j}}\frac{\partial x_{j}}{\partial x_{i}} = \delta_{ij}\frac{\partial A}{\partial x_{j}} = \delta_{ij}C_{j} = C_{i}$$

$$ \displaystyle A(n)$$ $$ \displaystyle n(x_{j})$$:

$$ \displaystyle \frac{\partial A}{\partial x_{i}} = \frac{\partial A}{\partial n}\frac{\partial n}{\partial x_{j}}\frac{\partial x_{j}}{\partial x_{i}} = \underbrace{\delta_{ij}\underbrace{\frac{\partial A}{\partial n}\underbrace{\frac{\partial n}{\partial x_{j}}}_{vektor}}_{vektor}}_{vektor}$$